Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE > Class Template Reference

#include <bdlcc_stripedunorderedcontainerimpl.h>

List of all members.

Public Member Functions

 StripedUnorderedContainerImpl_Node (const KEY &key, const VALUE &value, StripedUnorderedContainerImpl_Node *nextPtr, bslma::Allocator *basicAllocator=0)
 StripedUnorderedContainerImpl_Node (const KEY &key, bslmf::MovableRef< VALUE > value, StripedUnorderedContainerImpl_Node *nextPtr, bslma::Allocator *basicAllocator=0)
 StripedUnorderedContainerImpl_Node (const KEY &key, StripedUnorderedContainerImpl_Node *nextPtr, bslma::Allocator *basicAllocator=0)
 ~StripedUnorderedContainerImpl_Node ()
StripedUnorderedContainerImpl_Node ** nextAddress ()
void setNext (StripedUnorderedContainerImpl_Node *nextPtr)
VALUE & value ()
const KEY & key () const
StripedUnorderedContainerImpl_Nodenext () const
const VALUE & value () const
bslma::Allocatorallocator () const

Detailed Description

template<class KEY, class VALUE>
class bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >

This class template represents a node in the singly-linked list of (KEY, VALUE) elements for each bucket of a hash map.

See Component bdlcc_stripedunorderedcontainerimpl


Constructor & Destructor Documentation

template<class KEY, class VALUE>
bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::StripedUnorderedContainerImpl_Node ( const KEY &  key,
const VALUE &  value,
StripedUnorderedContainerImpl_Node< KEY, VALUE > *  nextPtr,
bslma::Allocator basicAllocator = 0 
)
template<class KEY, class VALUE>
bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::StripedUnorderedContainerImpl_Node ( const KEY &  key,
bslmf::MovableRef< VALUE >  value,
StripedUnorderedContainerImpl_Node< KEY, VALUE > *  nextPtr,
bslma::Allocator basicAllocator = 0 
)

Create a bdlcc::StripedUnorderedContainerImpl_Node object having the specified key and value, and with the specified nextPtr pointer to the next node. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

template<class KEY, class VALUE>
bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::StripedUnorderedContainerImpl_Node ( const KEY &  key,
StripedUnorderedContainerImpl_Node< KEY, VALUE > *  nextPtr,
bslma::Allocator basicAllocator = 0 
)

Create a bdlcc::StripedUnorderedContainerImpl_Node object having the specified key and a value initialized to VALUE(), and with the specified nextPtr pointer to the next node. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

template<class KEY, class VALUE>
bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::~StripedUnorderedContainerImpl_Node (  ) 

Destroy this object.


Member Function Documentation

template<class KEY, class VALUE>
StripedUnorderedContainerImpl_Node** bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::nextAddress (  ) 

Return the address of the pointer to the next node.

template<class KEY, class VALUE>
void bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::setNext ( StripedUnorderedContainerImpl_Node< KEY, VALUE > *  nextPtr  ) 

Set this node's pointer-to-next-node to the specified nextPtr.

template<class KEY, class VALUE>
VALUE& bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::value (  ) 

Return a reference providing modifiable access to the value attribute of this object.

template<class KEY, class VALUE>
const KEY& bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::key (  )  const

Return a const reference to the key attribute of this object.

template<class KEY, class VALUE>
StripedUnorderedContainerImpl_Node* bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::next (  )  const

Return the pointer to the next node.

template<class KEY, class VALUE>
const VALUE& bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::value (  )  const

Return a const reference to the value attribute of this object.

template<class KEY, class VALUE>
bslma::Allocator* bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE >::allocator (  )  const

Return the allocator used by StripedUnorderedContainerImpl_Node to allocate memory.


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