17.2.3.8.3. InstanceHandle_t Operators¶
-
inline bool eprosima::fastrtps::rtps::operator==(const InstanceHandle_t &ihandle1, const InstanceHandle_t &ihandle2) noexcept¶
Comparison operator
- Parameters
ihandle1 – First InstanceHandle_t to compare
ihandle2 – Second InstanceHandle_t to compare
- Returns
True if equal
-
inline bool eprosima::fastrtps::rtps::operator!=(const InstanceHandle_t &ihandle1, const InstanceHandle_t &ihandle2) noexcept¶
Comparison operator.
- Parameters
ihandle1 – First InstanceHandle_t to compare
ihandle2 – Second InstanceHandle_t to compare
- Returns
True if not equal
-
inline bool eprosima::fastrtps::rtps::operator<(const InstanceHandle_t &h1, const InstanceHandle_t &h2) noexcept¶
Comparison operator: checks if a InstanceHandle_t is less than another.
- Parameters
h1 – First InstanceHandle_t to compare.
h2 – Second InstanceHandle_t to compare.
- Returns
True if the first InstanceHandle_t is less than the second.
-
inline std::ostream &eprosima::fastrtps::rtps::operator<<(std::ostream &output, const InstanceHandle_t &iHandle)¶
Stream operator: print an InstanceHandle_t.
- Parameters
output – Output stream.
iHandle – InstanceHandle_t to print.
- Returns
Stream operator.
-
inline std::istream &eprosima::fastrtps::rtps::operator>>(std::istream &input, InstanceHandle_t &iHandle)¶
Stream operator: retrieve an InstanceHandle_t.
- Parameters
input – Input stream.
iHandle – InstanceHandle_t that will receive the input as its new value.
- Returns
Stream operator.
-
inline void eprosima::fastrtps::rtps::iHandle2GUID(GUID_t &guid, const InstanceHandle_t &ihandle) noexcept¶
Convert InstanceHandle_t to GUID
- Parameters
guid – GUID to store the results
ihandle – InstanceHandle_t to copy
-
inline GUID_t eprosima::fastrtps::rtps::iHandle2GUID(const InstanceHandle_t &ihandle) noexcept¶
Convert GUID to InstanceHandle_t
- Parameters
ihandle – InstanceHandle_t to store the results
- Returns