CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloRecHitMetaCollectionV.cc
Go to the documentation of this file.
2 
4 }
5 
9  for (; i!=e && i->detid()!=id; i++);
10  return i;
11 }
12 
14  return (*collection_->at(offset_));
15 }
16 
18  return (collection_==0)?(0):(collection_->at(offset_));
19 }
20 
21 
23  return collection_==it.collection_ && offset_==it.offset_;
24 }
25 
27  return collection_!=it.collection_ || offset_!=it.offset_;
28 }
29 
31  offset_++;
32  return (*this);
33 }
34 
36  Iterator tmp(*this);
37  offset_++;
38  return tmp;
39 }
40 
42  offset_--;
43  return (*this);
44 }
45 
46 
48  Iterator tmp(*this);
49  offset_--;
50  return tmp;
51 }
52 
54  return *(collection_->at(offset_+n));
55 }
56 
58  offset_+=n;
59  return (*this);
60 }
61 
63  return Iterator(collection_,offset_+n);
64 }
65 
67  offset_-=n;
68  return (*this);
69 }
70 
72  return Iterator(collection_,offset_-n);
73 }
74 
76  return offset_<i.offset_;
77 }
virtual const_iterator find(const DetId &id) const
find by id (default version is very slow unsorted find)
int i
Definition: DBlmapReader.cc:9
Iterator & operator+=(const difference_type n)
pointer operator->() const
pointer operator
bool operator==(const Iterator &it) const
comparison operator
const DetId & detid() const
Definition: CaloRecHit.h:22
Iterator operator-(const difference_type n) const
Iterator & operator--()
Reverse-advance the iterator.
Iterator & operator-=(const difference_type n)
const_iterator begin() const
get the starting iterator
reference operator[](const difference_type n) const
reference operator*() const
dereference operator
bool operator!=(const Iterator &it) const
comparison operator
const_iterator end() const
get the ending iterator
virtual const CaloRecHit * at(const_iterator::offset_type i) const =0
get an item by index
const CaloRecHitMetaCollectionV * collection_
Definition: DetId.h:20
Iterator & operator++()
Advance the iterator.
Iterator operator+(const difference_type n) const
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
size_(0)
Definition: OwnArray.h:181
bool operator<(const Iterator &i) const