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

Engine that provides motion. More...

#include <Engine.h>

Collaboration diagram for ODemo::Engine:
Collaboration graph

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...
 
Engineoperator= (const Engine &rhs)
 Copy assignment. More...
 
Engineoperator= (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
 

Detailed Description

Engine that provides motion.

Definition at line 12 of file Engine.h.

Constructor & Destructor Documentation

ODemo::Engine::Engine ( double  power)
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)

Copy constructor.

Definition at line 14 of file Engine.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Engine::Engine ( Engine &&  ori)
noexcept

Move constructor.

Definition at line 16 of file Engine.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Engine::~Engine ( )

Destructor does not do a thing.

Definition at line 42 of file Engine.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

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

Copy assignment.

Definition at line 18 of file Engine.cpp.

References COMP_MISC_MEMBER_TRACER, m_power, and m_running.

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

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.

Member Data Documentation

double ODemo::Engine::m_power
private

Definition at line 43 of file Engine.h.

Referenced by operator=().

bool ODemo::Engine::m_running
private

Definition at line 44 of file Engine.h.

Referenced by is_running(), operator=(), start(), and stop().


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