PandaTree
|
Singleton class for bookkeeping of Elements constructed as singlets. More...
#include <Element.h>
Public Member Functions | |
ArrayBase & | getArray (Element const *) const |
template<class O > | |
O::datastore & | getData (O const *) const |
char const * | getName (Element const *) const |
Singleton class for bookkeeping of Elements constructed as singlets.
Element objects are internally collections of references to elements of multiple arrays and are not naturally constructible as singlets. StoreManager keeps a global list of arrays which are referenced by singlet Elements. When a singlet Element is destructed, the slots in StoraManager it referred to are freed and is recycled for the next instantiation of an Element object.