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. | |
![]() | |
OEvent (EventType type) | |
Class constructor. More... | |
virtual | ~OEvent () |
Class destructor. | |
EventType | type () const |
Returns event type. | |
![]() | |
OMemoryPoolObject () | |
Class constructor. | |
virtual | ~OMemoryPoolObject () |
Class destructor. | |
void * | operator new (size_t sz) |
void | operator delete (void *ptr) |
Additional Inherited Members | |
![]() | |
enum | EventType { KeyboardPressEvent =1000, KeyboardReleaseEvent, MouseClickEvent, MouseActiveMoveEvent, MousePassiveMoveEvent, ResizeEvent } |
![]() | |
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. |