19.2.3.9.3. InstanceHandle_t Operators

inline bool eprosima::fastdds::rtps::operator==(const InstanceHandle_t &ihandle1, const InstanceHandle_t &ihandle2) noexcept

Comparison operator

Parameters:
Returns:

True if equal

inline bool eprosima::fastdds::rtps::operator!=(const InstanceHandle_t &ihandle1, const InstanceHandle_t &ihandle2) noexcept

Comparison operator.

Parameters:
Returns:

True if not equal

inline bool eprosima::fastdds::rtps::operator<(const InstanceHandle_t &h1, const InstanceHandle_t &h2) noexcept

Comparison operator: checks if a InstanceHandle_t is less than another.

Parameters:
Returns:

True if the first InstanceHandle_t is less than the second.

inline std::ostream &eprosima::fastdds::rtps::operator<<(std::ostream &output, const InstanceHandle_t &iHandle)

Stream operator: print an InstanceHandle_t.

Parameters:
Returns:

Stream operator.

inline std::istream &eprosima::fastdds::rtps::operator>>(std::istream &input, InstanceHandle_t &iHandle)

Stream operator: retrieve an InstanceHandle_t.

Parameters:
  • input – Input stream.

  • iHandleInstanceHandle_t that will receive the input as its new value.

Returns:

Stream operator.

inline void eprosima::fastdds::rtps::iHandle2GUID(GUID_t &guid, const InstanceHandle_t &ihandle) noexcept

Convert InstanceHandle_t to GUID

Parameters:
inline GUID_t eprosima::fastdds::rtps::iHandle2GUID(const InstanceHandle_t &ihandle) noexcept

Convert GUID to InstanceHandle_t

Parameters:

ihandleInstanceHandle_t to store the results

Returns:

GUID_t