|
mavtables
0.2.1
MAVLink router and firewall.
|
Functions | |
| std::string | to_lower (std::string string) |
| template<typename T > | |
| std::vector< T >::iterator | append (std::vector< T > &dest, const std::vector< T > &source) |
| template<typename T > | |
| std::vector< T >::iterator | append (std::vector< T > &dest, std::vector< T > &&source) |
| template<class T > | |
| std::string | str (const T &object) |
| template<class ByteType = unsigned char, class T > | |
| std::array< ByteType, sizeof(T)> | to_bytes (T number) |
| template<class T > | |
| std::ostream & | operator<< (std::ostream &os, const std::vector< T > &vector) |
Utility functions that don't warrant their own file.
| std::vector< T >::iterator append | ( | std::vector< T > & | dest, |
| const std::vector< T > & | source | ||
| ) |
Append one vector to another.
Taken from https://stackoverflow.com/a/37210097
| dest | Vector to append to. |
| source | Vector to append the elements from. |
Definition at line 64 of file utility.hpp.
| std::vector< T >::iterator append | ( | std::vector< T > & | dest, |
| std::vector< T > && | source | ||
| ) |
Append one vector to another (move from source).
Taken from https://stackoverflow.com/a/37210097
| dest | Vector to append to. |
| source | Vector to append the elements from. source will be a valid empty vector after this call. |
Definition at line 96 of file utility.hpp.
| std::ostream & operator<< | ( | std::ostream & | os, |
| const std::vector< T > & | vector | ||
| ) |
Print a vector to the given output stream.
| T | The type stored in the vector, it must support the << operator. |
| os | The output stream to print to. |
| vector | The vector of elements to print. |
Definition at line 168 of file utility.hpp.
| std::string str | ( | const T & | object | ) |
Convert any object supporting the output stream operator (<<) to a string.
| T | Type of the object to convert to a string. |
| object | The object to convert to a string. |
Definition at line 128 of file utility.hpp.

| std::array< ByteType, sizeof(T)> to_bytes | ( | T | number | ) |
Convert numeric types to bytes.
| ByteType | Numeric type to return in the array of bytes. |
| T | Type of the number being converted to bytes. |
| number | Number to convert to bytes |
Definition at line 145 of file utility.hpp.

| std::string to_lower | ( | std::string | string | ) |
Convert string to lower case.
| string | The string to convert to lower case. |
Definition at line 37 of file utility.cpp.

1.8.14