Overview     Usage     Performance Notes     Links tst 0.68 - 23 Jan 2009

iter_method_forward Struct Template Reference

Inherits containers::tst_detail::BaseT.

List of all members.


Detailed Description

template<class BaseT>
struct containers::tst_detail::iter_method_forward< BaseT >

Helper template that forwards the key(), value() public methods from tst_iterator_base to the iterator_wrapper type: iterator_wrapper doesn't inherit from its base_iter, so this class reaches through and forwards the needed methods.

Rationale: It is better for users to type it.key() than it.iter_base().key().

Note that the constructors must mimic the iterator_wrapper constructors, in order to get correct iterator type copying relations.

Public Types

typedef BaseT::base_iter forward_t

Public Member Functions

 iter_method_forward ()
template<class SameBase>
 iter_method_forward (const iter_method_forward< iterators::iterator_wrapper< SameBase, iterators::nonconst_traits< typename SameBase::value_type > > > &it)
 iter_method_forward (const iter_method_forward &it)
 iter_method_forward (const BaseT &it)
 iter_method_forward (typename BaseT::base_iter const &it)
BaseT::base_iter::string_type
const & 
key () const
 The key at current iterator position.
BaseT::base_iter::const_reference value () const
 Const value at current iterator position (use iterator dereference for mutable access).
BaseT::base_iter::node_index tree_position () const
 Used by iterators for wrapper classes.
bool empty () const
 Used by iterators for wrapper classes.
BaseT::reference dereference () const
void increment ()
void decrement ()
bool equal (const iter_method_forward &other) const
forward_tforward ()
const forward_tforward () const


Member Typedef Documentation

typedef BaseT::base_iter forward_t


Constructor & Destructor Documentation

iter_method_forward (  )  [inline]

iter_method_forward ( const iter_method_forward< iterators::iterator_wrapper< SameBase, iterators::nonconst_traits< typename SameBase::value_type > > > &  it  )  [inline]

iter_method_forward ( const iter_method_forward< BaseT > &  it  )  [inline]

iter_method_forward ( const BaseT it  )  [inline]

iter_method_forward ( typename BaseT::base_iter const &  it  )  [inline]


Member Function Documentation

BaseT::base_iter::string_type const& key (  )  const [inline]

The key at current iterator position.

BaseT::base_iter::const_reference value (  )  const [inline]

Const value at current iterator position (use iterator dereference for mutable access).

BaseT::base_iter::node_index tree_position (  )  const [inline]

Used by iterators for wrapper classes.

bool empty (  )  const [inline]

Used by iterators for wrapper classes.

BaseT::reference dereference (  )  const [inline]

void increment (  )  [inline]

void decrement (  )  [inline]

bool equal ( const iter_method_forward< BaseT > &  other  )  const [inline]

forward_t& forward (  )  [inline]

const forward_t& forward (  )  const [inline]


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