CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
Selection< C, Selector, StoreContainer >::const_iterator Class Reference

#include <Selection.h>

Public Types

typedef std::ptrdiff_t difference_type
 
typedef
StoreContainer::const_iterator::iterator_category 
iterator_category
 
typedef value_typepointer
 
typedef value_typereference
 
typedef Selection< C, Selector,
StoreContainer >::value_type 
value_type
 

Public Member Functions

 const_iterator (const typename StoreContainer::const_iterator &it)
 
 const_iterator (const const_iterator &it)
 
 const_iterator ()
 
bool operator!= (const const_iterator &ci) const
 
const value_typeoperator* () const
 
const_iterator operator+ (difference_type n) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator+= (difference_type d)
 
difference_type operator- (const const_iterator &o) const
 
const_iterator operator- (difference_type n) const
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator-= (difference_type d)
 
const value_typeoperator-> () const
 
bool operator< (const const_iterator &o) const
 
const_iteratoroperator= (const const_iterator &it)
 
bool operator== (const const_iterator &ci) const
 

Private Attributes

StoreContainer::const_iterator i
 

Detailed Description

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
class Selection< C, Selector, StoreContainer >::const_iterator

Definition at line 20 of file Selection.h.

Member Typedef Documentation

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
typedef std::ptrdiff_t Selection< C, Selector, StoreContainer >::const_iterator::difference_type

Definition at line 25 of file Selection.h.

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
typedef StoreContainer::const_iterator::iterator_category Selection< C, Selector, StoreContainer >::const_iterator::iterator_category

Definition at line 26 of file Selection.h.

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
typedef value_type* Selection< C, Selector, StoreContainer >::const_iterator::pointer

Definition at line 23 of file Selection.h.

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
typedef value_type& Selection< C, Selector, StoreContainer >::const_iterator::reference

Definition at line 24 of file Selection.h.

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
typedef Selection<C,Selector,StoreContainer>::value_type Selection< C, Selector, StoreContainer >::const_iterator::value_type

Definition at line 22 of file Selection.h.

Constructor & Destructor Documentation

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
Selection< C, Selector, StoreContainer >::const_iterator::const_iterator ( const typename StoreContainer::const_iterator &  it)
inline

Definition at line 27 of file Selection.h.

27 : i(it) { }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
Selection< C, Selector, StoreContainer >::const_iterator::const_iterator ( const const_iterator it)
inline

Definition at line 28 of file Selection.h.

28 : i(it.i) { }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
Selection< C, Selector, StoreContainer >::const_iterator::const_iterator ( )
inline

Member Function Documentation

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
bool Selection< C, Selector, StoreContainer >::const_iterator::operator!= ( const const_iterator ci) const
inline

Definition at line 40 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

40 { return i != ci.i; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const value_type& Selection< C, Selector, StoreContainer >::const_iterator::operator* ( ) const
inline

Definition at line 41 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

Referenced by Selection< C, Selector, StoreContainer >::const_iterator::operator->().

41 { return **i; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator Selection< C, Selector, StoreContainer >::const_iterator::operator+ ( difference_type  n) const
inline
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator& Selection< C, Selector, StoreContainer >::const_iterator::operator++ ( )
inline

Definition at line 31 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

31 { ++i; return *this; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator Selection< C, Selector, StoreContainer >::const_iterator::operator++ ( int  )
inline

Definition at line 32 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

32 { const_iterator ci = *this; ++i; return ci; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator& Selection< C, Selector, StoreContainer >::const_iterator::operator+= ( difference_type  d)
inline

Definition at line 43 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

43 { i += d; return *this; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
difference_type Selection< C, Selector, StoreContainer >::const_iterator::operator- ( const const_iterator o) const
inline

Definition at line 35 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

35 { return i - o.i; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator Selection< C, Selector, StoreContainer >::const_iterator::operator- ( difference_type  n) const
inline
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator& Selection< C, Selector, StoreContainer >::const_iterator::operator-- ( )
inline

Definition at line 33 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

33 { --i; return *this; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator Selection< C, Selector, StoreContainer >::const_iterator::operator-- ( int  )
inline

Definition at line 34 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

34 { const_iterator ci = *this; --i; return ci; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator& Selection< C, Selector, StoreContainer >::const_iterator::operator-= ( difference_type  d)
inline

Definition at line 44 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

44 { i -= d; return *this; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const value_type* Selection< C, Selector, StoreContainer >::const_iterator::operator-> ( ) const
inline

Definition at line 42 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::operator*().

42 { return & (operator*()); }
const value_type & operator*() const
Definition: Selection.h:41
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
bool Selection< C, Selector, StoreContainer >::const_iterator::operator< ( const const_iterator o) const
inline

Definition at line 38 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

38 { return i < o.i; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
const_iterator& Selection< C, Selector, StoreContainer >::const_iterator::operator= ( const const_iterator it)
inline

Definition at line 30 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

30 { i = it.i; return *this; }
StoreContainer::const_iterator i
Definition: Selection.h:46
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
bool Selection< C, Selector, StoreContainer >::const_iterator::operator== ( const const_iterator ci) const
inline

Definition at line 39 of file Selection.h.

References Selection< C, Selector, StoreContainer >::const_iterator::i.

39 { return i == ci.i; }
StoreContainer::const_iterator i
Definition: Selection.h:46

Member Data Documentation

template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
StoreContainer::const_iterator Selection< C, Selector, StoreContainer >::const_iterator::i
private