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

Abstract WaterVehicle class. More...

#include <WaterVehicle.h>

Inheritance diagram for ODemo::WaterVehicle:
Inheritance graph
Collaboration diagram for ODemo::WaterVehicle:
Collaboration graph

Public Member Functions

 WaterVehicle ()
 Default constructor. More...
 
 WaterVehicle (const WaterVehicle &ori)
 Copy constructor. More...
 
 WaterVehicle (WaterVehicle &&ori) noexcept
 Move constructor. More...
 
WaterVehicleoperator= (const WaterVehicle &rhs)
 Copy assignment. More...
 
WaterVehicleoperator= (WaterVehicle &&rhs) noexcept
 Move assignment. More...
 
 ~WaterVehicle () override
 Destructor. More...
 
void info () const override
 Return identification info. More...
 
void move (double speed, std::vector< double > direction) override=0
 Pure virtual method for motion. More...
 
void start_sinking ()
 Start sinking, even if you are already sinking. More...
 
void stop_sinking ()
 Stop sinking, even if you were not sinking in the first place. More...
 
- Public Member Functions inherited from ODemo::Vehicle
virtual ~Vehicle ()=default
 Destructor. More...
 

Private Attributes

bool m_sinking
 

Detailed Description

Abstract WaterVehicle class.

Definition at line 15 of file WaterVehicle.h.

Constructor & Destructor Documentation

ODemo::WaterVehicle::WaterVehicle ( )

Default constructor.

Definition at line 14 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::WaterVehicle::WaterVehicle ( const WaterVehicle ori)

Copy constructor.

Definition at line 16 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::WaterVehicle::WaterVehicle ( WaterVehicle &&  ori)
noexcept

Move constructor.

Definition at line 21 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::WaterVehicle::~WaterVehicle ( )
override

Destructor.

Definition at line 46 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

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

Copy assignment.

Definition at line 26 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_sinking.

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

Here is the caller graph for this function:

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

Move assignment.

Definition at line 36 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_sinking.

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

Return identification info.

Implements ODemo::Vehicle.

Definition at line 48 of file WaterVehicle.cpp.

References COMP_MISC_LOG_TRACER, COMP_MISC_MEMBER_TRACER, and m_sinking.

void ODemo::WaterVehicle::move ( double  speed,
std::vector< double direction 
)
overridepure virtual

Pure virtual method for motion.

Implements ODemo::Vehicle.

Implemented in ODemo::SailBoat.

void ODemo::WaterVehicle::start_sinking ( )

Start sinking, even if you are already sinking.

Definition at line 58 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_sinking.

Referenced by app_exception(), and app_hierarchies().

Here is the caller graph for this function:

void ODemo::WaterVehicle::stop_sinking ( )

Stop sinking, even if you were not sinking in the first place.

Definition at line 64 of file WaterVehicle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_sinking.

Member Data Documentation

bool ODemo::WaterVehicle::m_sinking
private

Definition at line 49 of file WaterVehicle.h.

Referenced by info(), operator=(), start_sinking(), and stop_sinking().


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