Overview     Usage     Performance Notes     Links tst 0.68 - 23 Jan 2009

inplace_node Struct Template Reference

Inherits node_base< CharT, DataT, SizeT >.

List of all members.


Detailed Description

template<typename CharT, typename DataT, typename AllocT, typename SizeT>
struct containers::tst_detail::inplace_node< CharT, DataT, AllocT, SizeT >

Stores data in union - requires trivial constructor.

Public Types

typedef DataT value_type
typedef DataTpointer
typedef node_base< CharT,
DataT, SizeT > 
base_type
typedef base_type::char_type char_type
typedef base_type::node_index node_index
typedef AllocT::template
rebind< value_type >::other 
allocator_type

Public Member Functions

 inplace_node (char_type c, node_index mom)
value_typevalue ()
 Requirements: Must only be called for nodes where at_end() == terminal; Never called before data storage is allocated.
const value_typevalue () const
void assign (const value_type &val, AllocT &)
 Requirements: Must only be called for nodes where at_end() == terminal.
void clear_data (AllocT &)

Member Typedef Documentation

typedef DataT value_type

typedef DataT* pointer

typedef node_base<CharT, DataT, SizeT> base_type

Reimplemented from node_base< CharT, DataT, SizeT >.

Reimplemented from node_base< CharT, DataT, SizeT >.

typedef AllocT::template rebind<value_type>::other allocator_type


Constructor & Destructor Documentation

inplace_node ( char_type  c,
node_index  mom 
) [inline]


Member Function Documentation

value_type& value (  )  [inline]

Requirements: Must only be called for nodes where at_end() == terminal; Never called before data storage is allocated.

const value_type& value (  )  const [inline]

void assign ( const value_type val,
AllocT &   
) [inline]

Requirements: Must only be called for nodes where at_end() == terminal.

void clear_data ( AllocT &   )  [inline]


ternary_tree 0.68 -- by rasmus ekman -- Page generated with Doxygen 1.5.6 on 23 Jan 2009