OOFILE  1.9
Public Member Functions | Protected Attributes | List of all members

Default list. More...

#include <ooflist.h>

Inheritance diagram for OOF_List:
Inheritance graph
[legend]
Collaboration diagram for OOF_List:
Collaboration graph
[legend]

Public Member Functions

void append (unsigned long theItem)
 Put item at the end of the list. More...
 
unsigned long count ()
 
bool isEmpty ()
 
bool member (unsigned long theItem) const
 Is theItem in the list. More...
 
 OOF_List ()
 
void prepend (unsigned long theItem)
 Put item at the beginning of the list. More...
 
virtual unsigned long remove ()
 Take item off the front of the list. More...
 
void sortedInsert (unsigned long theItem)
 Put item into list sorted. More...
 
void sortedInsertNoDups (unsigned long theItem)
 Put item into list sorted only if not already there. More...
 
virtual ~OOF_List ()
 

Protected Attributes

unsigned long mCount
 

Detailed Description

Default list.

Definition at line 77 of file ooflist.h.

Constructor & Destructor Documentation

OOF_List::OOF_List ( )
inline

Definition at line 79 of file ooflist.h.

virtual OOF_List::~OOF_List ( )
inlinevirtual

Definition at line 84 of file ooflist.h.

References OOF_ListBase::mCount.

Member Function Documentation

void OOF_List::append ( unsigned long  theItem)
unsigned long OOF_ListBase::count ( )
inlineinherited
bool OOF_ListBase::isEmpty ( )
inlineinherited
bool OOF_List::member ( unsigned long  theItem) const

Is theItem in the list.

Definition at line 115 of file ooflist.cpp.

References OOF_ListElement::mItem, and OOF_ListElement::mNext.

Referenced by OOF_dbaseBackend::gotoRecord(), OOF_dbaseBackend::next(), and OOF_dbaseBackend::start().

void OOF_List::prepend ( unsigned long  theItem)

Put item at the beginning of the list.

Definition at line 68 of file ooflist.cpp.

References OOF_ListElement::mNext.

unsigned long OOF_List::remove ( )
virtual
void OOF_List::sortedInsert ( unsigned long  theItem)

Put item into list sorted.

Definition at line 139 of file ooflist.cpp.

References OOF_ListElement::mNext.

Referenced by OOF_recordSelection::union_with().

void OOF_List::sortedInsertNoDups ( unsigned long  theItem)

Put item into list sorted only if not already there.

Definition at line 179 of file ooflist.cpp.

References OOF_ListElement::mItem, and OOF_ListElement::mNext.

Referenced by OOF_recordSelection::union_with().

Member Data Documentation

unsigned long OOF_ListBase::mCount
protectedinherited

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