RTI Connext Modern C++ API  Version 6.1.1
rti::core::Guid Class Reference

<<extension>> <<value-type>> Class for GUID (Global Unique Identifier) representation More...

#include "rti/core/Guid.hpp"

Public Member Functions

 Guid ()
 Create a default Guid representing the unknown guid. More...
 
uint8_t & operator[] (uint32_t index)
 Get a reference to value of the Guid at position index. More...
 
const uint8_t & operator[] (uint32_t index) const
 Get const reference to the value of the Guid at position index. More...
 
bool operator< (const Guid &other) const
 Compare two Guids for a less-than relationship. More...
 
bool operator<= (const Guid &other) const
 Compare two Guids for a less-than-or-equal relationship. More...
 
bool operator> (const Guid &other) const
 Compare two Guids for a greater-than relationship. More...
 
bool operator>= (const Guid &other) const
 Compare two Guids for a greater-than-or-equal relationship. More...
 

Static Public Member Functions

static Guid unknown ()
 Unknown GUID. More...
 
static Guid zero ()
 Zero GUID. More...
 
static Guid automatic ()
 Construct a Guid indicating that RTI Connext should choose an appropriate virtual GUID. More...
 

Static Public Attributes

static const size_t LENGTH = 16
 The number of elements of a Guid. More...
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &out, const Guid &guid)
 Prints a Guid to an output stream. More...
 

Detailed Description

<<extension>> <<value-type>> Class for GUID (Global Unique Identifier) representation

Constructor & Destructor Documentation

◆ Guid()

rti::core::Guid::Guid ( )
inline

Create a default Guid representing the unknown guid.

Member Function Documentation

◆ unknown()

static Guid rti::core::Guid::unknown ( )
inlinestatic

Unknown GUID.

◆ zero()

static Guid rti::core::Guid::zero ( )
inlinestatic

Zero GUID.

◆ automatic()

static Guid rti::core::Guid::automatic ( )
inlinestatic

Construct a Guid indicating that RTI Connext should choose an appropriate virtual GUID.

Indicates that RTI Connext should choose an appropriate virtual GUID.

If this special value is assigned to rti::core::policy::DataWriterProtocol::virtual_guid or rti::core::policy::DataReaderProtocol::virtual_guid, RTI Connext will assign the virtual GUID automatically based on the RTPS or physical GUID.

◆ operator[]() [1/2]

uint8_t& rti::core::Guid::operator[] ( uint32_t  index)

Get a reference to value of the Guid at position index.

◆ operator[]() [2/2]

const uint8_t& rti::core::Guid::operator[] ( uint32_t  index) const

Get const reference to the value of the Guid at position index.

◆ operator<()

bool rti::core::Guid::operator< ( const Guid other) const

Compare two Guids for a less-than relationship.

◆ operator<=()

bool rti::core::Guid::operator<= ( const Guid other) const

Compare two Guids for a less-than-or-equal relationship.

◆ operator>()

bool rti::core::Guid::operator> ( const Guid other) const

Compare two Guids for a greater-than relationship.

◆ operator>=()

bool rti::core::Guid::operator>= ( const Guid other) const

Compare two Guids for a greater-than-or-equal relationship.

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const Guid guid 
)
related

Prints a Guid to an output stream.

Member Data Documentation

◆ LENGTH

const size_t rti::core::Guid::LENGTH = 16
static

The number of elements of a Guid.