CMS 3D CMS Logo

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_iterator (const const_iterator &it)
 
 const_iterator (const typename StoreContainer::const_iterator &it)
 
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

◆ difference_type

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.

◆ iterator_category

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.

◆ pointer

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.

◆ reference

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.

◆ value_type

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

◆ const_iterator() [1/3]

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) {}

◆ const_iterator() [2/3]

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) {}

◆ const_iterator() [3/3]

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

◆ operator!=()

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.

55 { return i != ci.i; }

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

◆ operator*()

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

◆ operator+()

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

◆ operator++() [1/2]

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.

32  {
33  ++i;
34  return *this;
35  }

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

◆ operator++() [2/2]

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.

36  {
37  const_iterator ci = *this;
38  ++i;
39  return ci;
40  }

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

◆ operator+=()

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.

58  {
59  i += d;
60  return *this;
61  }

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

◆ operator-() [1/2]

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.

50 { return i - o.i; }

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

◆ operator-() [2/2]

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

◆ operator--() [1/2]

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.

41  {
42  --i;
43  return *this;
44  }

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

◆ operator--() [2/2]

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.

45  {
46  const_iterator ci = *this;
47  --i;
48  return ci;
49  }

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

◆ operator-=()

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.

62  {
63  i -= d;
64  return *this;
65  }

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

◆ operator->()

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.

57 { return &(operator*()); }

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

◆ operator<()

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.

53 { return i < o.i; }

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

◆ operator=()

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.

28  {
29  i = it.i;
30  return *this;
31  }

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

◆ operator==()

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.

54 { return i == ci.i; }

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

Member Data Documentation

◆ i

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
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
Selection::const_iterator::const_iterator
const_iterator()
Definition: Selection.h:27
ztail.d
d
Definition: ztail.py:151
Selection::const_iterator::i
StoreContainer::const_iterator i
Definition: Selection.h:68
Selection::const_iterator::operator*
const value_type & operator*() const
Definition: Selection.h:56