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

Wrapper class for RPG::Catalog 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.

Public Attributes

Catalog< T > * ptr
 Pointer to the actual RPG::Catalog.

Detailed Description

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

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

Allows you to write someCatalogPointer[i] instead of (*someCatalogPointer)[i].

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

Member Function Documentation

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

Returns the number of items in the list.

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

Array access method.

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

Array access operator.


Member Data Documentation

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

Pointer to the actual RPG::Catalog.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator