GDataIterator< T > Class Template Reference

This class is an interface to a collection of objects (NOT thread-safe). More...

#include <Store3.h>

Inherited by DNullIterator< T >.

List of all members.

Public Member Functions

virtual T Create (GDataStoreI *Store)=0
virtual T First ()=0
virtual T Next ()=0
virtual int Length ()=0
virtual T operator[] (int idx)=0
virtual int IndexOf (T n)=0
virtual bool Delete (T ptr)=0
virtual bool Insert (T ptr, int idx=-1)=0
virtual bool Empty ()=0
virtual bool DeleteObjects ()=0


Detailed Description

template<class T>
class GDataIterator< T >

This class is an interface to a collection of objects (NOT thread-safe).

Member Function Documentation

template<class T >
virtual T GDataIterator< T >::Create ( GDataStoreI Store  )  [pure virtual]

Returns:
an empty object of the right type.

template<class T >
virtual bool GDataIterator< T >::Delete ( ptr  )  [pure virtual]

Deletes an item

Returns:
true on success

template<class T >
virtual bool GDataIterator< T >::DeleteObjects (  )  [pure virtual]

Deletes all the objects from memory

Returns:
true on success

template<class T >
virtual bool GDataIterator< T >::Empty (  )  [pure virtual]

Clears list, but doesn't delete objects.

Returns:
true on success

template<class T >
virtual T GDataIterator< T >::First (  )  [pure virtual]

Returns:
the first object (NOT thread-safe)

template<class T >
virtual int GDataIterator< T >::IndexOf ( n  )  [pure virtual]

Returns:
the index of the given item in the collection

template<class T >
virtual bool GDataIterator< T >::Insert ( ptr,
int  idx = -1 
) [pure virtual]

Inserts an item at 'idx' or the end if not supplied.

Returns:
true on success

template<class T >
virtual int GDataIterator< T >::Length (  )  [pure virtual]

Returns:
the number of items in the collection

template<class T >
virtual T GDataIterator< T >::Next (  )  [pure virtual]

Returns:
the first object (NOT thread-safe)

template<class T >
virtual T GDataIterator< T >::operator[] ( int  idx  )  [pure virtual]

Returns:
the 'nth' item in the collection


The documentation for this class was generated from the following file:

Generated on Wed Dec 1 15:41:02 2010 for Lgi by  doxygen 1.5.7.1