#include <CDMud.h>
Public Member Functions | |
virtual | ~CDMud () |
Static Public Member Functions | |
static const CDFootPrint & | get (const Evidence *aEvidence) |
static void | clear () |
static std::vector< const CDFootPrint * > & | footprints () |
Private Member Functions | |
CDMud () | |
CDMud (const CDMud &aOtherCDMud) | |
const CDMud & | operator= (const CDMud &aOtherCDMud) |
Definition at line 44 of file CDMud.h.
CDMud< Evidence >::CDMud | ( | const CDMud< Evidence > & | aOtherCDMud | ) | [private] |
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 }
vector< const CDFootPrint * > & CDMud< Evidence >::footprints | ( | ) | [static] |
Definition at line 89 of file CDMud.cc.
Referenced by CDMud< Evidence >::clear(), and CDMud< Evidence >::get().
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 }
const CDMud& CDMud< Evidence >::operator= | ( | const CDMud< Evidence > & | aOtherCDMud | ) | [private] |