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

#include <const_iterator.h>

Public Types

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

Public Member Functions

 const_iterator ()
 
 const_iterator (pointer ime, difference_type ii)
 
 const_iterator (const iterator &it)
 
bool operator!= (const const_iterator &ci) const
 
reference operator* () 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)
 
pointer operator-> () const
 
bool operator< (const const_iterator &o)
 
const_iteratoroperator= (const iterator &it)
 
bool operator== (const const_iterator &ci) const
 

Private Attributes

difference_type i
 
pointer me
 

Detailed Description

Definition at line 14 of file const_iterator.h.

Member Typedef Documentation

Definition at line 18 of file const_iterator.h.

Definition at line 19 of file const_iterator.h.

Definition at line 16 of file const_iterator.h.

Definition at line 17 of file const_iterator.h.

Definition at line 15 of file const_iterator.h.

Constructor & Destructor Documentation

reco::candidate::const_iterator::const_iterator ( )
inline

Definition at line 20 of file const_iterator.h.

20 : me(0), i( 0 ) { }
reco::candidate::const_iterator::const_iterator ( pointer  ime,
difference_type  ii 
)
inline

Definition at line 21 of file const_iterator.h.

21 : me(ime), i(ii) { }
int ii
Definition: cuy.py:588
reco::candidate::const_iterator::const_iterator ( const iterator it)
inline

Definition at line 22 of file const_iterator.h.

22 : me(it.me), i(it.i) { }

Member Function Documentation

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

Definition at line 39 of file const_iterator.h.

References i.

39 { return i!=ci.i; }
const_iterator::reference reco::candidate::const_iterator::operator* ( ) const
inline

Definition at line 276 of file Candidate.h.

References i.

Referenced by operator->().

276 { 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) ...
const_iterator reco::candidate::const_iterator::operator+ ( difference_type  n) const
inline

Definition at line 29 of file const_iterator.h.

References i, and gen::n.

29  {
30  const_iterator ci = *this; ci.i+=n;
31  return ci;
32  }
const_iterator& reco::candidate::const_iterator::operator++ ( )
inline

Definition at line 24 of file const_iterator.h.

References i.

24 { ++i; return *this; }
const_iterator reco::candidate::const_iterator::operator++ ( int  )
inline

Definition at line 25 of file const_iterator.h.

References i.

25 { const_iterator ci = *this; ++i; return ci; }
const_iterator& reco::candidate::const_iterator::operator+= ( difference_type  d)
inline

Definition at line 42 of file const_iterator.h.

References i.

42 { i+=d; return *this; }
difference_type reco::candidate::const_iterator::operator- ( const const_iterator o) const
inline

Definition at line 28 of file const_iterator.h.

References i.

28 { return i-o.i; }
const_iterator reco::candidate::const_iterator::operator- ( difference_type  n) const
inline

Definition at line 33 of file const_iterator.h.

References i, and gen::n.

33  {
34  const_iterator ci = *this; ci.i-=n;
35  return ci;
36  }
const_iterator& reco::candidate::const_iterator::operator-- ( )
inline

Definition at line 26 of file const_iterator.h.

References i.

26 { --i; return *this; }
const_iterator reco::candidate::const_iterator::operator-- ( int  )
inline

Definition at line 27 of file const_iterator.h.

References i.

27 { const_iterator ci = *this; --i; return ci; }
const_iterator& reco::candidate::const_iterator::operator-= ( difference_type  d)
inline

Definition at line 43 of file const_iterator.h.

References i.

43 { i-=d; return *this; }
pointer reco::candidate::const_iterator::operator-> ( ) const
inline

Definition at line 41 of file const_iterator.h.

References operator*().

41 { return & ( operator*() ); }
reference operator*() const
Definition: Candidate.h:276
bool reco::candidate::const_iterator::operator< ( const const_iterator o)
inline

Definition at line 37 of file const_iterator.h.

References i.

37 { return i<o.i; }
const_iterator& reco::candidate::const_iterator::operator= ( const iterator it)
inline

Definition at line 23 of file const_iterator.h.

References reco::candidate::iterator::i, i, reco::candidate::iterator::me, and me.

23 { me = it.me; i=it.i; return *this; }
bool reco::candidate::const_iterator::operator== ( const const_iterator ci) const
inline

Definition at line 38 of file const_iterator.h.

References i.

38 { return i==ci.i; }

Member Data Documentation

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

Definition at line 45 of file const_iterator.h.

Referenced by operator=().