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
SeedingLayerSetsHits::const_iterator Class Reference

#include <SeedingLayerSetsHits.h>

Public Types

typedef
internal_iterator_type::difference_type 
difference_type
 
typedef std::vector
< LayerSetIndex >
::const_iterator 
internal_iterator_type
 
typedef SeedingLayerSet value_type
 

Public Member Functions

 const_iterator ()
 
 const_iterator (const SeedingLayerSetsHits *sls, internal_iterator_type iter)
 
bool operator!= (const const_iterator &other) const
 
value_type operator* () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &other) const
 

Private Attributes

internal_iterator_type iter_
 
const SeedingLayerSetsHitsseedingLayerSets_
 

Detailed Description

Definition at line 127 of file SeedingLayerSetsHits.h.

Member Typedef Documentation

typedef internal_iterator_type::difference_type SeedingLayerSetsHits::const_iterator::difference_type

Definition at line 131 of file SeedingLayerSetsHits.h.

Definition at line 129 of file SeedingLayerSetsHits.h.

Definition at line 130 of file SeedingLayerSetsHits.h.

Constructor & Destructor Documentation

SeedingLayerSetsHits::const_iterator::const_iterator ( )
inline

Definition at line 133 of file SeedingLayerSetsHits.h.

133 : seedingLayerSets_(0) {}
const SeedingLayerSetsHits * seedingLayerSets_
SeedingLayerSetsHits::const_iterator::const_iterator ( const SeedingLayerSetsHits sls,
internal_iterator_type  iter 
)
inline

Definition at line 134 of file SeedingLayerSetsHits.h.

134 : seedingLayerSets_(sls), iter_(iter) {}
const SeedingLayerSetsHits * seedingLayerSets_

Member Function Documentation

bool SeedingLayerSetsHits::const_iterator::operator!= ( const const_iterator other) const
inline

Definition at line 146 of file SeedingLayerSetsHits.h.

References operator==().

146 { return !operator==(other); }
bool operator==(const const_iterator &other) const
value_type SeedingLayerSetsHits::const_iterator::operator* ( void  ) const
inline

Definition at line 136 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

136 { return SeedingLayerSet(seedingLayerSets_, iter_, iter_+seedingLayerSets_->nlayers_); }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.
const_iterator& SeedingLayerSetsHits::const_iterator::operator++ ( void  )
inline

Definition at line 138 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

138 { std::advance(iter_, seedingLayerSets_->nlayers_); return *this; }
const SeedingLayerSetsHits * seedingLayerSets_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.
const_iterator SeedingLayerSetsHits::const_iterator::operator++ ( int  )
inline

Definition at line 139 of file SeedingLayerSetsHits.h.

References clone().

139  {
140  const_iterator clone(*this);
141  ++clone;
142  return clone;
143  }
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
bool SeedingLayerSetsHits::const_iterator::operator== ( const const_iterator other) const
inline

Definition at line 145 of file SeedingLayerSetsHits.h.

References iter_.

Referenced by operator!=().

145 { return iter_ == other.iter_; }

Member Data Documentation

internal_iterator_type SeedingLayerSetsHits::const_iterator::iter_
private

Definition at line 150 of file SeedingLayerSetsHits.h.

Referenced by operator*(), operator++(), and operator==().

const SeedingLayerSetsHits* SeedingLayerSetsHits::const_iterator::seedingLayerSets_
private

Definition at line 149 of file SeedingLayerSetsHits.h.

Referenced by operator*(), and operator++().