gusimplewhiteboard
|
Provides a C++ wrapper around wb_my_position
.
More...
#include <MyPosition.hpp>
Public Member Functions | |
MyPosition (int16_t t_x=0, int16_t t_y=0, int16_t t_heading=0) | |
Create a new MyPosition . More... | |
MyPosition (const MyPosition &t_other) | |
Copy Constructor. More... | |
MyPosition (const struct wb_my_position &t_other) | |
Copy Constructor. More... | |
MyPosition & | operator= (const MyPosition &t_other) |
Copy Assignment Operator. More... | |
MyPosition & | operator= (const struct wb_my_position &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const MyPosition &t_other) const |
bool | operator!= (const MyPosition &t_other) const |
bool | operator== (const wb_my_position &t_other) const |
bool | operator!= (const wb_my_position &t_other) const |
int16_t & | x () |
const int16_t & | x () const |
void | set_x (const int16_t &t_newValue) |
int16_t & | y () |
const int16_t & | y () const |
void | set_y (const int16_t &t_newValue) |
int16_t & | heading () |
const int16_t & | heading () const |
void | set_heading (const int16_t &t_newValue) |
MyPosition (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Additional Inherited Members | |
Public Attributes inherited from wb_my_position | |
int16_t | x |
mm More... | |
int16_t | y |
mm More... | |
int16_t | heading |
degrees More... | |
Provides a C++ wrapper around wb_my_position
.
Definition at line 83 of file MyPosition.hpp.
|
inline |
|
inline |
Copy Constructor.
Definition at line 108 of file MyPosition.hpp.
|
inline |
Copy Constructor.
Definition at line 115 of file MyPosition.hpp.
References wb_my_position::heading, wb_my_position::x, and wb_my_position::y.
|
inline |
|
inline |
USE_WB_MY_POSITION_C_CONVERSION
Definition at line 211 of file MyPosition.hpp.
References heading(), MY_POSITION_DESC_BUFFER_SIZE, wb_my_position_description(), x(), and y().
|
inline |
USE_WB_MY_POSITION_C_CONVERSION
Definition at line 249 of file MyPosition.hpp.
References MY_POSITION_DESC_BUFFER_SIZE, set_heading(), set_x(), and set_y().
Referenced by MyPosition().
|
inline |
Definition at line 187 of file MyPosition.hpp.
References wb_my_position::heading.
Referenced by MyPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 192 of file MyPosition.hpp.
References wb_my_position::heading.
|
inline |
Definition at line 142 of file MyPosition.hpp.
|
inline |
Definition at line 152 of file MyPosition.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 122 of file MyPosition.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 130 of file MyPosition.hpp.
References wb_my_position::heading, wb_my_position::x, and wb_my_position::y.
|
inline |
Definition at line 135 of file MyPosition.hpp.
|
inline |
Definition at line 147 of file MyPosition.hpp.
References MyPosition().
|
inline |
Definition at line 197 of file MyPosition.hpp.
References wb_my_position::heading.
Referenced by from_string().
|
inline |
Definition at line 167 of file MyPosition.hpp.
References wb_my_position::x.
Referenced by from_string().
|
inline |
Definition at line 182 of file MyPosition.hpp.
References wb_my_position::y.
Referenced by from_string().
|
inline |
USE_WB_MY_POSITION_C_CONVERSION
Definition at line 228 of file MyPosition.hpp.
References heading(), MY_POSITION_TO_STRING_BUFFER_SIZE, wb_my_position_to_string(), x(), and y().
|
inline |
Definition at line 157 of file MyPosition.hpp.
References wb_my_position::x.
Referenced by MyPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 162 of file MyPosition.hpp.
References wb_my_position::x.
|
inline |
Definition at line 172 of file MyPosition.hpp.
References wb_my_position::y.
Referenced by MyPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 177 of file MyPosition.hpp.
References wb_my_position::y.