BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlcc::StripedUnorderedContainerImpl_Node< KEY, VALUE > Class Template Reference

#include <bdlcc_stripedunorderedcontainerimpl.h>

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 ()
 Destroy this object.
 
StripedUnorderedContainerImpl_Node ** nextAddress ()
 Return the address of the pointer to the next node.
 
void setNext (StripedUnorderedContainerImpl_Node *nextPtr)
 Set this node's pointer-to-next-node to the specified nextPtr.
 
VALUE & value ()
 
const KEY & key () const
 Return a const reference to the key attribute of this object.
 
StripedUnorderedContainerImpl_Nodenext () const
 Return the pointer to the next node.
 
const VALUE & value () const
 Return a const reference to the value attribute of this object.
 
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 bdlcc_stripedunorderedcontainerimpl

Constructor & Destructor Documentation

◆ StripedUnorderedContainerImpl_Node() [1/3]

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 
)
inline

◆ StripedUnorderedContainerImpl_Node() [2/3]

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 
)
inline

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.

◆ StripedUnorderedContainerImpl_Node() [3/3]

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.

◆ ~StripedUnorderedContainerImpl_Node()

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

Member Function Documentation

◆ allocator()

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

Return the allocator used by StripedUnorderedContainerImpl_Node to allocate memory.

◆ key()

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

◆ next()

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

◆ nextAddress()

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

◆ setNext()

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

◆ value() [1/2]

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

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

◆ value() [2/2]

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

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