Template Class ArrayMessage_

Inheritance Relationships

Base Type

Class Documentation

template<typename T, ArraySize SIZE>
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
inline 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 = SIZE == ArraySize::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 = SIZE == ArraySize::FIXED_LENGTH>
inline std::enable_if_t<ENABLED, ArrayMessage_<T, SIZE>&> operator=(const std::array<ArrayT, ArrayLength> &other)