|
BDE 4.14.0 Production release
|
#include <bdlcc_multipriorityqueue.h>
Public Member Functions | |
| BSLMF_NESTED_TRAIT_DECLARATION (MultipriorityQueue_Node, bslma::UsesBslmaAllocator) | |
| MultipriorityQueue_Node (const TYPE &item, bslma::Allocator *basicAllocator) | |
| MultipriorityQueue_Node (bslmf::MovableRef< TYPE > item, bslma::Allocator *basicAllocator) | |
| ~MultipriorityQueue_Node () | |
| TYPE & | item () |
| Return a reference to the non-modifiable item stored in this node. | |
| MultipriorityQueue_Node *& | nextPtr () |
| const MultipriorityQueue_Node * | nextPtr () const |
This class handles storage of one item of parameterized TYPE as a node in a linked list of items stored in a multipriority queue for a given priority. This class is not to be used from outside this component.
|
inline |
Create a node containing a copy of the specified item and having the specified next pointer. Use the specified basicAllocator to supply memory. The behavior is undefined unless basicAllocator is non-null. Note that item must be copyable and assignable.
|
inline |
Create a node containing the value of the specified item and having the specified next pointer. item is left in a valid but unspecified state. Use the specified basicAllocator to supply memory. The behavior is undefined unless basicAllocator is non-null.
|
inline |
Destroy this node and free all memory that was allocated on its behalf, if any.
| bdlcc::MultipriorityQueue_Node< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION | ( | MultipriorityQueue_Node< TYPE > | , |
| bslma::UsesBslmaAllocator | |||
| ) |
|
inline |
|
inline |
Return a reference to the modifiable pointer to the node following this node on the linked list.
|
inline |
Return a pointer to the non-modifiable node following this node on the linked list, or 0 if this node has no successor.