Osiris Framework
0.3
|
OEvent class with special memory management. More...
#include <OsirisSDK/OEvent.h>
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, KeyboardReleaseEvent, MouseClickEvent, MouseActiveMoveEvent, MousePassiveMoveEvent, ResizeEvent } |
Static Public Member Functions inherited from OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE > | |
static OMemoryPool * | memoryPool () |
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.
OMemoryPoolEvent::OMemoryPoolEvent | ( | OEvent::EventType | type | ) |
Class constructor.
type | Event type. |