Class LocatorList, a Locator vector that doesn't allow duplicates. More...
#include <LocatorList.hpp>
Public Types | |
| using | value_type = typename std::vector< Locator >::value_type |
Public Member Functions | |
| FASTDDS_EXPORTED_API | LocatorList () |
| Constructor. | |
| FASTDDS_EXPORTED_API | ~LocatorList () |
| Destructor. | |
| FASTDDS_EXPORTED_API | LocatorList (const LocatorList &list) |
| Copy constructor. | |
| FASTDDS_EXPORTED_API | LocatorList (LocatorList &&list) |
| Move constructor. | |
| FASTDDS_EXPORTED_API LocatorList & | operator= (const LocatorList &list) |
| Copy assignment. | |
| FASTDDS_EXPORTED_API LocatorList & | operator= (LocatorList &&list) |
| Move assignment. | |
| FASTDDS_EXPORTED_API bool | operator== (const LocatorList &locator_list) const |
| Equal to operator. | |
| FASTDDS_EXPORTED_API bool | operator!= (const LocatorList &locator_list) const |
| Not equal to operator. | |
| FASTDDS_EXPORTED_API LocatorListIterator | begin () |
| Return an iterator to the beginning. | |
| FASTDDS_EXPORTED_API LocatorListIterator | end () |
| Return an iterator to the end. | |
| FASTDDS_EXPORTED_API LocatorListConstIterator | begin () const |
| Return a constant iterator to the beginning. | |
| FASTDDS_EXPORTED_API LocatorListConstIterator | end () const |
| Return a constant iterator to the end. | |
| FASTDDS_EXPORTED_API size_t | size () const |
| Return the number of locators. | |
| FASTDDS_EXPORTED_API LocatorList & | assign (const LocatorList &list) |
| Replace the contents of the container. | |
| FASTDDS_EXPORTED_API void | clear () |
| Erase all locators from the container. | |
| FASTDDS_EXPORTED_API void | reserve (size_t num) |
| Reserve storage increasing the capacity of the vector. | |
| FASTDDS_EXPORTED_API void | resize (size_t num) |
Resize the container to contain num locators. | |
| FASTDDS_EXPORTED_API void | push_back (const Locator &loc) |
| Add locator to the end if not found within the list. | |
| FASTDDS_EXPORTED_API void | push_back (const LocatorList &locList) |
| Add several locators to the end if not already present within the list. | |
| FASTDDS_EXPORTED_API bool | empty () const |
| Check that the container has no locators. | |
| FASTDDS_EXPORTED_API void | erase (const Locator &loc) |
| Erase the specified locator from the container. | |
| FASTDDS_EXPORTED_API bool | isValid () const |
| Check that every locator contained in the list is not LOCATOR_KIND_INVALID. | |
| FASTDDS_EXPORTED_API void | swap (LocatorList &locatorList) |
| exchange the content of the container. | |
| template<int kind> | |
| bool | has_kind () const |
| FASTDDS_EXPORTED_API void | copy_to (eprosima::fastdds::ResourceLimitedVector< Locator > &locator_list) const |
Class LocatorList, a Locator vector that doesn't allow duplicates.
| using value_type = typename std::vector<Locator>::value_type |
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
Copy constructor.
|
inline |
Move constructor.
|
inline |
Replace the contents of the container.
| list | New content to be saved into the container. |
|
inline |
Return an iterator to the beginning.
|
inline |
Return a constant iterator to the beginning.
|
inline |
Erase all locators from the container.
|
inline |
|
inline |
Check that the container has no locators.
|
inline |
Return an iterator to the end.
|
inline |
Return a constant iterator to the end.
|
inline |
Erase the specified locator from the container.
| loc | Locator to be removed. |
|
inline |
|
inline |
Check that every locator contained in the list is not LOCATOR_KIND_INVALID.
|
inline |
Not equal to operator.
|
inline |
Copy assignment.
|
inline |
Move assignment.
|
inline |
Equal to operator.
|
inline |
Add locator to the end if not found within the list.
| loc | locator to be appended. |
|
inline |
Add several locators to the end if not already present within the list.
| locList | LocatorList with the locators to be appended. |
|
inline |
Reserve storage increasing the capacity of the vector.
| num | new capacity of the vector, in number of elements. |
|
inline |
Resize the container to contain num locators.
If the current size is greater than num, the container is reduced to its first num locators. If the current size is less than count, additional default-inserted locators are appended.
| num | new size of the container. |
|
inline |
Return the number of locators.
|
inline |
exchange the content of the container.
| locatorList | container to exchange the contents with. |