35 if (!obj || !obj->
IsA())
62 Error(
"CheckDuplicateName",
"object with name: %s already in the list",obj->
GetName());
67 Error(
"CheckDuplicateName",
"an object with the same name: %s is already in the list",obj->
GetName());
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void AddBefore(const TObject *before, TObject *obj) override
Insert object before object before in the list.
void AddFirst(TObject *obj) override
Add object at the beginning of the list.
void AddAfter(const TObject *after, TObject *obj) override
Insert object after object after in the list.
void AddAt(TObject *obj, Int_t idx) override
Insert object at location idx in the list.
TObject * FindObject(const char *name) const override
Find object using its name.
void AddLast(TObject *obj) override
Add object at the end of the list.
Method or function calling interface.
void Execute(const char *, const char *, int *=nullptr) override
Execute method on this object with the given parameter string, e.g.
Bool_t IsValid() const
Return true if the method call has been properly initialized and is usable.
void InitWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Initialize the method invocation environment.
void SetParam(Long_t l)
Add a long method parameter.
Wrapper around a TObject so it can be stored in a TList.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual TClass * IsA() const
A TList derived class that makes sure that objects added to it are not linked to the currently open f...
void AddBefore(const TObject *before, TObject *obj) override
Add to the list.
void AddFirst(TObject *obj) override
Add at the start of the list.
Bool_t UnsetDirectory(TObject *obj)
If the class of obj has the SetDirectory(TDirectory*) method call it to unset the directory associati...
void AddAt(TObject *obj, Int_t idx) override
Add to the list.
void AddLast(TObject *obj) override
Add at the end of the list.
void AddAfter(const TObject *after, TObject *obj) override
Add to the list.
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.
#define org(otri, vertexptr)