BDE 4.14.0 Production release
|
#include <bdlcc_timequeue.h>
Public Types | |
typedef TimeQueue< DATA >::Handle | Handle |
typedef TimeQueue< DATA >::Key | Key |
Public Member Functions | |
BSLMF_NESTED_TRAIT_DECLARATION (TimeQueueItem, bslma::UsesBslmaAllocator) | |
TimeQueueItem (bslma::Allocator *basicAllocator=0) | |
TimeQueueItem (const bsls::TimeInterval &time, const DATA &data, Handle handle, bslma::Allocator *basicAllocator=0) | |
TimeQueueItem (const bsls::TimeInterval &time, const DATA &data, Handle handle, const Key &key, bslma::Allocator *basicAllocator=0) | |
TimeQueueItem (const TimeQueueItem< DATA > &original, bslma::Allocator *basicAllocator=0) | |
TimeQueueItem & | operator= (const TimeQueueItem< DATA > &rhs) |
Set the value of this TimeQueueItem to that of rhs . | |
bsls::TimeInterval & | time () |
Return the modifiable time value associated with this item. | |
DATA & | data () |
Return the modifiable data instance associated with this item. | |
Handle & | handle () |
Return the modifiable handle value associated with this item. | |
Key & | key () |
Return the modifiable key value associated with this item. | |
const bsls::TimeInterval & | time () const |
Return the non-modifiable time value associated with this item. | |
const DATA & | data () const |
Return the non-modifiable data associated with this item. | |
Handle | handle () const |
Return the non-modifiable handle value associated with this item. | |
const Key & | key () const |
Return the non-modifiable key value associated with this item. | |
This parameterized structure holds a time, data and associated handle. This structure is used in the interface of TimeQueue<DATA>
to provide thread-safe access to individual elements on the queue. Note that DATA
must be default-constructible.
See bdlcc_timequeue
typedef TimeQueue<DATA>::Handle bdlcc::TimeQueueItem< DATA >::Handle |
typedef TimeQueue<DATA>::Key bdlcc::TimeQueueItem< DATA >::Key |
|
explicit |
Create an empty time queue item. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is zero, then use the currently installed default allocator.
bdlcc::TimeQueueItem< DATA >::TimeQueueItem | ( | const bsls::TimeInterval & | time, |
const DATA & | data, | ||
Handle | handle, | ||
bslma::Allocator * | basicAllocator = 0 |
||
) |
Create time queue item holding a copy of the specified data
, with the specified associated time
and handle
information. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is zero, then use the currently installed default allocator.
bdlcc::TimeQueueItem< DATA >::TimeQueueItem | ( | const bsls::TimeInterval & | time, |
const DATA & | data, | ||
Handle | handle, | ||
const Key & | key, | ||
bslma::Allocator * | basicAllocator = 0 |
||
) |
Create time queue item holding a copy of the specified data
, with the specified associated time
, handle
, and key
information. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is zero, then use the currently installed default allocator.
bdlcc::TimeQueueItem< DATA >::TimeQueueItem | ( | const TimeQueueItem< DATA > & | original, |
bslma::Allocator * | basicAllocator = 0 |
||
) |
Create a copy of the specified original
time queue item. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is zero, then use the currently installed default allocator.
bdlcc::TimeQueueItem< DATA >::BSLMF_NESTED_TRAIT_DECLARATION | ( | TimeQueueItem< DATA > | , |
bslma::UsesBslmaAllocator | |||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |