DynRPG  v0.20
RM2k3 Plugin SDK
Public Member Functions
RPG::NamedCatalog< T > Class Template Reference

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 >.

List of all members.

Public Member Functions

operator[] (int index)
 Array access operator.
get (int index)
 Array access method.

Detailed Description

template<class T = void *>
class RPG::NamedCatalog< T >

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.

See also:
RPG::Catalog
RPG::NamedCatalogPtr

Member Function Documentation

template<class T = void *>
T RPG::NamedCatalog< T >::get ( int  index) [inline]

Array access method.

Reimplemented from RPG::Catalog< T >.

template<class T = void *>
T RPG::NamedCatalog< T >::operator[] ( int  index) [inline]

Array access operator.

Reimplemented from RPG::Catalog< T >.