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 | Friends
reco::candidate::iterator Struct Reference

#include <iterator.h>

Public Types

typedef ptrdiff_t difference_type
 
typedef std::vector< int >
::iterator::iterator_category 
iterator_category
 
typedef Candidatepointer
 
typedef Candidatereference
 
typedef Candidate value_type
 

Public Member Functions

 iterator ()
 
 iterator (pointer ime, difference_type ii)
 
bool operator!= (const iterator &ci) const
 
reference operator* () const
 
iterator operator+ (difference_type n) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator+= (difference_type d)
 
difference_type operator- (const iterator &o) const
 
iterator operator- (difference_type n) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator-= (difference_type d)
 
pointer operator-> () const
 
bool operator< (const iterator &o)
 
bool operator== (const iterator &ci) const
 

Private Attributes

difference_type i
 
pointer me
 

Friends

struct const_iterator
 

Detailed Description

Definition at line 14 of file iterator.h.

Member Typedef Documentation

Definition at line 18 of file iterator.h.

Definition at line 19 of file iterator.h.

Definition at line 16 of file iterator.h.

Definition at line 17 of file iterator.h.

Definition at line 15 of file iterator.h.

Constructor & Destructor Documentation

reco::candidate::iterator::iterator ( )
inline

Definition at line 20 of file iterator.h.

20 : me(0), i( 0 ) { }
difference_type i
Definition: iterator.h:45
reco::candidate::iterator::iterator ( pointer  ime,
difference_type  ii 
)
inline

Definition at line 21 of file iterator.h.

21 : me(ime), i(ii) { }
int ii
Definition: cuy.py:588
difference_type i
Definition: iterator.h:45

Member Function Documentation

bool reco::candidate::iterator::operator!= ( const iterator ci) const
inline

Definition at line 37 of file iterator.h.

References i.

37 { return i!=ci.i; }
difference_type i
Definition: iterator.h:45
iterator::reference reco::candidate::iterator::operator* ( ) const
inline

Definition at line 277 of file Candidate.h.

References i.

Referenced by operator->().

277 { return *(me->daughter(i));}
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
difference_type i
Definition: iterator.h:45
iterator reco::candidate::iterator::operator+ ( difference_type  n) const
inline

Definition at line 27 of file iterator.h.

References i, and gen::n.

27  {
28  iterator ci = *this; ci.i+=n;
29  return ci;
30  }
iterator& reco::candidate::iterator::operator++ ( )
inline

Definition at line 22 of file iterator.h.

References i.

22 { ++i; return *this; }
difference_type i
Definition: iterator.h:45
iterator reco::candidate::iterator::operator++ ( int  )
inline

Definition at line 23 of file iterator.h.

References i.

23 { iterator ci = *this; ++i; return ci; }
difference_type i
Definition: iterator.h:45
iterator& reco::candidate::iterator::operator+= ( difference_type  d)
inline

Definition at line 41 of file iterator.h.

References i.

41 { i+=d; return *this; }
difference_type i
Definition: iterator.h:45
difference_type reco::candidate::iterator::operator- ( const iterator o) const
inline

Definition at line 26 of file iterator.h.

References i.

26 { return i-o.i; }
difference_type i
Definition: iterator.h:45
iterator reco::candidate::iterator::operator- ( difference_type  n) const
inline

Definition at line 31 of file iterator.h.

References i, and gen::n.

31  {
32  iterator ci = *this; ci.i-=n;
33  return ci;
34  }
iterator& reco::candidate::iterator::operator-- ( )
inline

Definition at line 24 of file iterator.h.

References i.

24 { --i; return *this; }
difference_type i
Definition: iterator.h:45
iterator reco::candidate::iterator::operator-- ( int  )
inline

Definition at line 25 of file iterator.h.

References i.

25 { iterator ci = *this; --i; return ci; }
difference_type i
Definition: iterator.h:45
iterator& reco::candidate::iterator::operator-= ( difference_type  d)
inline

Definition at line 42 of file iterator.h.

References i.

42 { i-=d; return *this; }
difference_type i
Definition: iterator.h:45
pointer reco::candidate::iterator::operator-> ( ) const
inline

Definition at line 40 of file iterator.h.

References operator*().

40 { return & ( operator*() ); }
reference operator*() const
Definition: Candidate.h:277
bool reco::candidate::iterator::operator< ( const iterator o)
inline

Definition at line 35 of file iterator.h.

References i.

35 { return i<o.i; }
difference_type i
Definition: iterator.h:45
bool reco::candidate::iterator::operator== ( const iterator ci) const
inline

Definition at line 36 of file iterator.h.

References i.

36 { return i==ci.i; }
difference_type i
Definition: iterator.h:45

Friends And Related Function Documentation

friend struct const_iterator
friend

Definition at line 46 of file iterator.h.

Member Data Documentation

difference_type reco::candidate::iterator::i
private
pointer reco::candidate::iterator::me
private

Definition at line 44 of file iterator.h.

Referenced by reco::candidate::const_iterator::operator=().