24 #ifndef ROS_INTROSPECTION_FieldTreeLeaf_H 25 #define ROS_INTROSPECTION_FieldTreeLeaf_H 37 "00010203040506070809" 38 "10111213141516171819" 39 "20212223242526272829" 40 "30313233343536373839" 41 "40414243444546474849" 42 "50515253545556575859" 43 "60616263646566676869" 44 "70717273747576777879" 45 "80818283848586878889" 46 "90919293949596979899";
49 buffer[0] =
static_cast<char>(
'0' + value);
52 else if (value < 100) {
54 buffer[0] = DIGITS[ value ];
55 buffer[1] = DIGITS[ value+1 ];
59 return sprintf( buffer,
"%d", value );
99 void toStr(std::string &destination)
const;
void toStr(std::string &destination) const
Utility functions to print the entire branch.
auto sprintf(const S &fmt, const T &... args) -> std::basic_string< Char >
SmallVector< uint16_t, 4 > index_array
const FieldTreeNode * node
SmallVector< const ROSField *, 8 > fields
SmallVector< uint16_t, 4 > index_array
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
int print_number(char *buffer, uint16_t value)
std::string toStdString() const
const char * toStr(const BuiltinType &c)
The FieldTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree. It provides the pointer to the node and a list of numbers that represent the index that corresponds to the placeholder "#".
Element of the tree. it has a single parent and N >= 0 children.