[AI] Template class for a generic collection, providing fundamental storage and comparison facilities, in addition to customized destruction policies.
More...
|
| MxCollection () |
| [AI] Constructs an empty collection, initializing count and default element destructor. More...
|
|
virtual MxS8 | Compare (T a, T b) |
| [AI] Compares two elements of the collection (default implementation returns zero; override in subclasses for meaningful comparison). More...
|
|
| ~MxCollection () override |
| [AI] Virtual destructor for proper polymorphic destruction. More...
|
|
void | SetDestroy (void(*p_customDestructor)(T)) |
| [AI] Assigns a custom destructor function to be used for elements of this collection. More...
|
|
| MxCore () |
| [AI] Constructs a new MxCore object and assigns it a unique id. More...
|
|
virtual | ~MxCore () |
| [AI] Virtual destructor. Required for correct polymorphic cleanup in derived classes. More...
|
|
virtual MxLong | Notify (MxParam &p_param) |
| [AI] Virtual callback notification mechanism. More...
|
|
virtual MxResult | Tickle () |
| [AI] Called by tickle managers to allow the object to update itself. More...
|
|
virtual const char * | ClassName () const |
| [AI] Returns the runtime class name of this object. More...
|
|
virtual MxBool | IsA (const char *p_name) const |
| [AI] Checks whether this object's class type or parents match the given name. More...
|
|
MxU32 | GetId () |
| [AI] Gets the unique (per-process) id assigned to this object instance. More...
|
|
template<class T>
class MxCollection< T >
[AI] Template class for a generic collection, providing fundamental storage and comparison facilities, in addition to customized destruction policies.
[AI] MxCollection is a template base class for non-owning or lightweight-owning containers within the LEGO Island engine architecture. It manages element count, supports a custom destruction strategy for elements, and provides a virtual interface for type-specific comparisons. Designed to be subclassed for concrete storage behaviors.
- Template Parameters
-
T | [AI] Type of element stored in the collection. |
Definition at line 10 of file mxcollection.h.