gusimplewhiteboard
|
Provides a C++ wrapper around wb_machine_filtered_lines
.
More...
#include <MachineFilteredLines.hpp>
Public Member Functions | |
MachineFilteredLines (uint8_t t_numberOfSightings=0, const struct wb_line_sighting t_sightings[8]=NULLPTR) | |
Create a new MachineFilteredLines . More... | |
MachineFilteredLines (const MachineFilteredLines &t_other) | |
Copy Constructor. More... | |
MachineFilteredLines (const struct wb_machine_filtered_lines &t_other) | |
Copy Constructor. More... | |
MachineFilteredLines & | operator= (const MachineFilteredLines &t_other) |
Copy Assignment Operator. More... | |
MachineFilteredLines & | operator= (const struct wb_machine_filtered_lines &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const MachineFilteredLines &t_other) const |
bool | operator!= (const MachineFilteredLines &t_other) const |
bool | operator== (const wb_machine_filtered_lines &t_other) const |
bool | operator!= (const wb_machine_filtered_lines &t_other) const |
uint8_t & | numberOfSightings () |
const uint8_t & | numberOfSightings () const |
void | set_numberOfSightings (const uint8_t &t_newValue) |
const LineSighting * | sightings () const |
size_t | sightings_size () const |
LineSighting & | sightings (int t_i) |
const LineSighting & | sightings (int t_i) const |
void | set_sightings (const LineSighting *t_newValue) |
void | set_sightings (const LineSighting &t_newValue, int t_i) |
MachineFilteredLines (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
int | firstSighting (LineSightingType sightingType) |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
int | closestFeildLine () |
int | horizonLine () |
int | fieldLine () |
Additional Inherited Members | |
![]() | |
uint8_t | numberOfSightings |
The number of sightings in sightings . More... | |
struct wb_line_sighting | sightings [8] |
All sightings. More... | |
Provides a C++ wrapper around wb_machine_filtered_lines
.
Definition at line 86 of file MachineFilteredLines.hpp.
|
inline |
Create a new MachineFilteredLines
.
Definition at line 108 of file MachineFilteredLines.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 115 of file MachineFilteredLines.hpp.
References numberOfSightings(), and sightings().
|
inline |
Copy Constructor.
Definition at line 122 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::numberOfSightings, and wb_machine_filtered_lines::sightings.
|
inline |
String Constructor.
Definition at line 219 of file MachineFilteredLines.hpp.
References from_string().
|
inline |
Definition at line 443 of file MachineFilteredLines.hpp.
References FieldLineSightingType, numberOfSightings(), sightings(), guWhiteboard::LineSighting::sightingType(), and guWhiteboard::LineSighting::simpleLine().
|
inline |
USE_WB_MACHINE_FILTERED_LINES_C_CONVERSION
Definition at line 224 of file MachineFilteredLines.hpp.
References description(), MACHINE_FILTERED_LINES_DESC_BUFFER_SIZE, MACHINE_FILTERED_LINES_SIGHTINGS_ARRAY_SIZE, numberOfSightings(), sightings(), and wb_machine_filtered_lines_description().
Referenced by description().
|
inline |
Definition at line 464 of file MachineFilteredLines.hpp.
References FieldLineSightingType, and firstSighting().
|
inline |
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 431 of file MachineFilteredLines.hpp.
References numberOfSightings(), sightings(), guWhiteboard::LineSighting::sightingType(), and wb_line_sighting::sightingType.
Referenced by fieldLine(), and horizonLine().
|
inline |
USE_WB_MACHINE_FILTERED_LINES_C_CONVERSION
Definition at line 270 of file MachineFilteredLines.hpp.
References guWhiteboard::LineSighting::from_string(), MACHINE_FILTERED_LINES_DESC_BUFFER_SIZE, MACHINE_FILTERED_LINES_SIGHTINGS_ARRAY_SIZE, set_numberOfSightings(), and set_sightings().
Referenced by MachineFilteredLines().
|
inline |
Definition at line 459 of file MachineFilteredLines.hpp.
References firstSighting(), and HorizonLineSightingType.
|
inline |
Definition at line 170 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::numberOfSightings.
Referenced by MachineFilteredLines(), closestFeildLine(), description(), firstSighting(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 175 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::numberOfSightings.
|
inline |
Definition at line 155 of file MachineFilteredLines.hpp.
|
inline |
Definition at line 165 of file MachineFilteredLines.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 129 of file MachineFilteredLines.hpp.
References numberOfSightings(), and sightings().
|
inline |
Copy Assignment Operator.
Definition at line 137 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::numberOfSightings, and wb_machine_filtered_lines::sightings.
|
inline |
Definition at line 142 of file MachineFilteredLines.hpp.
References numberOfSightings(), and sightings().
|
inline |
Definition at line 160 of file MachineFilteredLines.hpp.
References MachineFilteredLines().
|
inline |
Definition at line 180 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::numberOfSightings.
Referenced by from_string().
|
inline |
Definition at line 210 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::sightings.
|
inline |
Definition at line 205 of file MachineFilteredLines.hpp.
References MACHINE_FILTERED_LINES_SIGHTINGS_ARRAY_SIZE, and wb_machine_filtered_lines::sightings.
Referenced by from_string().
|
inline |
Definition at line 185 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::sightings.
Referenced by MachineFilteredLines(), closestFeildLine(), description(), firstSighting(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 195 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::sightings.
|
inline |
Definition at line 200 of file MachineFilteredLines.hpp.
References wb_machine_filtered_lines::sightings.
|
inline |
Definition at line 190 of file MachineFilteredLines.hpp.
References MACHINE_FILTERED_LINES_SIGHTINGS_ARRAY_SIZE.
|
inline |
USE_WB_MACHINE_FILTERED_LINES_C_CONVERSION
Definition at line 245 of file MachineFilteredLines.hpp.
References MACHINE_FILTERED_LINES_SIGHTINGS_ARRAY_SIZE, MACHINE_FILTERED_LINES_TO_STRING_BUFFER_SIZE, numberOfSightings(), sightings(), to_string(), and wb_machine_filtered_lines_to_string().
Referenced by to_string().