|
constexpr auto & | x () noexcept |
| Mutable vector component access; remember to call set_updated() if you change the value of the vector.
|
|
constexpr auto & | y () noexcept |
| Mutable vector component access; remember to call set_updated() if you change the value of the vector.
|
|
constexpr auto & | z () noexcept |
| Mutable vector component access; remember to call set_updated() if you change the value of the vector.
|
|
constexpr const auto & | x () const noexcept |
| Immutable vector component access.
|
|
constexpr const auto & | y () const noexcept |
| Immutable vector component access.
|
|
constexpr const auto & | z () const noexcept |
| Immutable vector component access.
|
|
constexpr const auto & | operator[] (std::size_t i) const noexcept |
|
constexpr auto & | operator[] (std::size_t i) noexcept |
|
void | set_updated () noexcept |
|
constexpr | occasional () noexcept |
| Default constructor; state is default initialized and updated is false.
|
|
constexpr | occasional (occasional< T > &&other) |
| Move constructor from another occasional .
|
|
constexpr | occasional (const occasional< T > &other) |
| Copy constructor from another occasional .
|
|
constexpr auto & | operator= (occasional< T > &&other) |
| Move assignment from another occasional .
|
|
constexpr auto & | operator= (const occasional< T > &other) |
| Copy assignment from another occasional .
|
|
constexpr | operator T& () noexcept |
| Mutable value access.
|
|
constexpr | operator const T & () const noexcept |
| Immutable value access.
|
|
constexpr | occasional (T &&t) noexcept |
| Move constructor from the underlying type.
|
|
constexpr | occasional (const T &t) noexcept |
| Copy constructor from the underlying type.
|
|
constexpr auto & | operator= (T &&t) noexcept |
| Move assignment from the underlying type.
|
|
constexpr auto & | operator= (const T &t) noexcept |
| Copy assignment from the underlying type.
|
|
constexpr T & | operator* () noexcept |
| Mutable dereference operator; provides access to the underlying state.
|
|
constexpr const T & | operator* () const noexcept |
| Constant dereference operator; provides access to the underlying state.
|
|
constexpr T * | operator-> () noexcept |
| Mutable member access operator; provides access to the members of the underlying state.
|
|
constexpr const T * | operator-> () const noexcept |
| Constant member access operator; provides access to the members of the underlying state.
|
|
constexpr T & | value () noexcept |
| Mutable value access.
|
|
constexpr const T & | value () const noexcept |
| Immutable value access.
|
|
constexpr void | reset () noexcept |
| Clear the updated flag. This can also be achieved by assignment from empty braces, e.g. x = {};
|
|
template<
string_literal name, typename T = float,
num_literal< T > min = -1.0f,
num_literal< T > max = 1.0f,
string_literal unit = "normalized",
string_literal desc = "", typename ... Tags>
struct sygaldry::vec3_message< name, T, min, max, unit, desc, Tags >
A MIMU data vector.
- Template Parameters
-
name | The name of the vector, e.g. "accelerometer" |
T | The underlying numeric type, usually float or int |
min | The expected minimum magnitude of the vector |
max | The expected maximum magnitude of the vector |
unit | The unit of measurement of the vector |
desc | A textual description of the vector |
Tags | A list of tag helper classes to apply to the endpoint |