16#ifndef ROO_MAPPED_CATEGORY
17#define ROO_MAPPED_CATEGORY
25class RooMappedCategoryCache;
77 std::map<std::string,RooMappedCategory::Entry>
_mapArray ;
#define ClassDef(name, id)
static void indent(ostringstream &buf, int indent_level)
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
RooAbsCategory::value_type outCat() const
Entry & operator=(const Entry &other)
const TRegexp * regexp() const
TString mangle(const char *exp) const
Mangle name : escape regexp character '+'.
RooAbsCategory::value_type _catIdx
Bool_t match(const char *testPattern) const
RooMappedCategory provides a category-to-category mapping defined by pattern matching on their state ...
virtual TObject * clone(const char *newname) const
virtual ~RooMappedCategory()
const RooMappedCategoryCache * getOrCreateCache() const
RooCategoryProxy _inputCat
virtual value_type evaluate() const
transient member: cache the mapping
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...
static constexpr value_type NoCatIdx
RooMappedCategoryCache * _mapcache
void recomputeShape()
When the input category changes states, the cached state mappings are invalidated.
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.