#include <CaloRecHitMetaCollectionV.h>
Public Types | |
typedef int | difference_type |
typedef std::random_access_iterator_tag | iterator_category |
typedef int | offset_type |
typedef const CaloRecHit * | pointer |
typedef const CaloRecHit & | reference |
typedef const CaloRecHit & | value_type |
Public Member Functions | |
Iterator () | |
Iterator (const Iterator &it) | |
Iterator (const CaloRecHitMetaCollectionV *col, offset_type pos) | |
bool | operator!= (const Iterator &it) const |
comparison operator | |
reference | operator* () const |
dereference operator | |
Iterator | operator+ (const difference_type n) const |
Iterator & | operator++ () |
Advance the iterator. | |
Iterator | operator++ (int) |
Advance the iterator. | |
Iterator & | operator+= (const difference_type n) |
Iterator | operator- (const difference_type n) const |
Iterator & | operator-- () |
Reverse-advance the iterator. | |
Iterator | operator-- (int) |
Reverse-advance the iterator. | |
Iterator & | operator-= (const difference_type n) |
pointer | operator-> () const |
pointer operator | |
bool | operator< (const Iterator &i) const |
Iterator & | operator= (const Iterator &it) |
bool | operator== (const Iterator &it) const |
comparison operator | |
reference | operator[] (const difference_type n) const |
Private Attributes | |
const CaloRecHitMetaCollectionV * | collection_ |
offset_type | offset_ |
Definition at line 20 of file CaloRecHitMetaCollectionV.h.
Definition at line 24 of file CaloRecHitMetaCollectionV.h.
typedef std::random_access_iterator_tag CaloRecHitMetaCollectionV::Iterator::iterator_category |
Definition at line 22 of file CaloRecHitMetaCollectionV.h.
typedef int CaloRecHitMetaCollectionV::Iterator::offset_type |
Definition at line 27 of file CaloRecHitMetaCollectionV.h.
typedef const CaloRecHit* CaloRecHitMetaCollectionV::Iterator::pointer |
Definition at line 26 of file CaloRecHitMetaCollectionV.h.
typedef const CaloRecHit& CaloRecHitMetaCollectionV::Iterator::reference |
Definition at line 25 of file CaloRecHitMetaCollectionV.h.
typedef const CaloRecHit& CaloRecHitMetaCollectionV::Iterator::value_type |
Definition at line 23 of file CaloRecHitMetaCollectionV.h.
CaloRecHitMetaCollectionV::Iterator::Iterator | ( | ) | [inline] |
Definition at line 29 of file CaloRecHitMetaCollectionV.h.
: collection_(0), offset_(0) { }
CaloRecHitMetaCollectionV::Iterator::Iterator | ( | const Iterator & | it | ) | [inline] |
Definition at line 30 of file CaloRecHitMetaCollectionV.h.
: collection_(it.collection_), offset_(it.offset_) { }
CaloRecHitMetaCollectionV::Iterator::Iterator | ( | const CaloRecHitMetaCollectionV * | col, |
offset_type | pos | ||
) | [inline] |
Definition at line 31 of file CaloRecHitMetaCollectionV.h.
: collection_(col), offset_(pos) { }
bool CaloRecHitMetaCollectionV::Iterator::operator!= | ( | const Iterator & | it | ) | const |
comparison operator
Definition at line 26 of file CaloRecHitMetaCollectionV.cc.
References collection_, and offset_.
{ return collection_!=it.collection_ || offset_!=it.offset_; }
const CaloRecHit & CaloRecHitMetaCollectionV::const_iterator::operator* | ( | void | ) | const |
dereference operator
Definition at line 13 of file CaloRecHitMetaCollectionV.cc.
References CaloRecHitMetaCollectionV::at(), collection_, and offset_.
{ return (*collection_->at(offset_)); }
CaloRecHitMetaCollectionV::Iterator CaloRecHitMetaCollectionV::Iterator::operator+ | ( | const difference_type | n | ) | const |
Definition at line 62 of file CaloRecHitMetaCollectionV.cc.
{ return Iterator(collection_,offset_+n); }
CaloRecHitMetaCollectionV::Iterator & CaloRecHitMetaCollectionV::Iterator::operator++ | ( | void | ) |
Advance the iterator.
Definition at line 30 of file CaloRecHitMetaCollectionV.cc.
{ offset_++; return (*this); }
CaloRecHitMetaCollectionV::Iterator CaloRecHitMetaCollectionV::Iterator::operator++ | ( | int | ) |
CaloRecHitMetaCollectionV::Iterator & CaloRecHitMetaCollectionV::Iterator::operator+= | ( | const difference_type | n | ) |
Definition at line 57 of file CaloRecHitMetaCollectionV.cc.
References n.
CaloRecHitMetaCollectionV::Iterator CaloRecHitMetaCollectionV::Iterator::operator- | ( | const difference_type | n | ) | const |
Definition at line 71 of file CaloRecHitMetaCollectionV.cc.
{ return Iterator(collection_,offset_-n); }
CaloRecHitMetaCollectionV::Iterator & CaloRecHitMetaCollectionV::Iterator::operator-- | ( | ) |
Reverse-advance the iterator.
Definition at line 41 of file CaloRecHitMetaCollectionV.cc.
{ offset_--; return (*this); }
CaloRecHitMetaCollectionV::Iterator CaloRecHitMetaCollectionV::Iterator::operator-- | ( | int | ) |
CaloRecHitMetaCollectionV::Iterator & CaloRecHitMetaCollectionV::Iterator::operator-= | ( | const difference_type | n | ) |
Definition at line 66 of file CaloRecHitMetaCollectionV.cc.
References n.
const CaloRecHit * CaloRecHitMetaCollectionV::const_iterator::operator-> | ( | ) | const |
pointer operator
Definition at line 17 of file CaloRecHitMetaCollectionV.cc.
{ return (collection_==0)?(0):(collection_->at(offset_)); }
bool CaloRecHitMetaCollectionV::Iterator::operator< | ( | const Iterator & | i | ) | const |
Definition at line 75 of file CaloRecHitMetaCollectionV.cc.
References offset_.
Definition at line 32 of file CaloRecHitMetaCollectionV.h.
References collection_, and offset_.
{ collection_=it.collection_; offset_=it.offset_; return (*this); }
bool CaloRecHitMetaCollectionV::Iterator::operator== | ( | const Iterator & | it | ) | const |
comparison operator
Definition at line 22 of file CaloRecHitMetaCollectionV.cc.
References collection_, and offset_.
{ return collection_==it.collection_ && offset_==it.offset_; }
CaloRecHitMetaCollectionV::Iterator::reference CaloRecHitMetaCollectionV::Iterator::operator[] | ( | const difference_type | n | ) | const |
Definition at line 53 of file CaloRecHitMetaCollectionV.cc.
{ return *(collection_->at(offset_+n)); }
Definition at line 62 of file CaloRecHitMetaCollectionV.h.
Referenced by operator!=(), operator*(), operator=(), and operator==().
Definition at line 63 of file CaloRecHitMetaCollectionV.h.
Referenced by operator!=(), operator*(), operator<(), operator=(), and operator==().