12#ifndef ROOT_TListOfDataMembers
13#define ROOT_TListOfDataMembers
59 template<
class DataMemberList>
63 for (
auto * dataMember : dmlist)
unsigned long long ULong64_t
#define ClassDefOverride(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
All ROOT classes may have RTTI (run time type identification) support added.
This class defines an abstract interface that must be implemented by all classes that contain diction...
EMemberSelection
Kinds of members to include in lists.
This class stores a (key,value) pair using an external hash.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
TObject * FindObject(const char *name) const override
Find object using its name.
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
void Delete(Option_t *option="") override
Delete all TDataMember object files.
void AddAt(TObject *obj, Int_t idx) override
Insert object at location idx in the list.
TObject * FindObject(const char *name) const override
Specialize FindObject to do search for the a data member just by name or create it if its not already...
void RecursiveRemove(TObject *obj) override
Remove object from this collection and recursively remove the object from all other objects (and coll...
void AddAfter(const TObject *after, TObject *obj) override
Insert object after object after in the list.
TDictionary::DeclId_t DeclId_t
TDictionary * Find(DeclId_t id) const
Return (after creating it if necessary) the TDataMember describing the data member corresponding to t...
void SetClass(TClass *cl)
void Update(TDictionary *member)
Move the member or data member to the expect set of list.
TDictionary::EMemberSelection fSelection
Mark whether Load was executed.
void Clear(Option_t *option="") override
Remove all objects from the list.
ULong64_t fLastLoadMarker
Holder of TDataMember for unloaded DataMembers.
~TListOfDataMembers()
Destructor.
std::atomic< bool > fIsLoaded
Represent interpreter state when we last did a full load.
TObject * Remove(TObject *obj) override
Remove object from the list.
TListOfDataMembers(const TListOfDataMembers &)=delete
Whether the list should contain regular data members or only using decls or both.
TExMap * fIds
Context of this list. Not owned.
TListOfDataMembers & operator=(const TListOfDataMembers &)=delete
void AddBefore(const TObject *before, TObject *obj) override
Insert object before object before in the list.
TListOfDataMembers(DataMemberList &dmlist)
Construct from a generic collection of data members objects.
void UnmapObject(TObject *obj)
Remove a pair<id, object> from the map of data members and their ids.
TClass * GetClass() const
void MapObject(TObject *obj)
Add a pair<id, object> to the map of data members and their ids.
TListOfDataMembers(TClass *cl, TDictionary::EMemberSelection selection)
Constructor, possibly for all members of a class (or globals).
void Unload()
Mark 'all func' as being unloaded.
THashList * fUnloaded
Map from DeclId_t to TDataMember*.
void AddLast(TObject *obj) override
Add object at the end of the list.
TDictionary * Get(DeclId_t id)
Return (after creating it if necessary) the TDataMember describing the data member corresponding to t...
void Load()
Load all the DataMembers known to the interpreter for the scope 'fClass' into this collection.
void AddFirst(TObject *obj) override
Add object at the beginning of the list.
void Add(TObject *obj) override
Wrapper around a TObject so it can be stored in a TList.
Mother of all ROOT objects.