SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_resource_GarbageCollector_h
11 #define smtk_resource_GarbageCollector_h
13 #include "smtk/operation/Observer.h"
15 #include "smtk/SystemConfig.h"
62 using ObserverMap = std::map<WeakManagerPtr, Key, std::owner_less<WeakManagerPtr>>;
80 smtk::operation::Operation::Result);
95 #endif // smtk_resource_GarbageCollector_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
ObserverMap m_observers
The "ids" of observers calling collectGarbage after each operation.
Definition: GarbageCollector.h:90
Definition: Observers.h:106
smtk::shared_ptr< smtk::operation::Operation > OperationPtr
Definition: PublicPointerDefs.h:344
smtk::weak_ptr< smtk::operation::Manager > WeakManagerPtr
Definition: PublicPointerDefs.h:350
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:173
#define smtkEnableSharedPtr(...)
An abbreviation for enabling shared pointers.
Definition: SharedFromThis.h:214
Operation is a base class for all SMTK operations.
Definition: Operation.h:61
A class that owns ephemeral objects and remove them when abandoned.
Definition: GarbageCollector.h:50
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:131
EventType
Enumerate events that an operation may encounter.
Definition: Observer.h:30
std::set< smtk::operation::OperationPtr > m_garbage
The set of operations used to collect garbage (and whose associations indicate which objects are garb...
Definition: GarbageCollector.h:87