Template Class ArrayMessage_
Defined in File array_message.hpp
Inheritance Relationships
Base Type
public ros_babel_fish::ArrayMessageBase
(Class ArrayMessageBase)
Class Documentation
-
template<typename T, bool BOUNDED, bool FIXED_LENGTH>
class ArrayMessage_ : public ros_babel_fish::ArrayMessageBase Public Functions
-
ArrayMessage_(const ArrayMessage_&) = delete
-
~ArrayMessage_() override = default
-
template<typename ENABLED = T>
inline std::enable_if_t<FIXED_LENGTH || !std::is_same_v<ENABLED, bool>, Reference> operator[](size_t index)
-
template<typename ENABLED = T>
inline std::enable_if_t<!FIXED_LENGTH && std::is_same_v<ENABLED, bool>, Reference> operator[](size_t index)
-
inline ConstReturnType operator[](size_t index) const
-
inline Reference at(size_t index)
-
inline ConstReturnType at(size_t index) const
-
inline void assign(size_t index, ArgumentType value)
- Parameters:
index – The index at which the array element is set/overwritten
value – The value with which the array element is overwritten, has to be the same as the element type.
-
template<bool ENABLED = FIXED_LENGTH>
inline std::enable_if_t<ENABLED, void> fill(ArgumentType &value) Method only for fixed length arrays to fill the array with the given value.
-
inline void replace(size_t index, ArgumentType value)
Alias for assign.
-
inline void push_back(ArgumentType value)
-
inline void append(ArgumentType value)
Alias for push_back.
-
inline void pop_back()
-
inline void resize(size_t length)
-
inline virtual size_t size() const override
-
inline void clear()
-
template<typename ArrayT, size_t ArrayLength, bool ENABLED = FIXED_LENGTH>
inline std::enable_if_t<ENABLED, ArrayMessage_<T, BOUNDED, FIXED_LENGTH>&> operator=(const std::array<ArrayT, ArrayLength> &other)
Protected Functions
-
inline virtual void _assign(const ArrayMessageBase &other) override
-
template<bool B, bool FL>
inline void _assignImpl(const ArrayMessageBase &other)
-
template<bool B, bool FL>
inline bool _isMessageEqualImpl(const ArrayMessageBase &other) const
-
ArrayMessage_(const ArrayMessage_&) = delete