ForgeDocs
Documentation for the forge framework
|
Base event type that all events must derive from. More...
Static Protected Member Functions | |
static TDerived | GetInstance () |
Helper method to get an instance of the event. The instance may be populated with data, so make sure to fully initialize it. If there is no instance that can be reused, a new one is allocated using the default constructor. More... | |
Base event type that all events must derive from.
BaseEvent provides a number of helpful static methods (available only to the derived type) that make creating a factory for BaseEvent extremely simple. However, it is imperative that the factory methods be used, otherwise a memory leak will occur. The factory methods are thread-safe.
TDerived | : | BaseEvent<TDerived> |
|
staticprotected |
Helper method to get an instance of the event. The instance may be populated with data, so make sure to fully initialize it. If there is no instance that can be reused, a new one is allocated using the default constructor.