CMS 3D CMS Logo

Public Member Functions | Private Attributes

Indexed< T > Class Template Reference

#include <Indexed.h>

List of all members.

Public Member Functions

unsigned index () const
 Indexed (T t, unsigned i)
 Indexed ()
Indexed operator+ (const Indexed &rhs) const

Private Attributes

unsigned index_

Detailed Description

template<class T>
class Indexed< T >

Definition at line 5 of file Indexed.h.


Constructor & Destructor Documentation

template<class T >
Indexed< T >::Indexed ( ) [inline]

Definition at line 9 of file Indexed.h.

Referenced by Indexed< T >::operator+().

: T(), index_(0) {}
template<class T >
Indexed< T >::Indexed ( T  t,
unsigned  i 
) [inline]

Definition at line 10 of file Indexed.h.

: T(t), index_(i) {}

Member Function Documentation

template<class T >
unsigned Indexed< T >::index ( ) const [inline]

Definition at line 11 of file Indexed.h.

References Indexed< T >::index_.

{return index_;}
template<class T >
Indexed Indexed< T >::operator+ ( const Indexed< T > &  rhs) const [inline]

Definition at line 12 of file Indexed.h.

References Indexed< T >::Indexed(), and cmsCodeRules::cppFunctionSkipper::operator.

{return Indexed(this->T::operator+(rhs),0);}

Member Data Documentation

template<class T >
unsigned Indexed< T >::index_ [private]

Definition at line 7 of file Indexed.h.

Referenced by Indexed< T >::index().