51 dstlen = src ? std::strlen(src) : 0;
53 char *buf = dstlen ?
new char[dstlen] : 0;
54 if (buf) std::strcpy(buf, src);
120 if (&other ==
this)
return kFALSE;
131 assert(inc > 0 ||
_len >= -inc);
132 int newsz =
_len + inc;
133 if (newsz <= 1 || !
_len) newsz = 0;
134 char* newbuf = newsz ?
new char[newsz] : 0;
137 newbuf[newsz - 1] = 0;
159 if (0 == argSet.
getSize())
return;
175 std::strcpy(p, name);
199 char* token = std::strtok(tmp,
":");
202 if (arg) output->
add(*arg);
203 token = std::strtok(0,
":");
231 os << IsA()->GetName();
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 const char * GetName() const
Returns name of object.
virtual void printName(std::ostream &os) const
Print name of nameset.
void sort(Bool_t reverse=kFALSE)
RooNameSet()
Default constructor.
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
virtual void printTitle(std::ostream &os) const
Print title of nameset.
virtual void printValue(std::ostream &os) const
Print value of nameset, i.e the list of names.
void setNameList(const char *givenList)
const char * content() const
RooNameSet & operator=(const RooNameSet &)
Assignment operator.
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods...
virtual void printClassName(std::ostream &os) const
Print class name of nameset.
void extendBuffer(Int_t inc)
virtual ~RooNameSet()
Destructor.
RooNameSet is a utility class that stores the names the objects in a RooArget.
Bool_t operator<(const RooNameSet &other) const
void refill(const RooArgSet &argSet)
Refill internal contents from names in given argSet.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooFIter fwdIterator() const
static RooMathCoreReg dummy
RooArgSet * select(const RooArgSet &list) const
Construct a RooArgSet of objects in input 'list' whose names match to those in the internal name list...
Bool_t operator==(const RooNameSet &other) const
Comparison operator.
Mother of all ROOT objects.
virtual const char * GetTitle() const
Returns title of object.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual const char * GetName() const
Returns name of object.