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());
TObject * FindObject(const char *name) const
Find object using its name.
void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
void AddAt(TObject *obj, Int_t idx)
Insert object at location idx in the list.
void AddFirst(TObject *obj)
Add object at the beginning of the list.
void AddAfter(const TObject *after, TObject *obj)
Insert object after object after in the list.
void AddLast(TObject *obj)
Add object at the end of the list.
Method or function calling interface.
Bool_t IsValid() const
Return true if the method call has been properly initialized and is usable.
void Execute(const char *, const char *, int *=0)
Execute method on this object with the given parameter string, e.g.
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 void Error(const char *method, const char *msgfmt,...) const
Issue error message.
A TList derived class that makes sure that objects added to it are not linked to the currently open f...
void AddLast(TObject *obj)
Add at the end of the list.
void AddFirst(TObject *obj)
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 assiciati...
void AddAfter(const TObject *after, TObject *obj)
Add to the list.
void AddAt(TObject *obj, Int_t idx)
Add to the list.
Bool_t CheckDuplicateName(TObject *obj)
Check for duplicate object names in the list.
void AddBefore(const TObject *before, TObject *obj)
Add to the list.
#define org(otri, vertexptr)