Class LocatorWithMask
Defined in File LocatorWithMask.hpp
Inheritance Relationships
Base Type
public eprosima::fastrtps::rtps::Locator_t
(Class Locator_t)
Class Documentation
-
class LocatorWithMask : public eprosima::fastrtps::rtps::Locator_t
A Locator with a mask that defines the number of significant bits of its address.
Public Functions
-
uint8_t mask() const
Get the number of significant bits on the address of this locator.
- Returns:
number of significant bits on the address of this locator.
-
void mask(uint8_t mask)
Set the number of significant bits on the address of this locator.
- Parameters:
mask – number of significant bits on the address of this locator.
-
bool matches(const Locator &loc) const
Check whether the given locator is from the same network as this locator.
- Parameters:
loc – locator to check if belonging to the same network as this locator.
- Returns:
true if the two locators are from the same network, false otherwise.
-
LocatorWithMask &operator=(const Locator &loc)
Copy assignment.
-
uint8_t mask() const