CDMud< Evidence > Class Template Reference

#include <CDMud.h>

List of all members.

Public Member Functions

virtual ~CDMud ()

Static Public Member Functions

static const CDFootPrintget (const Evidence *aEvidence)
static void clear ()
static std::vector< const
CDFootPrint * > & 
footprints ()

Private Member Functions

 CDMud ()
 CDMud (const CDMud &aOtherCDMud)
const CDMudoperator= (const CDMud &aOtherCDMud)


Detailed Description

template<class Evidence>
class CDMud< Evidence >

Definition at line 44 of file CDMud.h.


Constructor & Destructor Documentation

template<class Evidence>
virtual CDMud< Evidence >::~CDMud (  )  [inline, virtual]

Definition at line 54 of file CDMud.h.

00054 {}

template<class Evidence>
CDMud< Evidence >::CDMud (  )  [private]

template<class Evidence>
CDMud< Evidence >::CDMud ( const CDMud< Evidence > &  aOtherCDMud  )  [private]


Member Function Documentation

template<class Evidence>
void CDMud< Evidence >::clear (  )  [static]

Definition at line 72 of file CDMud.cc.

References CDMud< Evidence >::footprints().

00073 {
00074    vector< const CDFootPrint* >& prints( footprints() ) ;
00075    vector< const CDFootPrint* >::const_iterator finished( prints.end() ) ;
00076    for ( vector< const CDFootPrint* >::const_iterator print( prints.begin() ) ;
00077          finished != print ;
00078          ++print ) {
00079 
00080       // cast way const for delete to work
00081       delete ( (CDFootPrint*)(*print) ) ;
00082    }
00083    prints.erase( prints.begin() ,
00084                  prints.end() ) ;
00085 }

template<class Evidence>
vector< const CDFootPrint * > & CDMud< Evidence >::footprints (  )  [static]

Definition at line 89 of file CDMud.cc.

Referenced by CDMud< Evidence >::clear(), and CDMud< Evidence >::get().

00090 {
00091    static vector< const CDFootPrint* > prints ;
00092    return ( prints ) ;
00093 }

template<class Evidence>
const CDFootPrint & CDMud< Evidence >::get ( const Evidence *  aEvidence  )  [static]

Definition at line 59 of file CDMud.cc.

References CDMud< Evidence >::footprints().

00060 {
00061    unsigned int id( aEvidence->trackId() ) ;
00062    vector< const CDFootPrint* >& prints( footprints() ) ;
00063    while ( id >= prints.size() ) {
00064       CDFootPrint* tmp( new CDFootPrint ) ;
00065       (*tmp).fresh() ;
00066       prints.push_back( tmp ) ;
00067    }
00068    return ( *(prints[ id ]) ) ;
00069 }

template<class Evidence>
const CDMud& CDMud< Evidence >::operator= ( const CDMud< Evidence > &  aOtherCDMud  )  [private]


Generated on Tue Nov 29 23:18:03 2016 for BOSS_7.0.2 by  doxygen 1.4.7