theplu::yat::utility::detail::iterator_traits_detail< Iter, T > Struct Template Reference

#include <yat/utility/iterator_traits.h>

List of all members.

Public Types

typedef std::iterator_traits
< Iter >::reference 
data_reference
typedef double weight_reference

Public Member Functions

 iterator_traits_detail (void)
data_reference data (Iter iter) const
weight_reference weight (Iter iter) const


Detailed Description

template<typename Iter, typename T>
struct theplu::yat::utility::detail::iterator_traits_detail< Iter, T >

For internal use only.

This class is used in iterator_traits to separate different cases.

This the default implementation that could be used for unweighted iterators.


Member Typedef Documentation

template<typename Iter, typename T>
typedef std::iterator_traits<Iter>::reference theplu::yat::utility::detail::iterator_traits_detail< Iter, T >::data_reference

for unweighted data_reference is reference

template<typename Iter, typename T>
typedef double theplu::yat::utility::detail::iterator_traits_detail< Iter, T >::weight_reference

for unweighted weight_reference is a double


Constructor & Destructor Documentation

template<typename Iter, typename T>
theplu::yat::utility::detail::iterator_traits_detail< Iter, T >::iterator_traits_detail ( void   )  [inline]

Constructor just checking that iterator is unweighted


Member Function Documentation

template<typename Iter, typename T>
data_reference theplu::yat::utility::detail::iterator_traits_detail< Iter, T >::data ( Iter  iter  )  const [inline]

Returns:
* iter

template<typename Iter, typename T>
weight_reference theplu::yat::utility::detail::iterator_traits_detail< Iter, T >::weight ( Iter  iter  )  const [inline]

Returns:
1.0


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

Generated on Tue Jan 18 02:20:11 2011 for yat by  doxygen 1.5.5