RooExpensiveObjectCache Class Reference

#include <RooExpensiveObjectCache.h>

Inheritance diagram for RooExpensiveObjectCache:

TObject TObject List of all members.

Public Member Functions

 RooExpensiveObjectCache ()
 RooExpensiveObjectCache (const RooExpensiveObjectCache &)
virtual ~RooExpensiveObjectCache ()
Bool_t registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, TIterator *paramIter)
Bool_t registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, const RooArgSet &params)
const TObjectretrieveObject (const char *name, TClass *tclass, const RooArgSet &params)
const TObjectgetObj (Int_t uniqueID)
Bool_t clearObj (Int_t uniqueID)
Bool_t setObj (Int_t uniqueID, TObject *obj)
void clearAll ()
void importCacheObjects (RooExpensiveObjectCache &other, const char *ownerName, Bool_t verbose=kFALSE)
Int_t size () const
void print () const
 RooExpensiveObjectCache ()
 RooExpensiveObjectCache (const RooExpensiveObjectCache &)
virtual ~RooExpensiveObjectCache ()
Bool_t registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, TIterator *paramIter)
Bool_t registerObject (const char *ownerName, const char *objectName, TObject &cacheObject, const RooArgSet &params)
const TObjectretrieveObject (const char *name, TClass *tclass, const RooArgSet &params)
const TObjectgetObj (Int_t uniqueID)
Bool_t clearObj (Int_t uniqueID)
Bool_t setObj (Int_t uniqueID, TObject *obj)
void clearAll ()
void importCacheObjects (RooExpensiveObjectCache &other, const char *ownerName, Bool_t verbose=kFALSE)
Int_t size () const
void print () const

Static Public Member Functions

static RooExpensiveObjectCacheinstance ()
static void cleanup ()
static RooExpensiveObjectCacheinstance ()
static void cleanup ()

Protected Attributes

Int_t _nextUID
std::map< TString, ExpensiveObject * > _map
std::map< TString, ExpensiveObject * > _map

Static Protected Attributes

static RooExpensiveObjectCache_instance
static RooExpensiveObjectCache_instance

Classes

class  ExpensiveObject

Detailed Description

Definition at line 25 of file RooExpensiveObjectCache.h.


Constructor & Destructor Documentation

RooExpensiveObjectCache::RooExpensiveObjectCache (  ) 

Definition at line 51 of file RooExpensiveObjectCache.cxx.

Referenced by instance().

RooExpensiveObjectCache::RooExpensiveObjectCache ( const RooExpensiveObjectCache  ) 

Definition at line 59 of file RooExpensiveObjectCache.cxx.

RooExpensiveObjectCache::~RooExpensiveObjectCache (  )  [virtual]

Definition at line 68 of file RooExpensiveObjectCache.cxx.

References _instance, and _map.

RooExpensiveObjectCache::RooExpensiveObjectCache (  ) 

RooExpensiveObjectCache::RooExpensiveObjectCache ( const RooExpensiveObjectCache  ) 

virtual RooExpensiveObjectCache::~RooExpensiveObjectCache (  )  [virtual]


Member Function Documentation

Bool_t RooExpensiveObjectCache::registerObject ( const char *  ownerName,
const char *  objectName,
TObject cacheObject,
TIterator paramIter 
)

Definition at line 127 of file RooExpensiveObjectCache.cxx.

References _map, _nextUID, kFALSE, and RooExpensiveObjectCache::ExpensiveObject::uid().

Referenced by RooRealIntegral::evaluate(), RooAbsCachedPdf::getCache(), RooAbsCachedReal::getCache(), and registerObject().

Bool_t RooExpensiveObjectCache::registerObject ( const char *  ownerName,
const char *  objectName,
TObject cacheObject,
const RooArgSet params 
)

Definition at line 110 of file RooExpensiveObjectCache.cxx.

References params, and registerObject().

const TObject * RooExpensiveObjectCache::retrieveObject ( const char *  name,
TClass tclass,
const RooArgSet params 
)

Definition at line 150 of file RooExpensiveObjectCache.cxx.

References _map, RooExpensiveObjectCache::ExpensiveObject::matches(), params, and RooExpensiveObjectCache::ExpensiveObject::payload().

Referenced by RooRealIntegral::evaluate(), RooAbsCachedPdf::getCache(), and RooAbsCachedReal::getCache().

const TObject * RooExpensiveObjectCache::getObj ( Int_t  uniqueID  ) 

Definition at line 174 of file RooExpensiveObjectCache.cxx.

