A message field containing a numbered set of single-precision floating point values. More...
#include <command.hpp>
Public Member Functions | |
void | clear (size_t fieldNumber) |
Removes any currently set value for the numbered subvalue of this field. More... | |
float | get (size_t fieldNumber) const |
If the particular numbered subvalue of this field has a value, returns that value; otherwise returns a default. More... | |
bool | has (size_t fieldNumber) const |
True if (and only if) the particular numbered subvalue of this field has a value. More... | |
NumberedFloatField (HebiCommandPtr internal, HebiCommandNumberedFloatField field) | |
void | set (size_t fieldNumber, float value) |
Sets the particular numbered subvalue of this field to a given value. More... | |
Private Attributes | |
HebiCommandNumberedFloatField const | field_ |
HebiCommandPtr const | internal_ |
A message field containing a numbered set of single-precision floating point values.
Definition at line 152 of file command.hpp.
hebi::Command::NumberedFloatField::NumberedFloatField | ( | HebiCommandPtr | internal, |
HebiCommandNumberedFloatField | field | ||
) |
Definition at line 106 of file command.cpp.
void hebi::Command::NumberedFloatField::clear | ( | size_t | fieldNumber | ) |
Removes any currently set value for the numbered subvalue of this field.
fieldNumber | Which subvalue to clear; valid values for fieldNumber depend on the field type. |
Definition at line 131 of file command.cpp.
float hebi::Command::NumberedFloatField::get | ( | size_t | fieldNumber | ) | const |
If the particular numbered subvalue of this field has a value, returns that value; otherwise returns a default.
fieldNumber | Which subvalue to get; valid values for fieldNumber depend on the field type. |
Definition at line 116 of file command.cpp.
bool hebi::Command::NumberedFloatField::has | ( | size_t | fieldNumber | ) | const |
True if (and only if) the particular numbered subvalue of this field has a value.
fieldNumber | Which subvalue to check; valid values for fieldNumber depend on the field type. |
Definition at line 111 of file command.cpp.
void hebi::Command::NumberedFloatField::set | ( | size_t | fieldNumber, |
float | value | ||
) |
Sets the particular numbered subvalue of this field to a given value.
fieldNumber | Which subvalue to set; valid values for fieldNumber depend on the field type. |
Definition at line 126 of file command.cpp.
|
private |
Definition at line 185 of file command.hpp.
|
private |
Definition at line 184 of file command.hpp.