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

Unicycle interface. More...

#include <Unicycle.h>

Collaboration diagram for ODemo::Unicycle:
Collaboration graph

Public Member Functions

 Unicycle ()
 Default constructor does not initialize association with engine and owner. More...
 
 Unicycle (const Unicycle &ori)
 Copy constructor. More...
 
 Unicycle (Unicycle &&ori) noexcept
 Move constructor. More...
 
Unicycleoperator= (const Unicycle &rhs)
 Copy assignment. More...
 
Unicycleoperator= (Unicycle &&rhs) noexcept
 Copy assignment. More...
 
 ~Unicycle ()
 Destructor. More...
 
void accelerate (double speed)
 Accelerate up to given speed. More...
 
void brake (double speed)
 Brake until given speed. More...
 
void turn (double degrees)
 

Private Attributes

Wheel m_wheel
 
double m_speed
 
double m_direction
 

Detailed Description

Unicycle interface.

Definition at line 14 of file Unicycle.h.

Constructor & Destructor Documentation

ODemo::Unicycle::Unicycle ( )

Default constructor does not initialize association with engine and owner.

Definition at line 14 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Unicycle::Unicycle ( const Unicycle ori)

Copy constructor.

Definition at line 17 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Unicycle::Unicycle ( Unicycle &&  ori)
noexcept

Move constructor.

Definition at line 23 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Unicycle::~Unicycle ( )

Destructor.

Definition at line 54 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

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

Copy assignment.

Definition at line 30 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER, m_direction, m_speed, and m_wheel.

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

Copy assignment.

Definition at line 42 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER, m_direction, m_speed, and m_wheel.

void ODemo::Unicycle::accelerate ( double  speed)

Accelerate up to given speed.

Definition at line 56 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_speed.

void ODemo::Unicycle::brake ( double  speed)

Brake until given speed.

Definition at line 62 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER, and m_speed.

void ODemo::Unicycle::turn ( double  degrees)

Definition at line 68 of file Unicycle.cpp.

References COMP_MISC_MEMBER_TRACER, m_direction, and m_speed.

Member Data Documentation

Wheel ODemo::Unicycle::m_wheel
private

Definition at line 45 of file Unicycle.h.

Referenced by operator=().

double ODemo::Unicycle::m_speed
private

Definition at line 46 of file Unicycle.h.

Referenced by accelerate(), brake(), operator=(), and turn().

double ODemo::Unicycle::m_direction
private

Definition at line 47 of file Unicycle.h.

Referenced by operator=(), and turn().


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