Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ORecordListIterator< T > Class Template Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/orecordlist.h>

Collaboration diagram for ORecordListIterator< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef OTemplateBase< T > Base

Public Member Functions

 ORecordListIterator (const QArray< int >, const Base *)
 ORecordListIterator ()
 ~ORecordListIterator ()
 ORecordListIterator (const ORecordListIterator &)
ORecordListIteratoroperator= (const ORecordListIterator &)
operator * ()
ORecordListIteratoroperator++ ()
ORecordListIteratoroperator-- ()
bool operator== (const ORecordListIterator &it)
bool operator!= (const ORecordListIterator &it)
uint current () const
uint count () const
void setCurrent (uint cur)

Private Attributes

QArray< int > m_uids
uint m_current
const Basem_temp
bool m_end: 1
m_record
bool m_direction:1
ORecordListIteratorPrivate * d

Friends

class ORecordList< T >

template<class T = OPimRecord>
class ORecordListIterator< T >


Member Typedef Documentation

template<class T = OPimRecord>
typedef OTemplateBase<T> ORecordListIterator< T >::Base
 

Definition at line 23 of file orecordlist.h.


Constructor & Destructor Documentation

template<class T>
ORecordListIterator< T >::ORecordListIterator const QArray< int >  ,
const Base
 

The c'tor used internally from ORecordList

Definition at line 221 of file orecordlist.h.

References ORecordListIterator< T >::m_end.

template<class T>
ORecordListIterator< T >::ORecordListIterator  ) 
 

The standard c'tor

Definition at line 133 of file orecordlist.h.

References l, ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_direction, ORecordListIterator< T >::m_end, ORecordListIterator< T >::m_record, ORecordListIterator< T >::m_temp, and TRUE.

template<class T>
ORecordListIterator< T >::~ORecordListIterator  ) 
 

Definition at line 142 of file orecordlist.h.

template<class T>
ORecordListIterator< T >::ORecordListIterator const ORecordListIterator< T > &   ) 
 

Definition at line 147 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_direction, ORecordListIterator< T >::m_end, ORecordListIterator< T >::m_record, ORecordListIterator< T >::m_temp, and ORecordListIterator< T >::m_uids.


Member Function Documentation

template<class T>
uint ORecordListIterator< T >::count  )  const
 

the number of items

Definition at line 242 of file orecordlist.h.

References ORecordListIterator< T >::m_uids.

template<class T>
uint ORecordListIterator< T >::current  )  const
 

the current item

Definition at line 231 of file orecordlist.h.

References ORecordListIterator< T >::m_current.

template<class T>
T ORecordListIterator< T >::operator *  ) 
 

a * operator ;) use it like this T = (*it);

Definition at line 169 of file orecordlist.h.

References OTemplateBase< T >::find(), OTemplateBase< T >::Forward, ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_direction, ORecordListIterator< T >::m_end, ORecordListIterator< T >::m_record, ORecordListIterator< T >::m_temp, ORecordListIterator< T >::m_uids, and OTemplateBase< T >::Reverse.

template<class T>
bool ORecordListIterator< T >::operator!= const ORecordListIterator< T > &  it  ) 
 

Definition at line 217 of file orecordlist.h.

template<class T>
ORecordListIterator< T > & ORecordListIterator< T >::operator++  ) 
 

Definition at line 182 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_direction, ORecordListIterator< T >::m_end, and ORecordListIterator< T >::m_uids.

template<class T>
ORecordListIterator< T > & ORecordListIterator< T >::operator--  ) 
 

Definition at line 193 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_direction, and ORecordListIterator< T >::m_end.

template<class T>
ORecordListIterator< T > & ORecordListIterator< T >::operator= const ORecordListIterator< T > &   ) 
 

Definition at line 158 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_end, ORecordListIterator< T >::m_record, ORecordListIterator< T >::m_temp, and ORecordListIterator< T >::m_uids.

template<class T>
bool ORecordListIterator< T >::operator== const ORecordListIterator< T > &  it  ) 
 

Definition at line 205 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_end, ORecordListIterator< T >::m_temp, and ORecordListIterator< T >::m_uids.

template<class T>
void ORecordListIterator< T >::setCurrent uint  cur  ) 
 

sets the current item

Definition at line 235 of file orecordlist.h.

References ORecordListIterator< T >::m_current, ORecordListIterator< T >::m_end, and ORecordListIterator< T >::m_uids.


Friends And Related Function Documentation

template<class T = OPimRecord>
friend class ORecordList< T > [friend]
 

Definition at line 21 of file orecordlist.h.


Member Data Documentation

template<class T = OPimRecord>
ORecordListIteratorPrivate* ORecordListIterator< T >::d [private]
 

Definition at line 75 of file orecordlist.h.

template<class T = OPimRecord>
uint ORecordListIterator< T >::m_current [private]
 

Definition at line 68 of file orecordlist.h.

Referenced by ORecordListIterator< T >::current(), ORecordList< T >::end(), ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator++(), ORecordListIterator< T >::operator--(), ORecordListIterator< T >::operator=(), ORecordListIterator< T >::operator==(), ORecordListIterator< T >::ORecordListIterator(), and ORecordListIterator< T >::setCurrent().

template<class T = OPimRecord>
bool ORecordListIterator< T >::m_direction [private]
 

Definition at line 72 of file orecordlist.h.

Referenced by ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator++(), ORecordListIterator< T >::operator--(), and ORecordListIterator< T >::ORecordListIterator().

template<class T = OPimRecord>
bool ORecordListIterator< T >::m_end [private]
 

Definition at line 70 of file orecordlist.h.

Referenced by ORecordList< T >::end(), ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator++(), ORecordListIterator< T >::operator--(), ORecordListIterator< T >::operator=(), ORecordListIterator< T >::operator==(), ORecordListIterator< T >::ORecordListIterator(), and ORecordListIterator< T >::setCurrent().

template<class T = OPimRecord>
T ORecordListIterator< T >::m_record [private]
 

Definition at line 71 of file orecordlist.h.

Referenced by ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator=(), and ORecordListIterator< T >::ORecordListIterator().

template<class T = OPimRecord>
const Base* ORecordListIterator< T >::m_temp [private]
 

Definition at line 69 of file orecordlist.h.

Referenced by ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator=(), ORecordListIterator< T >::operator==(), and ORecordListIterator< T >::ORecordListIterator().

template<class T = OPimRecord>
QArray<int> ORecordListIterator< T >::m_uids [private]
 

Definition at line 67 of file orecordlist.h.

Referenced by ORecordListIterator< T >::count(), ORecordListIterator< T >::operator *(), ORecordListIterator< T >::operator++(), ORecordListIterator< T >::operator=(), ORecordListIterator< T >::operator==(), ORecordListIterator< T >::ORecordListIterator(), and ORecordListIterator< T >::setCurrent().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:43:29 2005 for OPIE by  doxygen 1.4.2