Gobelijn API documentation
- generated for commit a0cbea7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
Wheel.h
Go to the documentation of this file.
1
#pragma once
2
8
namespace
ODemo {
9
13
class
Wheel
14
{
15
public
:
17
Wheel
();
18
20
Wheel
(
const
Wheel
& ori);
21
23
Wheel
(
Wheel
&& ori) noexcept;
24
26
Wheel
&
operator=
(
const
Wheel
& rhs);
27
29
Wheel
&
operator=
(
Wheel
&& rhs) noexcept;
30
32
~Wheel
();
33
35
void
start
();
36
38
void
stop
();
39
41
bool
is_rotating
()
const
;
42
43
private
:
44
double
m_speed
;
45
bool
m_rotating
;
46
};
47
48
}
// namespace ODemo
ODemo::Wheel
A really simple class for Wheel.
Definition:
Wheel.h:13
ODemo::Wheel::m_rotating
bool m_rotating
Definition:
Wheel.h:45
ODemo::Wheel::Wheel
Wheel()
Default constructor.
Definition:
Wheel.cpp:13
ODemo::Wheel::m_speed
double m_speed
Definition:
Wheel.h:44
ODemo::Wheel::operator=
Wheel & operator=(const Wheel &rhs)
Copy assignment operator.
Definition:
Wheel.cpp:19
ODemo::Wheel::is_rotating
bool is_rotating() const
Indicate whether wheel is rotating or not.
Definition:
Wheel.cpp:57
ODemo::Wheel::start
void start()
Start turning.
Definition:
Wheel.cpp:41
ODemo::Wheel::stop
void stop()
Stop turning.
Definition:
Wheel.cpp:49
ODemo::Wheel::~Wheel
~Wheel()
destructor.
Definition:
Wheel.cpp:39
main
cpp
objtracer
Wheel.h
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6