DynRPG
v0.20
RM2k3 Plugin SDK
|
Class inherited from RPG::Catalog in which elements with non-consecutive IDs are stored without waste of memory (i.e. events on a map) More...
Inherits RPG::Catalog< T >.
Public Member Functions | |
T | operator[] (int index) |
Array access operator. | |
T | get (int index) |
Array access method. |
Class inherited from RPG::Catalog in which elements with non-consecutive IDs are stored without waste of memory (i.e. events on a map)
If you need to enumerate all items in an RPG::NamedCatalog, use
for(int i = 0; i < myCatalog.count(); i++) { SomeObjectType *item = myCatalog.list[i]; // Processing here... }
If you have an RPG::NamedCatalogPtr, it works the same way.
T RPG::NamedCatalog< T >::get | ( | int | index | ) | [inline] |
Array access method.
Reimplemented from RPG::Catalog< T >.
T RPG::NamedCatalog< T >::operator[] | ( | int | index | ) | [inline] |
Array access operator.
Reimplemented from RPG::Catalog< T >.