test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
BXVector< T > Class Template Reference

#include <BXVector.h>

Public Types

typedef std::vector< T >
::const_iterator 
const_iterator
 
typedef std::vector< T >::iterator iterator
 
typedef std::vector< T >::size_type size_type
 
typedef T value_type
 

Public Member Functions

void addBX ()
 
const Tat (int bx, unsigned i) const
 
const_iterator begin (int bx) const
 
const_iterator begin () const
 
 BXVector (unsigned size=0, int bxFirst=0, int bxLast=0)
 
void clear ()
 
void clearBX (int bx)
 
void deleteBX (int bx)
 
const_iterator end (int bx) const
 
const_iterator end () const
 
void erase (int bx, unsigned i)
 
void fillPtrVector (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptrs) const
 
void fillView (edm::ProductID const &id, std::vector< void const * > &pointers, edm::FillViewHelperVector &helpers) const
 
int getFirstBX () const
 
int getLastBX () const
 
void insert (int bx, unsigned i, T object)
 
bool isEmpty (int bx) const
 
unsigned int key (const_iterator &iter) const
 
Toperator[] (std::size_t i)
 
const Toperator[] (std::size_t i) const
 
void push_back (int bx, T object)
 
void resize (int bx, unsigned size)
 
void resizeAll (unsigned size)
 
void set (int bx, unsigned i, const T &object)
 
void setBXRange (int bxFirst, int bxLast)
 
void setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const
 
unsigned size (int bx) const
 
unsigned size () const
 

Private Member Functions

unsigned indexFromBX (int bx) const
 
unsigned numBX () const
 

Private Attributes

int bxFirst_
 
int bxLast_
 
std::vector< Tdata_
 internal data representation: More...
 
std::vector< unsigned > itrs_
 

Detailed Description

template<class T>
class BXVector< T >

Definition at line 15 of file BXVector.h.

Member Typedef Documentation

template<class T>
typedef std::vector< T >::const_iterator BXVector< T >::const_iterator

Definition at line 20 of file BXVector.h.

template<class T>
typedef std::vector< T >::iterator BXVector< T >::iterator

Definition at line 19 of file BXVector.h.

template<class T>
typedef std::vector< T >::size_type BXVector< T >::size_type

Definition at line 22 of file BXVector.h.

template<class T>
typedef T BXVector< T >::value_type

Definition at line 21 of file BXVector.h.

Constructor & Destructor Documentation

template<class T>
BXVector< T >::BXVector ( unsigned  size = 0,
int  bxFirst = 0,
int  bxLast = 0 
)

Member Function Documentation

template<class T>
void BXVector< T >::addBX ( )
template<class T>
const T& BXVector< T >::at ( int  bx,
unsigned  i 
) const
template<class T>
const_iterator BXVector< T >::begin ( int  bx) const
template<class T>
const_iterator BXVector< T >::begin ( void  ) const
inline

Definition at line 101 of file BXVector.h.

Referenced by BXVector< Tau >::key().

101 {return data_.begin(); }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:140
template<class T>
void BXVector< T >::clear ( )
template<class T>
void BXVector< T >::clearBX ( int  bx)
template<class T>
void BXVector< T >::deleteBX ( int  bx)
template<class T>
const_iterator BXVector< T >::end ( int  bx) const
template<class T>
const_iterator BXVector< T >::end ( void  ) const
inline

Definition at line 102 of file BXVector.h.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

102 {return data_.end(); }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:140
template<class T>
void BXVector< T >::erase ( int  bx,
unsigned  i 
)
template<class T>
void BXVector< T >::fillPtrVector ( std::type_info const &  toType,
std::vector< unsigned long > const &  indices,
std::vector< void const * > &  ptrs 
) const
template<class T>
void BXVector< T >::fillView ( edm::ProductID const &  id,
std::vector< void const * > &  pointers,
edm::FillViewHelperVector helpers 
) const
template<class T>
int BXVector< T >::getFirstBX ( ) const
template<class T>
int BXVector< T >::getLastBX ( ) const
template<class T>
unsigned BXVector< T >::indexFromBX ( int  bx) const
private
template<class T>
void BXVector< T >::insert ( int  bx,
unsigned  i,
T  object 
)
template<class T>
bool BXVector< T >::isEmpty ( int  bx) const
template<class T>
unsigned int BXVector< T >::key ( const_iterator iter) const
inline

Definition at line 104 of file BXVector.h.

104 { return iter - begin(); }
const_iterator begin() const
Definition: BXVector.h:101
template<class T>
unsigned BXVector< T >::numBX ( ) const
inlineprivate

Definition at line 127 of file BXVector.h.

127 {return 1 + static_cast<const unsigned>(bxLast_ - bxFirst_); }
int bxFirst_
Definition: BXVector.h:133
int bxLast_
Definition: BXVector.h:134
template<class T>
T& BXVector< T >::operator[] ( std::size_t  i)
inline

Definition at line 107 of file BXVector.h.

107 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< T > data_
internal data representation:
Definition: BXVector.h:140
template<class T>
const T& BXVector< T >::operator[] ( std::size_t  i) const
inline

Definition at line 108 of file BXVector.h.

108 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< T > data_
internal data representation:
Definition: BXVector.h:140
template<class T>
void BXVector< T >::push_back ( int  bx,
T  object 
)
template<class T>
void BXVector< T >::resize ( int  bx,
unsigned  size 
)
template<class T>
void BXVector< T >::resizeAll ( unsigned  size)
template<class T>
void BXVector< T >::set ( int  bx,
unsigned  i,
const T object 
)

Referenced by process().

template<class T>
void BXVector< T >::setBXRange ( int  bxFirst,
int  bxLast 
)
template<class T>
void BXVector< T >::setPtr ( std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const
template<class T>
unsigned BXVector< T >::size ( int  bx) const
template<class T>
unsigned BXVector< T >::size ( void  ) const
inline

Definition at line 74 of file BXVector.h.

74 { return data_.size();}
std::vector< T > data_
internal data representation:
Definition: BXVector.h:140

Member Data Documentation

template<class T>
int BXVector< T >::bxFirst_
private

Definition at line 133 of file BXVector.h.

Referenced by BXVector< Tau >::numBX().

template<class T>
int BXVector< T >::bxLast_
private

Definition at line 134 of file BXVector.h.

Referenced by BXVector< Tau >::numBX().

template<class T>
std::vector< T > BXVector< T >::data_
private

internal data representation:

Definition at line 140 of file BXVector.h.

Referenced by BXVector< Tau >::begin(), BXVector< Tau >::end(), BXVector< Tau >::operator[](), and BXVector< Tau >::size().

template<class T>
std::vector<unsigned> BXVector< T >::itrs_
private

Definition at line 141 of file BXVector.h.