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

A really simple class for Wheel. More...

#include <Wheel.h>

Collaboration diagram for ODemo::Wheel:
Collaboration graph

Public Member Functions

 Wheel ()
 Default constructor. More...
 
 Wheel (const Wheel &ori)
 Copy constructor. More...
 
 Wheel (Wheel &&ori) noexcept
 Move constructor. More...
 
Wheeloperator= (const Wheel &rhs)
 Copy assignment operator. More...
 
Wheeloperator= (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
 

Detailed Description

A really simple class for Wheel.

Definition at line 13 of file Wheel.h.

Constructor & Destructor Documentation

ODemo::Wheel::Wheel ( )

Default constructor.

Definition at line 13 of file Wheel.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Wheel::Wheel ( const Wheel ori)

Copy constructor.

Definition at line 15 of file Wheel.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Wheel::Wheel ( Wheel &&  ori)
noexcept

Move constructor.

Definition at line 17 of file Wheel.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Wheel::~Wheel ( )

destructor.

Definition at line 39 of file Wheel.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

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

Copy assignment operator.

Definition at line 19 of file Wheel.cpp.

References COMP_MISC_MEMBER_TRACER, m_rotating, and m_speed.

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

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.

Member Data Documentation

double ODemo::Wheel::m_speed
private

Definition at line 44 of file Wheel.h.

Referenced by operator=().

bool ODemo::Wheel::m_rotating
private

Definition at line 45 of file Wheel.h.

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


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