Osiris Framework  0.2
OMemoryPoolEvent Class Reference

OEvent class with special memory management. More...

#include <OsirisSDK/OEvent.h>

Inheritance diagram for OMemoryPoolEvent:
OEvent OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE > OKeyboardPressEvent OMouseClickEvent OResizeEvent

Public Member Functions

 OMemoryPoolEvent (OEvent::EventType type)
 Class constructor. More...
 
virtual ~OMemoryPoolEvent ()
 Class destructor.
 
- Public Member Functions inherited from OEvent
 OEvent (EventType type)
 Class constructor. More...
 
virtual ~OEvent ()
 Class destructor.
 
EventType type () const
 Returns event type.
 
- Public Member Functions inherited from OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE >
 OMemoryPoolObject ()
 Class constructor.
 
virtual ~OMemoryPoolObject ()
 Class destructor.
 
void * operator new (size_t sz)
 
void operator delete (void *ptr)
 

Additional Inherited Members

- Public Types inherited from OEvent
enum  EventType { KeyboardPressEvent =1000, MouseClickEvent, ResizeEvent }
 
- Static Public Member Functions inherited from OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE >
static OMemoryPoolmemoryPool ()
 

Detailed Description

OEvent class with special memory management.

OEvent class that also derives from OMemoryPoolObject template class, which means that the the memory management will be done by an OMemoryPool class object. Since events can be frequently created, and in order to avoid heap fragmentation, it is important to employ a special memory mechanism that will not resort to malloc() and free() calls all the time.

Constructor & Destructor Documentation

OMemoryPoolEvent::OMemoryPoolEvent ( OEvent::EventType  type)

Class constructor.

Parameters
typeEvent type.

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