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

Wrapper class for RPG::NamedCatalog pointers (syntactic sugar) More...

List of all members.

Public Member Functions

operator[] (int index)
 Array access operator.
get (int index)
 Array access method.
int count ()
 Returns the number of items in the list (not the highest ID!)

Public Attributes

NamedCatalog< T > * ptr

Detailed Description

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

Wrapper class for RPG::NamedCatalog pointers (syntactic sugar)

Allows you to write RPG::actors[1]->hp instead of (*RPG::actors)[1]->hp, for example.

Note:
The size of this class equals to sizeof(NamedCatalog<T> *).
See also:
RPG::NamedCatalog

Member Function Documentation

template<class T = void *>
int RPG::NamedCatalogPtr< T >::count ( ) [inline]

Returns the number of items in the list (not the highest ID!)

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

Array access method.

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

Array access operator.