Set of strings that introduces a logical partition among the topics visible by the Publisher and Subscriber. More...
#include <QosPolicies.hpp>
Classes | |
| class | const_iterator |
Public Member Functions | |
| FASTDDS_EXPORTED_API | PartitionQosPolicy () |
| Constructor without parameters. More... | |
| FASTDDS_EXPORTED_API | PartitionQosPolicy (uint16_t in_length) |
| Constructor using Parameter length. More... | |
| FASTDDS_EXPORTED_API | PartitionQosPolicy (const PartitionQosPolicy &b) |
| Copy constructor. More... | |
| virtual FASTDDS_EXPORTED_API | ~PartitionQosPolicy ()=default |
| Destructor. More... | |
| bool | operator== (const PartitionQosPolicy &b) const |
| PartitionQosPolicy & | operator= (const PartitionQosPolicy &b) |
| const_iterator | begin () const |
| Getter for the first position of the partition list. More... | |
| const_iterator | end () const |
| Getter for the end of the partition list. More... | |
| uint32_t | size () const |
| Getter for the number of partitions. More... | |
| uint32_t | empty () const |
| Check if the set is empty. More... | |
| void | set_max_size (uint32_t size) |
| Setter for the maximum size reserved for partitions (in bytes) More... | |
| uint32_t | max_size () const |
| Getter for the maximum size (in bytes) More... | |
| FASTDDS_EXPORTED_API void | push_back (const char *name) |
| Appends a name to the list of partition names. More... | |
| FASTDDS_EXPORTED_API void | clear () override |
| Clears list of partition names. More... | |
| FASTDDS_EXPORTED_API const std::vector< std::string > | getNames () const |
| Returns partition names. More... | |
| FASTDDS_EXPORTED_API void | setNames (std::vector< std::string > &nam) |
| Overrides partition names. More... | |
| FASTDDS_EXPORTED_API const std::vector< std::string > | names () const |
| Returns partition names. More... | |
| FASTDDS_EXPORTED_API void | names (std::vector< std::string > &nam) |
| Overrides partition names. More... | |
Public Member Functions inherited from Parameter_t | |
| FASTDDS_EXPORTED_API | Parameter_t () |
| Constructor without parameters. More... | |
| FASTDDS_EXPORTED_API | Parameter_t (ParameterId_t pid, uint16_t length) |
| Constructor using a parameter PID and the parameter length. More... | |
| virtual FASTDDS_EXPORTED_API | ~Parameter_t () |
| Destructor. More... | |
| bool | operator== (const Parameter_t &b) const |
Public Member Functions inherited from QosPolicy | |
| QosPolicy () | |
| Constructor without parameters. More... | |
| QosPolicy (bool send_always) | |
| Constructor. More... | |
| QosPolicy (const QosPolicy &b)=default | |
| Copy Constructor. More... | |
| virtual | ~QosPolicy ()=default |
| Destructor. More... | |
| bool | operator== (const QosPolicy &b) const |
| QosPolicy & | operator= (const QosPolicy &b)=default |
| virtual bool | send_always () const |
| Whether it should always be sent. More... | |
Additional Inherited Members | |
Public Attributes inherited from Parameter_t | |
| ParameterId_t | Pid |
| Parameter ID. By default, PID_PAD. More... | |
| uint16_t | length |
| Parameter length. By default, 0. More... | |
Public Attributes inherited from QosPolicy | |
| bool | hasChanged |
| Boolean that indicates if the Qos has been changed with respect to the default Qos. More... | |
Protected Attributes inherited from QosPolicy | |
| bool | send_always_ |
| Boolean that indicates if the Qos has to be sent even if it is not changed. More... | |
Set of strings that introduces a logical partition among the topics visible by the Publisher and Subscriber.
A DataWriter within a Publisher only communicates with a DataReader in a Subscriber if (in addition to matching the Topic and having compatible QoS) the Publisher and Subscriber have a common partition name string.
The empty string ("") is considered a valid partition that is matched with other partition names using the same rules of string matching and regular-expression matching used for any other partition name.
|
inline |
Constructor without parameters.
|
inline |
Constructor using Parameter length.
| in_length | Length of the parameter |
|
inline |
Copy constructor.
| b | Another PartitionQosPolicy instance |
|
virtualdefault |
Destructor.
|
inline |
Getter for the first position of the partition list.
|
inlineoverridevirtual |
Clears list of partition names.
Implements QosPolicy.
|
inline |
Check if the set is empty.
|
inline |
Getter for the end of the partition list.
|
inline |
Returns partition names.
|
inline |
Getter for the maximum size (in bytes)
|
inline |
Returns partition names.
|
inline |
Overrides partition names.
| nam | Vector of partition name strings. |
|
inline |
|
inline |
|
inline |
Appends a name to the list of partition names.
| name | Name to append. |
|
inline |
Setter for the maximum size reserved for partitions (in bytes)
| size | Size to be set |
|
inline |
Overrides partition names.
| nam | Vector of partition name strings. |
|
inline |
Getter for the number of partitions.