ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
ScopeResource Struct Reference

Description:


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 .

Definition at line 41 of file scope.hpp.

#include <scope.hpp>

Public Method Index:

virtual ~ScopeResource ()
 

Constructor(s) / Destructor Details::

◆ ~ScopeResource()

virtual ~ScopeResource ( )
inlinevirtual

The virtual destructor needed for virtual types.

Definition at line 44 of file scope.hpp.


The documentation for this struct was generated from the following file: