Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlcc::MultipriorityQueue_Node< TYPE > Class Template Reference

#include <bdlcc_multipriorityqueue.h>

List of all members.

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 ()
MultipriorityQueue_Node *& nextPtr ()
const MultipriorityQueue_NodenextPtr () const

Detailed Description

template<class TYPE>
class bdlcc::MultipriorityQueue_Node< TYPE >

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.

See Component bdlcc_multipriorityqueue


Constructor & Destructor Documentation

template<class TYPE >
bdlcc::MultipriorityQueue_Node< TYPE >::MultipriorityQueue_Node ( const TYPE &  item,
bslma::Allocator basicAllocator 
)

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.

template<class TYPE >
bdlcc::MultipriorityQueue_Node< TYPE >::MultipriorityQueue_Node ( bslmf::MovableRef< TYPE >  item,
bslma::Allocator basicAllocator 
)

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.

template<class TYPE >
bdlcc::MultipriorityQueue_Node< TYPE >::~MultipriorityQueue_Node (  ) 

Destroy this node and free all memory that was allocated on its behalf, if any.


Member Function Documentation

template<class TYPE >
bdlcc::MultipriorityQueue_Node< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( MultipriorityQueue_Node< TYPE >  ,
bslma::UsesBslmaAllocator   
)
template<class TYPE >
TYPE& bdlcc::MultipriorityQueue_Node< TYPE >::item (  ) 

Return a reference to the non-modifiable item stored in this node.

template<class TYPE >
MultipriorityQueue_Node*& bdlcc::MultipriorityQueue_Node< TYPE >::nextPtr (  ) 

Return a reference to the modifiable pointer to the node following this node on the linked list.

template<class TYPE >
const MultipriorityQueue_Node* bdlcc::MultipriorityQueue_Node< TYPE >::nextPtr (  )  const

Return a pointer to the non-modifiable node following this node on the linked list, or 0 if this node has no successor.


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