|
Quick Links: |
#include <bmqa_queueid.h>
Public Member Functions | |
| QueueId (bslma::Allocator *allocator=0) | |
| QueueId (const QueueId &other, bslma::Allocator *allocator=0) | |
| QueueId (const bmqt::CorrelationId &correlationId, bslma::Allocator *allocator=0) | |
| QueueId (bsls::Types::Int64 numeric, bslma::Allocator *allocator=0) | |
| QueueId (void *pointer, bslma::Allocator *allocator=0) | |
| QueueId (const bsl::shared_ptr< void > &sharedPtr, bslma::Allocator *allocator=0) | |
| QueueId & | operator= (const QueueId &rhs) |
| const bmqt::CorrelationId & | correlationId () const |
| bsls::Types::Uint64 | flags () const |
| const bmqt::Uri & | uri () const |
| const bmqt::QueueOptions & | options () const |
| bool | isValid () const |
| bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
Friends | |
| bool | operator== (const QueueId &lhs, const QueueId &rhs) |
| bool | operator!= (const QueueId &lhs, const QueueId &rhs) |
| bool | operator< (const QueueId &lhs, const QueueId &rhs) |
Value-semantic efficient identifier for a queue
| bmqa::QueueId::QueueId | ( | bslma::Allocator * | allocator = 0 |
) | [explicit] |
Default constructor. Create a new QueueId associated with an automatically generated correlation Id, using the optionally specified allocator.
| bmqa::QueueId::QueueId | ( | const QueueId & | other, | |
| bslma::Allocator * | allocator = 0 | |||
| ) |
Copy constructor, create a new queueId having the same values as the specified other, and using the optionally specified allocator.
| bmqa::QueueId::QueueId | ( | const bmqt::CorrelationId & | correlationId, | |
| bslma::Allocator * | allocator = 0 | |||
| ) | [explicit] |
Create a new QueueId associated to the correlation Id having the specified correlationId value, using the optionally specified allocator.
| bmqa::QueueId::QueueId | ( | bsls::Types::Int64 | numeric, | |
| bslma::Allocator * | allocator = 0 | |||
| ) | [explicit] |
Create a new QueueId associated to the correlation Id having the specified numeric correlationId value, using the optionally specified allocator.
| bmqa::QueueId::QueueId | ( | void * | pointer, | |
| bslma::Allocator * | allocator = 0 | |||
| ) | [explicit] |
Create a new QueueId associated to the correlation Id having the specified pointer correlationId value, using the optionally specified allocator.
| bmqa::QueueId::QueueId | ( | const bsl::shared_ptr< void > & | sharedPtr, | |
| bslma::Allocator * | allocator = 0 | |||
| ) | [explicit] |
Create a new QueueId associated to the correlation Id having the specified sharedPtr correlationId value, using the optionally specified allocator. The lifetime of sharedPtr is tied to this object, and it is the responsibility of the user to manage it accordingly.
Assignment operator, from the specified rhs using the specified allocator.
| const bmqt::CorrelationId& bmqa::QueueId::correlationId | ( | ) | const |
| bsls::Types::Uint64 bmqa::QueueId::flags | ( | ) | const |
Return the flags used when opening this queue.
| const bmqt::Uri& bmqa::QueueId::uri | ( | ) | const |
| const bmqt::QueueOptions& bmqa::QueueId::options | ( | ) | const |
Return the options used when opening this queue.
| bool bmqa::QueueId::isValid | ( | ) | const |
Return whether this QueueId is valid, i.e., is associated to an opened queue.
| bsl::ostream& bmqa::QueueId::print | ( | bsl::ostream & | stream, | |
| int | level = 0, |
|||
| int | spacesPerLevel = 4 | |||
| ) | const |
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.
Return true if rhs object contains the value of the same type as contained in lhs object and the value itself is the same in both objects, return false otherwise.
Return false if rhs object contains the value of the same type as contained in lhs object and the value itself is the same in both objects, return true otherwise.
Operator used to allow comparison between the specified lhs and rhs CorrelationId objects so that CorrelationId can be used as key in a map.
1.7.1