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

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

#include <MultiTimeDistribution.h>

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

Public Types

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

Public Member Functions

void AddTimeDistribution (const double binSize, const int label)
 
void AddTimeDistribution (const TimeDistribution< T > &td, const int label)
 
Iterator Begin ()
 
ConstIterator Begin () const
 
void Clear ()
 
Iterator End ()
 
ConstIterator End () const
 
unsigned int GetNLabels () const
 
TimeDistribution< T > & GetTimeDistribution (const int label=0)
 Returns the trace for /par source. More...
 
const TimeDistribution< T > & GetTimeDistribution (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
 

Protected Member Functions

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

Detailed Description

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

A collection of TimeDistribution<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 TimeDistribution (double, int etc)
Warning
: this class is for developer convenience, not meant for the average user

Definition at line 54 of file MultiTimeDistribution.h.

Member Typedef Documentation

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

Definition at line 81 of file MultiObject.h.

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

Definition at line 78 of file MultiObject.h.

Definition at line 75 of file MultiObject.h.

typedef std::map<int, TimeDistribution< T > *> utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::MultiObjectContainer
inherited

Definition at line 74 of file MultiObject.h.

Member Function Documentation

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

add with deep copy of the object

Definition at line 128 of file MultiObject.h.

Referenced by utl::MultiTimeDistribution< int >::AddTimeDistribution().

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

add that takes the ownership

template<typename T>
void utl::MultiTimeDistribution< T >::AddTimeDistribution ( const double  binSize,
const int  label 
)
inline

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

Definition at line 66 of file MultiTimeDistribution.h.

Referenced by io::MultiTimeDistribution_ROOT< T >::operator>>(), and testTimeDistribution::testMultiTimeDistribution().

template<typename T>
void utl::MultiTimeDistribution< T >::AddTimeDistribution ( const TimeDistribution< T > &  td,
const int  label 
)
inline

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

Definition at line 71 of file MultiTimeDistribution.h.

Iterator utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::Begin ( )
inlineinherited

Definition at line 83 of file MultiObject.h.

ConstIterator utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::Begin ( ) const
inlineinherited

Definition at line 84 of file MultiObject.h.

void utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::Clear ( )
inherited
Iterator utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::End ( )
inlineinherited

Definition at line 85 of file MultiObject.h.

ConstIterator utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::End ( ) const
inlineinherited

Definition at line 86 of file MultiObject.h.

unsigned int utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::GetNLabels ( ) const
inlineinherited

Definition at line 89 of file MultiObject.h.

TimeDistribution< T > & utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::GetObject ( const int  label = 0)
protectedinherited
const TimeDistribution< T > & utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::GetObject ( const int  label = 0) const
protectedinherited
template<typename T>
TimeDistribution<T>& utl::MultiTimeDistribution< T >::GetTimeDistribution ( const int  label = 0)
inline
template<typename T>
const TimeDistribution<T>& utl::MultiTimeDistribution< T >::GetTimeDistribution ( const int  label = 0) const
inline

Definition at line 61 of file MultiTimeDistribution.h.

bool utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::HasLabel ( const int  label) const
inlineinherited

Definition at line 91 of file MultiObject.h.

utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::operator bool ( ) const
inlineexplicitinherited

Definition at line 99 of file MultiObject.h.

bool utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::operator!= ( const MultiObject< TimeDistribution< T >, LabeledTimeDistribution< T > > &  mobj) const
inlineinherited

Definition at line 96 of file MultiObject.h.

bool utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::operator== ( const MultiObject< TimeDistribution< T >, LabeledTimeDistribution< T > > &  mobj) const
inherited
void utl::MultiObject< TimeDistribution< T > , LabeledTimeDistribution< T > >::RemoveObject ( const int  label)
protectedinherited

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

, generated on Tue Sep 26 2023.