Class GenericDataQosPolicy, base class to transmit user data during the discovery phase. More...
#include <QosPolicies.hpp>
Public Member Functions | |
FASTDDS_EXPORTED_API | GenericDataQosPolicy (ParameterId_t pid) |
FASTDDS_EXPORTED_API | GenericDataQosPolicy (ParameterId_t pid, uint16_t in_length) |
FASTDDS_EXPORTED_API | GenericDataQosPolicy (const GenericDataQosPolicy &data) |
Construct from another GenericDataQosPolicy. | |
FASTDDS_EXPORTED_API | GenericDataQosPolicy (ParameterId_t pid, const collection_type &data) |
Construct from underlying collection type. | |
virtual FASTDDS_EXPORTED_API | ~GenericDataQosPolicy ()=default |
GenericDataQosPolicy & | operator= (const collection_type &b) |
Copies data from underlying collection type. | |
GenericDataQosPolicy & | operator= (const GenericDataQosPolicy &b) |
Copies another GenericDataQosPolicy. | |
bool | operator== (const GenericDataQosPolicy &b) const |
bool | operator== (const collection_type &b) const |
void | set_max_size (size_t size) |
Set the maximum size of the user data and reserves memory for that much. | |
void | resize (size_t new_size) |
const collection_type & | dataVec () const |
void | clear () override |
Clears the QosPolicy object. | |
FASTDDS_EXPORTED_API const collection_type & | data_vec () const |
Returns raw data vector. | |
FASTDDS_EXPORTED_API collection_type & | data_vec () |
Returns raw data vector. | |
FASTDDS_EXPORTED_API void | data_vec (const collection_type &vec) |
Sets raw data vector. | |
FASTDDS_EXPORTED_API const collection_type & | getValue () const |
Returns raw data vector. | |
FASTDDS_EXPORTED_API void | setValue (const collection_type &vec) |
Sets raw data vector. | |
![]() | |
FASTDDS_EXPORTED_API | Parameter_t () |
Constructor without parameters. | |
FASTDDS_EXPORTED_API | Parameter_t (ParameterId_t pid, uint16_t length) |
Constructor using a parameter PID and the parameter length. | |
virtual FASTDDS_EXPORTED_API | ~Parameter_t () |
Destructor. | |
bool | operator== (const Parameter_t &b) const |
![]() | |
QosPolicy () | |
Constructor without parameters. | |
QosPolicy (bool send_always) | |
Constructor. | |
QosPolicy (const QosPolicy &b)=default | |
Copy Constructor. | |
virtual | ~QosPolicy ()=default |
Destructor. | |
bool | operator== (const QosPolicy &b) const |
QosPolicy & | operator= (const QosPolicy &b)=default |
virtual bool | send_always () const |
Whether it should always be sent. | |
![]() | |
ResourceLimitedVector (configuration_type cfg=configuration_type(), const allocator_type &alloc=allocator_type()) | |
Construct a ResourceLimitedVector. | |
ResourceLimitedVector (const ResourceLimitedVector &other) | |
virtual | ~ResourceLimitedVector ()=default |
ResourceLimitedVector & | operator= (const ResourceLimitedVector &other) |
iterator | insert (const_iterator pos, const value_type &value) |
Insert value before pos. | |
iterator | insert (const_iterator pos, value_type &&value) |
Insert value before pos. | |
pointer | push_back (const value_type &val) |
Add element at the end. | |
pointer | push_back (value_type &&val) |
Add element at the end. | |
pointer | emplace_back (Args &&... args) |
Construct and insert element at the end. | |
bool | remove (const value_type &val) |
Remove element. | |
bool | remove_if (UnaryPredicate pred) |
Remove element. | |
bool | contains (const value_type &val) |
Contains element. | |
void | assign (InputIterator first, InputIterator last) |
Assign vector content. | |
void | assign (size_type n, const value_type &val) |
Assign vector content. | |
void | assign (std::initializer_list< value_type > il) |
Assign vector content. | |
operator const collection_type & () const noexcept | |
Const cast to underlying collection. | |
reference | at (size_type pos) |
Wrappers to other basic vector methods. | |
const_reference | at (size_type pos) const |
reference | operator[] (size_type pos) |
const_reference | operator[] (size_type pos) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crend () const noexcept |
bool | empty () const noexcept |
size_type | size () const noexcept |
size_type | capacity () const noexcept |
size_type | max_size () const noexcept |
void | clear () |
iterator | erase (const_iterator pos) |
iterator | erase (const_iterator first, const_iterator last) |
void | pop_back () |
value_type * | data () |
const value_type * | data () const |
Additional Inherited Members | |
![]() | |
using | configuration_type = ResourceLimitedContainerConfig |
using | collection_type = std::vector< fastdds::rtps::octet, std::allocator< fastdds::rtps::octet > > |
using | value_type = fastdds::rtps::octet |
using | allocator_type = std::allocator< fastdds::rtps::octet > |
using | pointer = typename collection_type::pointer |
using | const_pointer = typename collection_type::const_pointer |
using | reference = typename collection_type::reference |
using | const_reference = typename collection_type::const_reference |
using | size_type = typename collection_type::size_type |
using | difference_type = typename collection_type::difference_type |
using | iterator = typename collection_type::iterator |
using | const_iterator = typename collection_type::const_iterator |
using | reverse_iterator = typename collection_type::reverse_iterator |
using | const_reverse_iterator = typename collection_type::const_reverse_iterator |
![]() | |
ParameterId_t | Pid |
Parameter ID. By default, PID_PAD. | |
uint16_t | length |
Parameter length. By default, 0. | |
![]() | |
bool | hasChanged |
Boolean that indicates if the Qos has been changed with respect to the default Qos. | |
![]() | |
bool | ensure_capacity () |
Make room for one item. | |
std::enable_if<!Enabler::value, void >::type | do_remove (iterator it) |
Remove element. | |
std::enable_if< Enabler::value, void >::type | do_remove (iterator it) |
Remove element. | |
![]() | |
bool | send_always_ |
Boolean that indicates if the Qos has to be sent even if it is not changed. | |
![]() | |
configuration_type | configuration_ |
collection_type | collection_ |
Class GenericDataQosPolicy, base class to transmit user data during the discovery phase.
|
inline |
|
inline |
|
inline |
Construct from another GenericDataQosPolicy.
The resulting GenericDataQosPolicy will have the same size limits as the input attribute
data | data to copy in the newly created object |
|
inline |
Construct from underlying collection type.
Useful to easy integration on old APIs where a traditional container was used. The resulting GenericDataQosPolicy will always be unlimited in size
pid | Id of the parameter |
data | data to copy in the newly created object |
|
virtualdefault |
|
inline |
Returns raw data vector.
|
inline |
Returns raw data vector.
|
inline |
Sets raw data vector.
vec | raw data to set. |
|
inline |
|
inline |
Returns raw data vector.
|
inline |
Copies data from underlying collection type.
Useful to easy integration on old APIs where a traditional container was used. The resulting GenericDataQosPolicy will keep the current size limit. If the input data is larger than the current limit size, the elements exceeding that maximum will be silently discarded.
b | object to be copied |
|
inline |
Copies another GenericDataQosPolicy.
The resulting GenericDataQosPolicy will have the same size limit as the input parameter, so all data in the input will be copied.
b | object to be copied |
|
inline |
|
inline |
|
inline |
|
inline |
Set the maximum size of the user data and reserves memory for that much.
size | new maximum size of the user data. Zero for unlimited size |
|
inline |
Sets raw data vector.
vec | raw data to set. |