Gobelijn API documentation
- generated for commit a0cbea7
|
A really simple class for Wheel. More...
#include <Wheel.h>
Public Member Functions | |
Wheel () | |
Default constructor. More... | |
Wheel (const Wheel &ori) | |
Copy constructor. More... | |
Wheel (Wheel &&ori) noexcept | |
Move constructor. More... | |
Wheel & | operator= (const Wheel &rhs) |
Copy assignment operator. More... | |
Wheel & | operator= (Wheel &&rhs) noexcept |
Move assignment operator. More... | |
~Wheel () | |
destructor. More... | |
void | start () |
Start turning. More... | |
void | stop () |
Stop turning. More... | |
bool | is_rotating () const |
Indicate whether wheel is rotating or not. More... | |
Private Attributes | |
double | m_speed |
bool | m_rotating |
ODemo::Wheel::Wheel | ( | ) |
ODemo::Wheel::Wheel | ( | const Wheel & | ori | ) |
|
noexcept |
ODemo::Wheel::~Wheel | ( | ) |
Copy assignment operator.
Definition at line 19 of file Wheel.cpp.
References COMP_MISC_MEMBER_TRACER, m_rotating, and m_speed.
Move assignment operator.
Definition at line 29 of file Wheel.cpp.
References COMP_MISC_MEMBER_TRACER, m_rotating, and m_speed.
void ODemo::Wheel::start | ( | ) |
Start turning.
Definition at line 41 of file Wheel.cpp.
References COMP_MISC_MEMBER_TRACER, and m_rotating.
void ODemo::Wheel::stop | ( | ) |
Stop turning.
Definition at line 49 of file Wheel.cpp.
References COMP_MISC_MEMBER_TRACER, and m_rotating.
bool ODemo::Wheel::is_rotating | ( | ) | const |
Indicate whether wheel is rotating or not.
Definition at line 57 of file Wheel.cpp.
References COMP_MISC_MEMBER_TRACER, and m_rotating.
|
private |
Definition at line 44 of file Wheel.h.
Referenced by operator=().
|
private |
Definition at line 45 of file Wheel.h.
Referenced by is_rotating(), operator=(), start(), and stop().