CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 18 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 23 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 24 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 21 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 22 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 20 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 25 of file Selection.h.

25 : i(it) {}
StoreContainer::const_iterator i
Definition: Selection.h:68
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 26 of file Selection.h.

26 : i(it.i) {}
StoreContainer::const_iterator i
Definition: Selection.h:68
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 55 of file Selection.h.

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

55 { return i != ci.i; }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 56 of file Selection.h.

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

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

56 { return **i; }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 32 of file Selection.h.

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

32  {
33  ++i;
34  return *this;
35  }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 36 of file Selection.h.

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

36  {
37  const_iterator ci = *this;
38  ++i;
39  return ci;
40  }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 58 of file Selection.h.

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

58  {
59  i += d;
60  return *this;
61  }
tuple d
Definition: ztail.py:151
StoreContainer::const_iterator i
Definition: Selection.h:68
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 50 of file Selection.h.

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

50 { return i - o.i; }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 41 of file Selection.h.

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

41  {
42  --i;
43  return *this;
44  }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 45 of file Selection.h.

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

45  {
46  const_iterator ci = *this;
47  --i;
48  return ci;
49  }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 62 of file Selection.h.

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

62  {
63  i -= d;
64  return *this;
65  }
tuple d
Definition: ztail.py:151
StoreContainer::const_iterator i
Definition: Selection.h:68
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 57 of file Selection.h.

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

57 { return &(operator*()); }
const value_type & operator*() const
Definition: Selection.h:56
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 53 of file Selection.h.

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

53 { return i < o.i; }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 28 of file Selection.h.

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

28  {
29  i = it.i;
30  return *this;
31  }
StoreContainer::const_iterator i
Definition: Selection.h:68
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 54 of file Selection.h.

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

54 { return i == ci.i; }
StoreContainer::const_iterator i
Definition: Selection.h:68

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