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
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 140 of file SeedingLayerSetsHits.h.

Member Typedef Documentation

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

Definition at line 144 of file SeedingLayerSetsHits.h.

Definition at line 142 of file SeedingLayerSetsHits.h.

Definition at line 143 of file SeedingLayerSetsHits.h.

Constructor & Destructor Documentation

SeedingLayerSetsHits::const_iterator::const_iterator ( )
inline

Definition at line 146 of file SeedingLayerSetsHits.h.

146 : seedingLayerSets_(nullptr) {}
const SeedingLayerSetsHits * seedingLayerSets_
SeedingLayerSetsHits::const_iterator::const_iterator ( const SeedingLayerSetsHits sls,
internal_iterator_type  iter 
)
inline

Definition at line 147 of file SeedingLayerSetsHits.h.

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

Member Function Documentation

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

Definition at line 165 of file SeedingLayerSetsHits.h.

References operator==().

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

Definition at line 150 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

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

Definition at line 154 of file SeedingLayerSetsHits.h.

References iter_, SeedingLayerSetsHits::nlayers_, and seedingLayerSets_.

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

Definition at line 158 of file SeedingLayerSetsHits.h.

References clone().

158  {
159  const_iterator clone(*this);
160  ++(*this);
161  return clone;
162  }
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 164 of file SeedingLayerSetsHits.h.

References iter_.

Referenced by operator!=().

164 { return iter_ == other.iter_; }

Member Data Documentation

internal_iterator_type SeedingLayerSetsHits::const_iterator::iter_
private

Definition at line 169 of file SeedingLayerSetsHits.h.

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

const SeedingLayerSetsHits* SeedingLayerSetsHits::const_iterator::seedingLayerSets_
private

Definition at line 168 of file SeedingLayerSetsHits.h.

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