Quick Links: |
#include <bslalg_bidirectionalnode.h>
Public Types | |
typedef VALUE | ValueType |
Public Member Functions | |
ValueType & | value () |
const ValueType & | value () const |
void | setNextLink (BidirectionalLink *next) |
void | setPreviousLink (BidirectionalLink *previous) |
void | reset () |
BidirectionalLink * | nextLink () const |
BidirectionalLink * | previousLink () const |
This POD-like class
describes a node suitable for use in a doubly-linked list of values of the template parameter type VALUE
. This class is a "POD-like" to facilitate efficient allocation and use in the context of a container implementation. In order to meet the essential requirements of a POD type, this class
does not define a constructor or destructor. The manipulator, value
, returns a modifiable reference to d_value
so that it may be constructed in-place by the appropriate bsl::allocator_traits
object.
See Component bslalg_bidirectionalnode
typedef VALUE bslalg::BidirectionalNode< VALUE >::ValueType |
payload type
ValueType& bslalg::BidirectionalNode< VALUE >::value | ( | ) |
Return a reference providing modifiable access to the value
held by this object.
const ValueType& bslalg::BidirectionalNode< VALUE >::value | ( | ) | const |
Return a reference providing non-modifiable access to the value
held by this object.
void bslalg::BidirectionalLink::setNextLink | ( | BidirectionalLink * | next | ) | [inherited] |
Set the successor of this node to be the specified next
link.
void bslalg::BidirectionalLink::setPreviousLink | ( | BidirectionalLink * | previous | ) | [inherited] |
Set the predecessor of this node to be the specified prev
link.
void bslalg::BidirectionalLink::reset | ( | ) | [inherited] |
Set the nextLink
and previousLink
attributes of this value to 0.
BidirectionalLink* bslalg::BidirectionalLink::nextLink | ( | ) | const [inherited] |
Return the address of the next node linked from this node.
BidirectionalLink* bslalg::BidirectionalLink::previousLink | ( | ) | const [inherited] |
Return the address of the preceding node linked from this node.