Gobelijn API documentation
- generated for commit a0cbea7
|
Engine that provides motion. More...
#include <Engine.h>
Public Member Functions | |
Engine (double power) | |
Constructor initializes the power, is_running status set to false. More... | |
Engine (const Engine &ori) | |
Copy constructor. More... | |
Engine (Engine &&ori) noexcept | |
Move constructor. More... | |
Engine & | operator= (const Engine &rhs) |
Copy assignment. More... | |
Engine & | operator= (Engine &&rhs) noexcept |
Move assignment. More... | |
~Engine () | |
Destructor does not do a thing. More... | |
void | start () |
Starts the engine, even if it already was running. More... | |
void | stop () |
Stops the engine, even if it was already stopped. More... | |
bool | is_running () const |
Indicates whether engine is running or not. More... | |
Private Attributes | |
double | m_power |
bool | m_running |
|
explicit |
Constructor initializes the power, is_running status set to false.
Definition at line 12 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER.
ODemo::Engine::Engine | ( | const Engine & | ori | ) |
|
noexcept |
ODemo::Engine::~Engine | ( | ) |
Destructor does not do a thing.
Definition at line 42 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER.
Copy assignment.
Definition at line 18 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER, m_power, and m_running.
Move assignment.
Definition at line 28 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER, m_power, and m_running.
void ODemo::Engine::start | ( | ) |
Starts the engine, even if it already was running.
Definition at line 44 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER, and m_running.
void ODemo::Engine::stop | ( | ) |
Stops the engine, even if it was already stopped.
Definition at line 52 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER, and m_running.
bool ODemo::Engine::is_running | ( | ) | const |
Indicates whether engine is running or not.
Definition at line 60 of file Engine.cpp.
References COMP_MISC_MEMBER_TRACER, and m_running.
|
private |
Definition at line 43 of file Engine.h.
Referenced by operator=().
|
private |
Definition at line 44 of file Engine.h.
Referenced by is_running(), operator=(), start(), and stop().