This class acts as a simple virtual container to store custom resources in Scope objects.
To do so, custom derived types would simply add a custom member object together with a virtual destructor that assures that the member object(s) get rightfully deleted.
Instances of this type allocated with operator new
, may be stored in class Scope in containers accessible with fields Resources and CTScope . All objects in these fields will be deleted with method Scope::Reset .
#include <scope.hpp>
Public Method Index: | |
virtual | ~ScopeResource () |
|
inlinevirtual |