References _map.

Bool_t RooExpensiveObjectCache::clearObj ( Int_t  uniqueID  ) 

Definition at line 188 of file RooExpensiveObjectCache.cxx.

References _map, kFALSE, and kTRUE.

Bool_t RooExpensiveObjectCache::setObj ( Int_t  uniqueID,
TObject obj 
)

Definition at line 204 of file RooExpensiveObjectCache.cxx.

References _map, kFALSE, and kTRUE.

void RooExpensiveObjectCache::clearAll (  ) 

Definition at line 221 of file RooExpensiveObjectCache.cxx.

References _map.

void RooExpensiveObjectCache::importCacheObjects ( RooExpensiveObjectCache other,
const char *  ownerName,
Bool_t  verbose = kFALSE 
)

Definition at line 360 of file RooExpensiveObjectCache.cxx.

References _map, _nextUID, RooFit::Caching, and oocoutI.

Referenced by RooWorkspace::import().

RooExpensiveObjectCache & RooExpensiveObjectCache::instance (  )  [static]

Definition at line 85 of file RooExpensiveObjectCache.cxx.

References _instance, RooSentinel::activate(), and RooExpensiveObjectCache().

Referenced by RooAbsArg::expensiveObjectCache(), G__G__RooFitCore3_147_0_11(), and G__setup_memfuncRooExpensiveObjectCache().

Int_t RooExpensiveObjectCache::size (  )  const [inline]

Definition at line 45 of file RooExpensiveObjectCache.h.

References _map.

Referenced by RooWorkspace::Print().

void RooExpensiveObjectCache::cleanup (  )  [static]

Definition at line 100 of file RooExpensiveObjectCache.cxx.

References _instance.

Referenced by CleanUpRooFitAtExit(), G__G__RooFitCore3_147_0_13(), and G__setup_memfuncRooExpensiveObjectCache().

void RooExpensiveObjectCache::print (  )  const

Definition at line 322 of file RooExpensiveObjectCache.cxx.

References _map.

Referenced by RooWorkspace::Print().

Bool_t RooExpensiveObjectCache::registerObject ( const char *  ownerName,
const char *  objectName,
TObject cacheObject,
TIterator paramIter 
)

Bool_t RooExpensiveObjectCache::registerObject ( const char *  ownerName,
const char *  objectName,
TObject cacheObject,
const RooArgSet params 
)

const TObject* RooExpensiveObjectCache::retrieveObject ( const char *  name,
TClass tclass,
const RooArgSet params 
)

const TObject* RooExpensiveObjectCache::getObj ( Int_t  uniqueID  ) 

Bool_t RooExpensiveObjectCache::clearObj ( Int_t  uniqueID  ) 

Bool_t RooExpensiveObjectCache::setObj ( Int_t  uniqueID,
TObject obj 
)

void RooExpensiveObjectCache::clearAll (  ) 

void RooExpensiveObjectCache::importCacheObjects ( RooExpensiveObjectCache other,
const char *  ownerName,
Bool_t  verbose = kFALSE 
)

static RooExpensiveObjectCache& RooExpensiveObjectCache::instance (  )  [static]

Int_t RooExpensiveObjectCache::size (  )  const [inline]

Definition at line 45 of file RooExpensiveObjectCache.h.

References _map.

static void RooExpensiveObjectCache::cleanup (  )  [static]

void RooExpensiveObjectCache::print (  )  const


Member Data Documentation

Int_t RooExpensiveObjectCache::_nextUID [protected]

Definition at line 81 of file RooExpensiveObjectCache.h.

Referenced by importCacheObjects(), and registerObject().

RooExpensiveObjectCache* RooExpensiveObjectCache::_instance [static, protected]

Definition at line 83 of file RooExpensiveObjectCache.h.

Referenced by cleanup(), instance(), and ~RooExpensiveObjectCache().

std::map<TString,ExpensiveObject*> RooExpensiveObjectCache::_map [protected]

Definition at line 85 of file RooExpensiveObjectCache.h.

Referenced by clearAll(), clearObj(), getObj(), importCacheObjects(), print(), registerObject(), retrieveObject(), setObj(), size(), and ~RooExpensiveObjectCache().

RooExpensiveObjectCache* RooExpensiveObjectCache::_instance [static, protected]

Definition at line 83 of file RooExpensiveObjectCache.h.

std::map<TString,ExpensiveObject*> RooExpensiveObjectCache::_map [protected]

Definition at line 85 of file RooExpensiveObjectCache.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1