ders::data_queue Class Reference

Interface that defines interruptible data queue. More...

#include <data_queue.hpp>

Inheritance diagram for ders::data_queue:


List of all members.

Public Types

enum  result { ok, empt, intr }
 read/write result More...

Public Member Functions

virtual bool is_intr ()=0
virtual void set_intr (bool val)=0
virtual result read_obj (object_io &rdr, bool wait=true)=0
virtual result write_obj (const object_io &wrtr)=0
virtual void destroy (mem_pool &mp2)=0

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 that defines interruptible data queue.

Definition at line 37 of file data_queue.hpp.

Member Enumeration Documentation

read/write result


Definition at line 40 of file data_queue.hpp.

00040 { ok, empt, intr };

Member Function Documentation

virtual bool ders::data_queue::is_intr (  )  [pure virtual]

virtual void ders::data_queue::set_intr ( bool  val  )  [pure virtual]

virtual result ders::data_queue::read_obj ( object_io rdr,
bool  wait = true 
) [pure virtual]

virtual result ders::data_queue::write_obj ( const object_io wrtr  )  [pure virtual]

template<class T>
void ders::destroyable::destroy_this ( T *  ptr,
mem_pool mp2 
) [inline, static, protected, inherited]

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, inherited]

Definition at line 39 of file destroy.hpp.

00039 { hard_assert(false); }

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

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