16#ifndef ROO_MAPPED_CATEGORY
17#define ROO_MAPPED_CATEGORY
27class RooMappedCategoryCache;
77 std::map<std::string,RooMappedCategory::Entry>
_mapArray ;
#define ClassDef(name, id)
static void indent(ostringstream &buf, int indent_level)
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
RooCategoryProxy is the proxy implementation for RooAbsCategory objects A RooCategoryProxy is the gen...
const RooCatType & outCat() const
Bool_t match(const char *testPattern) const
Entry & operator=(const Entry &other)
TString mangle(const char *exp) const
Mangle name : escape regexp character '+'.
Entry(const char *exp, const RooCatType *cat)
Entry(const Entry &other)
virtual TObject * clone(const char *newname) const
virtual ~RooMappedCategory()
const RooMappedCategoryCache * getOrCreateCache() const
RooCategoryProxy _inputCat
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from stream (dummy for now)
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to ostream.
std::map< std::string, RooMappedCategory::Entry > _mapArray
friend class RooMappedCategoryCache
Bool_t map(const char *inKeyRegExp, const char *outKeyName, Int_t outKeyNum=NoCatIdx)
void printMetaArgs(std::ostream &os) const
Customized printing of arguments of a RooMappedCategory to more intuitively reflect the contents of t...
virtual RooCatType evaluate() const
transient member: cache the mapping
RooMappedCategoryCache * _mapcache
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print info about this object to the specified stream.
Mother of all ROOT objects.
Regular expression class.
EStatVal Status()
Check status of regexp.
RooCmdArg Index(RooCategory &icat)