PandaTree
Public Member Functions | List of all members
panda::Element::StoreManager Class Reference

Singleton class for bookkeeping of Elements constructed as singlets. More...

#include <Element.h>

Inheritance diagram for panda::Element::StoreManager:

Public Member Functions

ArrayBasegetArray (Element const *) const
 
template<class O >
O::datastore & getData (O const *) const
 
char const * getName (Element const *) const
 

Detailed Description

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.


The documentation for this class was generated from the following files: