List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Types
utl::MultiTrace< T > Class Template Reference

A collection of Trace<T>,which provides methods to access different sources. More...

#include <MultiTrace.h>

Inheritance diagram for utl::MultiTrace< T >:
Inheritance graph
[legend]

Public Types

typedef
boost::transform_iterator
< LabeledObjectFunctor,
typename
MultiObjectContainer::const_iterator,
LabeledTrace< T > > 
ConstIterator
 
typedef
boost::transform_iterator
< LabeledObjectFunctor,
typename
MultiObjectContainer::iterator,
LabeledTrace< T > > 
Iterator
 
typedef
utl::detail::LabeledObjectFunctor
< Trace< T >, LabeledTrace< T > > 
LabeledObjectFunctor
 
typedef std::map< int, Trace
< T > * > 
MultiObjectContainer
 

Public Member Functions

void AddTrace (const int size, const double binSize, const int label)
 
void AddTrace (const Trace< T > &trace, const int label)
 
Iterator Begin ()
 
ConstIterator Begin () const
 
void Clear ()
 
Iterator End ()
 
ConstIterator End () const
 
unsigned int GetNLabels () const
 
Trace< T > & GetTrace (const int label=0)
 Returns the trace for /par source. More...
 
const Trace< T > & GetTrace (const int label=0) const
 
bool HasLabel (const int label) const
 
 operator bool () const
 
bool operator!= (const MultiObject &mobj) const
 
bool operator== (const MultiObject &mobj) const
 
void RemoveTrace (const int label)
 

Protected Member Functions

void AddObject (const Trace< T > &obj, const int label)
 add with deep copy of the object More...
 
void AddObject (Trace< T > *const obj, const int label)
 add that takes the ownership More...
 
Trace< T > & GetObject (const int label=0)
 
const Trace< T > & GetObject (const int label=0) const
 
void RemoveObject (const int label)
 

Private Types

typedef MultiObject< Trace< T >
, LabeledTrace< T > > 
Base
 

Detailed Description

template<typename T>
class utl::MultiTrace< T >

A collection of Trace<T>,which provides methods to access different sources.

Author
Stefano Argiro', Darko Veberic
Date
Jan 2003
14 Nov 2005 revision

For the FD case examples are:

Parameters
Tis the type stored in the trace Trace (double, int etc)

Definition at line 64 of file MultiTrace.h.

Member Typedef Documentation

template<typename T>
typedef MultiObject<Trace<T>, LabeledTrace<T> > utl::MultiTrace< T >::Base
private

Definition at line 66 of file MultiTrace.h.

typedef boost::transform_iterator<LabeledObjectFunctor, typename MultiObjectContainer::const_iterator, LabeledTrace< T > > utl::MultiObject< Trace< T > , LabeledTrace< T > >::ConstIterator
inherited

Definition at line 81 of file MultiObject.h.

typedef boost::transform_iterator<LabeledObjectFunctor, typename MultiObjectContainer::iterator, LabeledTrace< T > > utl::MultiObject< Trace< T > , LabeledTrace< T > >::Iterator
inherited

Definition at line 78 of file MultiObject.h.

Definition at line 75 of file MultiObject.h.

typedef std::map<int, Trace< T > *> utl::MultiObject< Trace< T > , LabeledTrace< T > >::MultiObjectContainer
inherited

Definition at line 74 of file MultiObject.h.

Member Function Documentation

void utl::MultiObject< Trace< T > , LabeledTrace< T > >::AddObject ( const Trace< T > &  obj,
const int  label 
)
inlineprotectedinherited

add with deep copy of the object

Definition at line 128 of file MultiObject.h.

References utl::MultiObject< T, LabeledObjectType >::AddObject().

Referenced by utl::MultiTrace< int >::AddTrace().

void utl::MultiObject< Trace< T > , LabeledTrace< T > >::AddObject ( Trace< T > *const  obj,
const int  label 
)
protectedinherited

add that takes the ownership

template<typename T>
void utl::MultiTrace< T >::AddTrace ( const int  size,
const double  binSize,
const int  label 
)
inline

Creates a new Trace of size /par size and binning /par binsize and assign source /par source

Definition at line 76 of file MultiTrace.h.

Referenced by sevt::PMTRecData::MakeVEMTrace(), sevt::Station::MakeVEMTrace(), io::MultiTrace_ROOT< T >::operator>>(), TestOfflineUtils_ROOT_io::testMultiTrace(), and testTraces::testMultiTrace().

template<typename T>
void utl::MultiTrace< T >::AddTrace ( const Trace< T > &  trace,
const int  label 
)
inline

Copies trace in the internal list and assign source /par source -The original can be deleted

Definition at line 81 of file MultiTrace.h.

Iterator utl::MultiObject< Trace< T > , LabeledTrace< T > >::Begin ( )
inlineinherited
ConstIterator utl::MultiObject< Trace< T > , LabeledTrace< T > >::Begin ( ) const
inlineinherited

Definition at line 84 of file MultiObject.h.

References utl::MultiObject< T, LabeledObjectType >::fObjects.

void utl::MultiObject< Trace< T > , LabeledTrace< T > >::Clear ( )
inherited
Iterator utl::MultiObject< Trace< T > , LabeledTrace< T > >::End ( )
inlineinherited
ConstIterator utl::MultiObject< Trace< T > , LabeledTrace< T > >::End ( ) const
inlineinherited

Definition at line 86 of file MultiObject.h.

References utl::MultiObject< T, LabeledObjectType >::fObjects.

unsigned int utl::MultiObject< Trace< T > , LabeledTrace< T > >::GetNLabels ( ) const
inlineinherited
Trace< T > & utl::MultiObject< Trace< T > , LabeledTrace< T > >::GetObject ( const int  label = 0)
protectedinherited
const Trace< T > & utl::MultiObject< Trace< T > , LabeledTrace< T > >::GetObject ( const int  label = 0) const
protectedinherited
template<typename T>
Trace<T>& utl::MultiTrace< T >::GetTrace ( const int  label = 0)
inline
template<typename T>
const Trace<T>& utl::MultiTrace< T >::GetTrace ( const int  label = 0) const
inline

Definition at line 72 of file MultiTrace.h.

bool utl::MultiObject< Trace< T > , LabeledTrace< T > >::HasLabel ( const int  label) const
inlineinherited

Definition at line 91 of file MultiObject.h.

References utl::MultiObject< T, LabeledObjectType >::fObjects.

utl::MultiObject< Trace< T > , LabeledTrace< T > >::operator bool ( ) const
inlineexplicitinherited

Definition at line 99 of file MultiObject.h.

References utl::MultiObject< T, LabeledObjectType >::fObjects.

bool utl::MultiObject< Trace< T > , LabeledTrace< T > >::operator!= ( const MultiObject< Trace< T >, LabeledTrace< T > > &  mobj) const
inlineinherited
bool utl::MultiObject< Trace< T > , LabeledTrace< T > >::operator== ( const MultiObject< Trace< T >, LabeledTrace< T > > &  mobj) const
inherited
void utl::MultiObject< Trace< T > , LabeledTrace< T > >::RemoveObject ( const int  label)
protectedinherited
template<typename T>
void utl::MultiTrace< T >::RemoveTrace ( const int  label)
inline

Definition at line 84 of file MultiTrace.h.


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.