libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
BloombergLP::bmqt::SubscriptionHandle Class Reference

Value-semantic type for unique Subscription id.

#include <bmqt_subscription.h>

Public Member Functions

 SubscriptionHandle (const bmqt::CorrelationId &cid)
 
const bmqt::CorrelationIdcorrelationId () const
 
unsigned int id () const
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Static Public Attributes

static const unsigned int k_INVALID_HANDLE_ID = 0
 Initial (invalid) value for bmqt::SubscriptionHandle::d_id More...
 

Friends

struct bmqa::MessageImpl
 
class bmqa::MessageIterator
 
bool operator< (const SubscriptionHandle &lhs, const SubscriptionHandle &rhs)
 
bool operator== (const SubscriptionHandle &lhs, const SubscriptionHandle &rhs)
 
bool operator!= (const SubscriptionHandle &lhs, const SubscriptionHandle &rhs)
 
template<class HASH_ALGORITHM >
void hashAppend (HASH_ALGORITHM &hashAlgo, const SubscriptionHandle &id)
 Apply the specified hashAlgo to the specified id. More...
 

Constructor & Destructor Documentation

◆ SubscriptionHandle()

BloombergLP::bmqt::SubscriptionHandle::SubscriptionHandle ( const bmqt::CorrelationId cid)
inline

Member Function Documentation

◆ correlationId()

const bmqt::CorrelationId & BloombergLP::bmqt::SubscriptionHandle::correlationId ( ) const
inline

◆ id()

unsigned int BloombergLP::bmqt::SubscriptionHandle::id ( ) const
inline

Do NOT use. Internal function, reserved for BlazingMQ internal usage. It is subject to change without notice.

◆ print()

bsl::ostream & BloombergLP::bmqt::SubscriptionHandle::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const
inline

Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect.

Referenced by BloombergLP::bmqt::operator<<().

Friends And Related Function Documentation

◆ bmqa::MessageImpl

friend struct bmqa::MessageImpl
friend

◆ bmqa::MessageIterator

friend class bmqa::MessageIterator
friend

◆ operator<

bool operator< ( const SubscriptionHandle lhs,
const SubscriptionHandle rhs 
)
friend

◆ operator==

bool operator== ( const SubscriptionHandle lhs,
const SubscriptionHandle rhs 
)
friend

◆ operator!=

bool operator!= ( const SubscriptionHandle lhs,
const SubscriptionHandle rhs 
)
friend

◆ hashAppend

template<class HASH_ALGORITHM >
void hashAppend ( HASH_ALGORITHM &  hashAlgo,
const SubscriptionHandle id 
)
friend

Member Data Documentation

◆ k_INVALID_HANDLE_ID

const unsigned int BloombergLP::bmqt::SubscriptionHandle::k_INVALID_HANDLE_ID = 0
static

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