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

dbSorter subclass used when sorting by a single field. More...

#include <oof1.h>

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

Public Member Functions

virtual void addSegment (dbField &)
 
void backendChangedContext (OOF_tableBackend *)
 
void backendSavedRecord (OOF_tableBackend *)
 
void changeSortFieldTo (fieldNumT, bool shouldReverse=false)
 
virtual dbSorterclone () const
 
virtual unsigned short countSegments () const
 
 dbFieldSorter (fieldNumT, bool shouldReverse=false)
 
virtual void describe (std::ostream &) const
 
fieldNumT fieldNumberOfSegment (unsigned int) const
 
bool operator!= (const dbSorter *rhs) const
 
dbSorteroperator<< (dbField &)
 
dbSorteroperator>> (dbField &)
 
void resumeSorting ()
 
OOF_Segmentsegment (unsigned int) const
 
void selectionChanged ()
 
void setSortOnSaves (bool willSortOnSaves=true)
 
virtual unsigned short sortFieldNo () const
 
bool sortingSuspended () const
 
virtual void sortNow (OOF_tableBackend *)
 
virtual bool sortsBySingleField () const
 
bool sortsInReverse () const
 
virtual unsigned long state () const
 
void suspendSorting ()
 
void toggleSegmentReversedFlags ()
 
virtual ~dbFieldSorter ()
 

Protected Attributes

bool mNeedsToSort
 
bool mReverseSort
 
fieldNumT mSortFieldNo
 
bool mSorting
 
bool mSortOnSaves
 
bool mSuspended
 

Detailed Description

dbSorter subclass used when sorting by a single field.

Provides optimal despatching for this common case to OOF_simpleRecordBackend::sortSelectionNow(fieldNumT)

Definition at line 1344 of file oof1.h.

Constructor & Destructor Documentation

dbFieldSorter::dbFieldSorter ( fieldNumT  sortField,
bool  shouldReverse = false 
)

Definition at line 3070 of file oof1.cpp.

Referenced by clone().

virtual dbFieldSorter::~dbFieldSorter ( )
inlinevirtual

Definition at line 1350 of file oof1.h.

Member Function Documentation

void OOF_FieldSegOwner::addSegment ( dbField segField)
virtualinherited
void dbSorter::backendChangedContext ( OOF_tableBackend whoChanged)
inherited
void dbSorter::backendSavedRecord ( OOF_tableBackend )
inherited
void dbFieldSorter::changeSortFieldTo ( fieldNumT  newNum,
bool  shouldReverse = false 
)

Definition at line 3132 of file oof1.cpp.

References dbSorter::mNeedsToSort, mReverseSort, mSortFieldNo, and dbSorter::mSuspended.

dbSorter * dbFieldSorter::clone ( ) const
virtual

Reimplemented from dbSorter.

Definition at line 3077 of file oof1.cpp.

References dbFieldSorter(), mReverseSort, mSortFieldNo, dbSorter::mSorting, and dbSorter::mSortOnSaves.

unsigned short OOF_FieldSegOwner::countSegments ( ) const
inlinevirtualinherited
void dbFieldSorter::describe ( std::ostream &  ) const
virtual

Reimplemented from dbSorter.

Definition at line 3089 of file oof1.cpp.

References mReverseSort, and mSortFieldNo.

fieldNumT OOF_FieldSegOwner::fieldNumberOfSegment ( unsigned int  i) const
inherited
bool dbSorter::operator!= ( const dbSorter rhs) const
inherited
dbSorter & dbSorter::operator<< ( dbField segField)
inlineinherited

Definition at line 2544 of file oof1.h.

dbSorter & dbSorter::operator>> ( dbField segField)
inherited
void dbSorter::resumeSorting ( )
inherited

Definition at line 3031 of file oof1.cpp.

References dbSorter::mSuspended.

Referenced by OOF_simpleRecordBackend::invert(), and dbTable::resumeSorting().

OOF_Segment * OOF_FieldSegOwner::segment ( unsigned int  i) const
inlineinherited
void dbSorter::selectionChanged ( )
inherited

Definition at line 3007 of file oof1.cpp.

References dbSorter::mNeedsToSort, and dbSorter::mSorting.

void dbSorter::setSortOnSaves ( bool  willSortOnSaves = true)
inlineinherited

Definition at line 2537 of file oof1.h.

unsigned short dbFieldSorter::sortFieldNo ( ) const
virtual

Reimplemented from dbSorter.

Definition at line 3100 of file oof1.cpp.

References mSortFieldNo.

bool dbSorter::sortingSuspended ( ) const
inlineinherited

Definition at line 2530 of file oof1.h.

void dbFieldSorter::sortNow ( OOF_tableBackend sorts)
virtual
bool dbFieldSorter::sortsBySingleField ( ) const
virtual

Reimplemented from dbSorter.

Definition at line 3107 of file oof1.cpp.

bool dbFieldSorter::sortsInReverse ( ) const
inline

Definition at line 2567 of file oof1.h.

unsigned long dbSorter::state ( ) const
virtualinherited
void dbSorter::suspendSorting ( )
inherited

Definition at line 3024 of file oof1.cpp.

References dbSorter::mSuspended.

Referenced by OOF_simpleRecordBackend::invert(), and dbTable::suspendSorting().

void OOF_FieldSegOwner::toggleSegmentReversedFlags ( )
inherited

Member Data Documentation

bool dbSorter::mNeedsToSort
protectedinherited
bool dbFieldSorter::mReverseSort
protected

Definition at line 1364 of file oof1.h.

Referenced by changeSortFieldTo(), clone(), describe(), and sortNow().

fieldNumT dbFieldSorter::mSortFieldNo
protected

Definition at line 1363 of file oof1.h.

Referenced by changeSortFieldTo(), clone(), describe(), sortFieldNo(), and sortNow().

bool dbSorter::mSorting
protectedinherited
bool dbSorter::mSortOnSaves
protectedinherited

Definition at line 1312 of file oof1.h.

Referenced by dbSorter::backendSavedRecord(), clone(), and dbSorter::state().

bool dbSorter::mSuspended
protectedinherited

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