Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
ODemo::RoadVehicle Class Reference

A RoadVehicle is any kind of vehicle that moves on the road. More...

#include <RoadVehicle.h>

Inheritance diagram for ODemo::RoadVehicle:
Inheritance graph
Collaboration diagram for ODemo::RoadVehicle:
Collaboration graph

Public Member Functions

 RoadVehicle ()
 Default constructor. More...
 
 RoadVehicle (const RoadVehicle &ori)
 Copy constructor. More...
 
 RoadVehicle (RoadVehicle &&ori) noexcept
 Move constructor. More...
 
RoadVehicleoperator= (const RoadVehicle &rhs)
 Copy assignment operator. More...
 
RoadVehicleoperator= (RoadVehicle &&rhs) noexcept
 Move assignment operator. More...
 
 ~RoadVehicle () override
 Destructor. More...
 
void info () const override
 Return identification info. More...
 
void move (double speed, std::vector< double > direction) override
 Motion of the vehicle. More...
 
- Public Member Functions inherited from ODemo::LandVehicle
 LandVehicle ()
 default constructor. More...
 
 LandVehicle (const LandVehicle &ori)
 Copy constructor. More...
 
 LandVehicle (LandVehicle &&ori) noexcept
 Move constructor. More...
 
LandVehicleoperator= (const LandVehicle &rhs)
 Copy assignment. More...
 
LandVehicleoperator= (LandVehicle &&rhs) noexcept
 Move assignment. More...
 
 ~LandVehicle () override
 Destructor. More...
 
- Public Member Functions inherited from ODemo::Vehicle
virtual ~Vehicle ()=default
 Destructor. More...
 

Detailed Description

A RoadVehicle is any kind of vehicle that moves on the road.

Definition at line 16 of file RoadVehicle.h.

Constructor & Destructor Documentation

ODemo::RoadVehicle::RoadVehicle ( )

Default constructor.

Definition at line 14 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::RoadVehicle::RoadVehicle ( const RoadVehicle ori)

Copy constructor.

Definition at line 16 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::RoadVehicle::RoadVehicle ( RoadVehicle &&  ori)
noexcept

Move constructor.

Definition at line 18 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::RoadVehicle::~RoadVehicle ( )
override

Destructor.

Definition at line 38 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

RoadVehicle & ODemo::RoadVehicle::operator= ( const RoadVehicle rhs)

Copy assignment operator.

Definition at line 20 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and ODemo::LandVehicle::operator=().

Referenced by ODemo::PassengerRoadVehicle::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

RoadVehicle & ODemo::RoadVehicle::operator= ( RoadVehicle &&  rhs)
noexcept

Move assignment operator.

Definition at line 29 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and ODemo::LandVehicle::operator=().

Here is the call graph for this function:

void ODemo::RoadVehicle::info ( ) const
overridevirtual

Return identification info.

Reimplemented from ODemo::LandVehicle.

Definition at line 40 of file RoadVehicle.cpp.

References COMP_MISC_LOG_TRACER, and COMP_MISC_MEMBER_TRACER.

void ODemo::RoadVehicle::move ( double  speed,
std::vector< double direction 
)
overridevirtual

Motion of the vehicle.

Implements ODemo::LandVehicle.

Definition at line 47 of file RoadVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.


The documentation for this class was generated from the following files: