Gobelijn API documentation
- generated for commit a0cbea7
|
A simple SailBoat class. More...
#include <SailBoat.h>
Public Member Functions | |
SailBoat (std::string name) | |
Parametrized constructor initializes the name of the boat. More... | |
SailBoat (const SailBoat &ori) | |
Copy constructor. More... | |
SailBoat (SailBoat &&ori) noexcept | |
Move constructor. More... | |
SailBoat & | operator= (const SailBoat &rhs) |
Copy assignment. More... | |
SailBoat & | operator= (SailBoat &&rhs) noexcept |
Move assignment. More... | |
~SailBoat () override | |
Destructor. More... | |
void | info () const override |
Return identification info. More... | |
void | move (double speed, std::vector< double > direction) override |
Sailboat motion. More... | |
![]() | |
WaterVehicle () | |
Default constructor. More... | |
WaterVehicle (const WaterVehicle &ori) | |
Copy constructor. More... | |
WaterVehicle (WaterVehicle &&ori) noexcept | |
Move constructor. More... | |
WaterVehicle & | operator= (const WaterVehicle &rhs) |
Copy assignment. More... | |
WaterVehicle & | operator= (WaterVehicle &&rhs) noexcept |
Move assignment. More... | |
~WaterVehicle () override | |
Destructor. More... | |
void | info () const override |
Return identification info. 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... | |
![]() | |
virtual | ~Vehicle ()=default |
Destructor. More... | |
Private Attributes | |
std::string | m_name |
bool | m_sails_up |
A simple SailBoat class.
Definition at line 15 of file SailBoat.h.
|
explicit |
Parametrized constructor initializes the name of the boat.
Definition at line 14 of file SailBoat.cpp.
References COMP_MISC_MEMBER_TRACER.
ODemo::SailBoat::SailBoat | ( | const SailBoat & | ori | ) |
|
noexcept |
|
override |
Copy assignment.
Definition at line 30 of file SailBoat.cpp.
References COMP_MISC_MEMBER_TRACER, m_name, m_sails_up, and ODemo::WaterVehicle::operator=().
Move assignment.
Definition at line 41 of file SailBoat.cpp.
References COMP_MISC_MEMBER_TRACER, m_name, m_sails_up, and ODemo::WaterVehicle::operator=().
|
overridevirtual |
Return identification info.
Implements ODemo::Vehicle.
Definition at line 54 of file SailBoat.cpp.
References COMP_MISC_LOG_TRACER, COMP_MISC_MEMBER_TRACER, m_name, and m_sails_up.
Referenced by app_exception(), and app_hierarchies().
Sailboat motion.
Implements ODemo::WaterVehicle.
Definition at line 66 of file SailBoat.cpp.
References COMP_MISC_MEMBER_TRACER, and m_sails_up.
Referenced by app_exception(), and app_hierarchies().
|
private |
Definition at line 43 of file SailBoat.h.
Referenced by info(), and operator=().
|
private |
Definition at line 44 of file SailBoat.h.
Referenced by info(), move(), and operator=().