47 dstlen = src ? std::strlen(src) : 0;
49 char *buf = dstlen ?
new char[dstlen] : 0;
50 if (buf) std::strcpy(buf, src);
116 if (&other ==
this)
return kFALSE;
127 assert(inc > 0 ||
_len >= -inc);
128 int newsz =
_len + inc;
129 if (newsz <= 1 || !
_len) newsz = 0;
130 char* newbuf = newsz ?
new char[newsz] : 0;
133 newbuf[newsz - 1] = 0;
155 if (0 == argSet.
getSize())
return;
171 std::strcpy(p,
name);
195 char* token = std::strtok(tmp,
":");
198 if (arg)
output->add(*arg);
199 token = std::strtok(0,
":");
227 os << IsA()->GetName();
static RooMathCoreReg dummy
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
void sort(Bool_t reverse=false)
Sort collection using std::sort and name comparison.
RooFIter fwdIterator() const
One-time forward iterator.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
RooNameSet is a utility class that stores the names the objects in a RooArget.
virtual void printValue(std::ostream &os) const
Print value of nameset, i.e the list of names.
RooArgSet * select(const RooArgSet &list) const
Construct a RooArgSet of objects in input 'list' whose names match to those in the internal name list...
static void strdup(Int_t &dstlen, char *&dstbuf, const char *str)
copy src to dst, keep dstlen up to date, make sure zero length strings do not take memory
virtual void printTitle(std::ostream &os) const
Print title of nameset.
Bool_t operator<(const RooNameSet &other) const
void setNameList(const char *givenList)
void refill(const RooArgSet &argSet)
Refill internal contents from names in given argSet.
virtual void printName(std::ostream &os) const
Print name of nameset.
RooNameSet()
Default constructor.
const char * content() const
void extendBuffer(Int_t inc)
virtual void printClassName(std::ostream &os) const
Print class name of nameset.
RooNameSet & operator=(const RooNameSet &)
Assignment operator.
Bool_t operator==(const RooNameSet &other) const
Comparison operator.
virtual ~RooNameSet()
Destructor.
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual const char * GetTitle() const
Returns title of object.
static void output(int code)