test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Indexed.h
Go to the documentation of this file.
1 #ifndef INDEXED_H
2 #define INDEXED_H
3 
4 template<class T>
5 class Indexed : public T {
6  private:
7  unsigned index_;
8  public:
9  Indexed() : T(), index_(0) {}
10  Indexed(T t, unsigned i) : T(t), index_(i) {}
11  unsigned index() const {return index_;}
12  Indexed operator+(const Indexed& rhs) const {return Indexed(this->T::operator+(rhs),0);}
13 };
14 
15 #endif
Definition: Indexed.h:5
int i
Definition: DBlmapReader.cc:9
Indexed()
Definition: Indexed.h:9
Indexed(T t, unsigned i)
Definition: Indexed.h:10
Indexed operator+(const Indexed &rhs) const
Definition: Indexed.h:12
long double T
unsigned index_
Definition: Indexed.h:7
unsigned index() const
Definition: Indexed.h:11