Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

RefList_iterator< T > Class Template Reference

Forward iterator used to traverse RefList<T>-s. More...

#include <RefList.h>

Collaboration diagram for RefList_iterator< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef forward_iterator_tag iterator_category
typedef T value_type

Public Member Functions

 RefList_iterator ()
 RefList_iterator (const RefList_iterator &second)
 RefList_iterator (OidType oid, Connection *curConnection)
Ref< T > operator * ()
RefList_iteratoroperator++ ()
RefList_iterator operator++ (int)
bool operator== (const RefList_iterator &second) const
bool operator!= (const RefList_iterator &second) const

Protected Member Functions

void loadData ()

Protected Attributes

OidType listEntryOid
OidType nextOid
OidType pointedObjectOid
Connectionconnection

Detailed Description

template<class T>
class RefList_iterator< T >

Forward iterator used to traverse RefList<T>-s.


Member Typedef Documentation

template<class T>
typedef forward_iterator_tag RefList_iterator< T >::iterator_category
 

Iterator category - as in STL.

template<class T>
typedef T RefList_iterator< T >::value_type
 

Iterator value type - as in STL.


Constructor & Destructor Documentation

template<class T>
RefList_iterator< T >::RefList_iterator  )  [inline]
 

Default constructor - created iterator points nowhere.

template<class T>
RefList_iterator< T >::RefList_iterator const RefList_iterator< T > &  second  )  [inline]
 

Copy constructor.

template<class T>
RefList_iterator< T >::RefList_iterator OidType  oid,
Connection curConnection
[inline]
 

Constructor that creates valid iterator from OID of corresponding RefListEntry and given connection.


Member Function Documentation

template<class T>
void RefList_iterator< T >::loadData  )  [inline, protected]
 

Method that initializes nextOid and pointedObjectOid (if needed).

Loads RefListEntry with OID listEntryOid from database.

template<class T>
Ref<T> RefList_iterator< T >::operator *  )  [inline]
 

Returns Ref<T> reference to pointed object.

template<class T>
RefList_iterator& RefList_iterator< T >::operator++  )  [inline]
 

Prefix operator ++. Increments the iterator, than returns Ref<T> reference to pointed object.

template<class T>
RefList_iterator RefList_iterator< T >::operator++ int   )  [inline]
 

Postfix operator ++. Increments the iterator and returns Ref<T> reference to object, to which the iterator pointed before the increment.

template<class T>
bool RefList_iterator< T >::operator== const RefList_iterator< T > &  second  )  const [inline]
 

Tests whether the iterators correspond to the same RefListEntry.

template<class T>
bool RefList_iterator< T >::operator!= const RefList_iterator< T > &  second  )  const [inline]
 

Tests whether the iterators correspond to different RefListEntry-s.


Member Data Documentation

template<class T>
OidType RefList_iterator< T >::listEntryOid [protected]
 

OID of RefListEntry to which this iteratotr position corresponds.

template<class T>
OidType RefList_iterator< T >::nextOid [protected]
 

OID of next entry in appropriate RefList<T> (if known).

template<class T>
OidType RefList_iterator< T >::pointedObjectOid [protected]
 

OID of object to which this iterator points (if known).

template<class T>
Connection* RefList_iterator< T >::connection [protected]
 

Connection used to retrieve RefList<T>'s entries from the database.


The documentation for this class was generated from the following file:
Generated on Wed Aug 11 22:36:38 2004 for IOPC by Doxygen 1.3.6