Template Class ArrayMessage_

Inheritance Relationships

Base Type

Class Documentation

template<typename T, bool BOUNDED, bool FIXED_LENGTH>
class ArrayMessage_ : public ros_babel_fish::ArrayMessageBase

Public Functions

ArrayMessage_(const ArrayMessage_&) = delete
inline explicit ArrayMessage_(MessageMemberIntrospection member, std::shared_ptr<void> data)
~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)
inline virtual bool _isMessageEqual(const Message &o) const override
template<bool B, bool FL>
inline bool _isMessageEqualImpl(const ArrayMessageBase &other) const