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<FIXED_LENGTH || !std::is_same<ENABLED, bool>::value, Reference>::type operator[](size_t index)
template<typename ENABLED = T>
inline std::enable_if<!FIXED_LENGTH && std::is_same<ENABLED, bool>::value, Reference>::type 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<ENABLED, void>::type 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()

Protected Types

typedef message_type_traits::array_type<T, FIXED_LENGTH>::Reference Reference
typedef message_type_traits::array_type<T, FIXED_LENGTH>::ReturnType ReturnType
typedef message_type_traits::array_type<T, FIXED_LENGTH>::ConstReturnType ConstReturnType
typedef message_type_traits::array_type<T, FIXED_LENGTH>::ArgumentType ArgumentType

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