DynRPG  v0.14a
RM2k3 Plugin SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes
RPG::Catalog< T > Class Template Reference

Wrapper class for RPG::DList which doesn't crash if the index is out of bounds. More...

Inherited by RPG::NamedCatalog< T >.

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.

Public Attributes

DListPtr< T > list

Detailed Description

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

Wrapper class for RPG::DList which doesn't crash if the index is out of bounds.

Note:
Please do not ask me why this class is there. I didn't invent it.
Warning:
This class has more members than the one which is documented (the others are used internally), so sizeof(RPG::Catalog<T>) is not equal to sizeof(RPG::DList<T> *)!
See also:
RPG::CatalogPtr
RPG::NamedCatalog
RPG::NamedCatalogPtr
RPG::DList

Member Function Documentation

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

Returns the number of items in the list.

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

Array access method.

Reimplemented in RPG::NamedCatalog< T >, and RPG::NamedCatalog< Event * >.

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

Array access operator.

Reimplemented in RPG::NamedCatalog< T >, and RPG::NamedCatalog< Event * >.


Member Data Documentation

template<class T = void *>
DListPtr<T> RPG::Catalog< T >::list

Pointer to the actual RPG::DList

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator