VISH  0.2
Static Public Member Functions
MemCore::PreDestructionTrait Struct Reference

Trait class that allows to execute some action on an object when it is going to be deleted. More...

#include </home/werner/origo/vish/memcore/DynPtr.hpp>

List of all members.

Static Public Member Functions


Detailed Description

Trait class that allows to execute some action on an object when it is going to be deleted.

While this function is called, the object is still full constructed, whereas in a destructor there must not be any virtual function calls. Since this function is called through the reference point mechanism, and there is no other way to destruct an object than through deleting its last strong reference pointer, calling this function is equivalent to a destructor call, i.e. it is ensured this function will be called when an object of the specified type is going to be deleted.


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