ders::destroyable Class Reference

Interface for destroyable classes. More...

#include <destroy.hpp>

Inheritance diagram for ders::destroyable:

ders::barrier_listener ders::cond_var ders::data_in ders::data_out ders::data_queue ders::dir ders::Exception ders::mutex ders::object_io ders::readable ders::task ders::task_opers ders::thread ders::thread_pool ders::writable

List of all members.

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)

Detailed Description

Interface for destroyable classes.

All interfaces must be virtually derived from this base class.

Definition at line 31 of file destroy.hpp.

Constructor & Destructor Documentation

virtual ders::destroyable::~destroyable (  )  [inline, virtual]

Definition at line 43 of file destroy.hpp.

00043 {}

Member Function Documentation

template<class T>
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));
00051  ptr->~T();
00052  mp2.deallocate(ptr, sizeof(T));
00053 }

void ders::destroyable::operator delete ( void *  ptr,
size_t  size 
) [inline, protected]

Definition at line 39 of file destroy.hpp.

00039 { hard_assert(false); }

virtual void ders::destroyable::destroy ( mem_pool mp2  )  [pure virtual]

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

Generated on Tue Dec 8 11:35:33 2009 for derslib by  doxygen 1.5.5