#include <destroy.hpp>
Public Member Functions | |
virtual void | destroy (mem_pool &mp2)=0 |
virtual | ~destroyable () |
Protected Member Functions | |
void | operator delete (void *ptr, size_t size) |
Static Protected Member Functions | |
template<class T> | |
static void | destroy_this (T *ptr, mem_pool &mp2) |
All interfaces must be virtually derived from this base class.
Definition at line 31 of file destroy.hpp.
virtual ders::destroyable::~destroyable | ( | ) | [inline, virtual] |
void ders::destroyable::destroy_this | ( | T * | ptr, | |
mem_pool & | mp2 | |||
) | [inline, static, protected] |
Definition at line 47 of file destroy.hpp.
00048 { 00049 assert(typeid(*ptr)==typeid(T)); 00050 00051 ptr->~T(); 00052 mp2.deallocate(ptr, sizeof(T)); 00053 }
void ders::destroyable::operator delete | ( | void * | ptr, | |
size_t | size | |||
) | [inline, protected] |
virtual void ders::destroyable::destroy | ( | mem_pool & | mp2 | ) | [pure virtual] |