Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Classes | Public Member Functions | Static Public Attributes | List of all members
qpid::types::Uuid Class Reference

#include <qpid/types/Uuid.h>

Classes

struct  Hasher
 Hasher for use with unordered_map. More...
 

Public Member Functions

QPID_TYPES_EXTERN Uuid (bool unique=false)
 If unique is true, this will generate a new unique uuid, if not it will construct a null uuid. More...
 
QPID_TYPES_EXTERN Uuid (const Uuid &)
 
QPID_TYPES_EXTERN Uuidoperator= (const Uuid &)
 
QPID_TYPES_EXTERN Uuid (const unsigned char *data16)
 Copy the UUID from data16, which must point to a 16-byte UUID. More...
 
QPID_TYPES_EXTERN Uuid (const char *data16)
 
QPID_TYPES_EXTERN void generate ()
 Set to a new unique identifier. More...
 
QPID_TYPES_EXTERN void clear ()
 Set to all zeros. More...
 
QPID_TYPES_EXTERN bool isNull () const
 Test for null (all zeros). More...
 
QPID_TYPES_EXTERN operator bool () const
 
QPID_TYPES_EXTERN bool operator! () const
 
QPID_TYPES_EXTERN std::string str () const
 String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. More...
 
QPID_TYPES_EXTERN size_t size () const
 
const QPID_TYPES_EXTERN unsigned char * data () const
 
QPID_TYPES_EXTERN size_t hash () const
 Hash value suitable for use with unordered_map. More...
 

Static Public Attributes

static const QPID_TYPES_EXTERN size_t SIZE
 

Detailed Description

Definition at line 32 of file Uuid.h.

Constructor & Destructor Documentation

◆ Uuid() [1/4]

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( bool  unique = false)

If unique is true, this will generate a new unique uuid, if not it will construct a null uuid.

◆ Uuid() [2/4]

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( const Uuid )

◆ Uuid() [3/4]

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( const unsigned char *  data16)

Copy the UUID from data16, which must point to a 16-byte UUID.

◆ Uuid() [4/4]

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( const char *  data16)

Member Function Documentation

◆ clear()

QPID_TYPES_EXTERN void qpid::types::Uuid::clear ( )

Set to all zeros.

◆ data()

const QPID_TYPES_EXTERN unsigned char* qpid::types::Uuid::data ( ) const

◆ generate()

QPID_TYPES_EXTERN void qpid::types::Uuid::generate ( )

Set to a new unique identifier.

◆ hash()

QPID_TYPES_EXTERN size_t qpid::types::Uuid::hash ( ) const

Hash value suitable for use with unordered_map.

Referenced by qpid::types::hash_value(), and qpid::types::Uuid::Hasher::operator()().

◆ isNull()

QPID_TYPES_EXTERN bool qpid::types::Uuid::isNull ( ) const

Test for null (all zeros).

◆ operator bool()

QPID_TYPES_EXTERN qpid::types::Uuid::operator bool ( ) const

◆ operator!()

QPID_TYPES_EXTERN bool qpid::types::Uuid::operator! ( ) const

◆ operator=()

QPID_TYPES_EXTERN Uuid& qpid::types::Uuid::operator= ( const Uuid )

◆ size()

QPID_TYPES_EXTERN size_t qpid::types::Uuid::size ( ) const

◆ str()

QPID_TYPES_EXTERN std::string qpid::types::Uuid::str ( ) const

String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.

Member Data Documentation

◆ SIZE

const QPID_TYPES_EXTERN size_t qpid::types::Uuid::SIZE
static

Definition at line 35 of file Uuid.h.


The documentation for this class was generated from the following file:

Qpid C++ API Reference
Generated on Tue Aug 16 2022 for Qpid C++ Client API by doxygen 1.8.17