Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TFileCollection Class Reference

Implements a sorted collection of file names. More...

#include <stddlg.h>

Inheritance diagram for TFileCollection::

TSortedCollection TNSSortedCollection TCollection TNSCollection TNSCollection TStreamable TObject TObject List of all members.

Public Methods

 TFileCollection (ccIndex aLimit, ccIndex aDelta)
TSearchRecat (ccIndex index)
virtual ccIndex indexOf (TSearchRec *item)
void remove (TSearchRec *item)
void free (TSearchRec *item)
void atInsert (ccIndex index, TSearchRec *item)
void atPut (ccIndex index, TSearchRec *item)
virtual ccIndex insert (TSearchRec *item)
TSearchRecfirstThat (ccTestFunc Test, void *arg)
TSearchReclastThat (ccTestFunc Test, void *arg)

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TFileCollection (StreamableInit)

Detailed Description

TFileCollection is a simple derivative of TSortedCollection offering a sorted collection of file names.

Definition at line 196 of file stddlg.h.


Constructor & Destructor Documentation

TFileCollection::TFileCollection ( ccIndex aLimit,
ccIndex aDelta ) [inline]
 

Calls the base TSortedCollection constructor to create a collection with the given limit `aLimit' and delta `aDelta'.

Definition at line 203 of file stddlg.h.

TFileCollection::TFileCollection ( StreamableInit ) [inline, protected]
 

Undocumented.

Definition at line 301 of file stddlg.h.


Member Function Documentation

TSearchRec * TFileCollection::at ( ccIndex index ) [inline]
 

Returns a pointer to the TSearchRec object indexed by `index' in this file collection.

Reimplemented from TNSCollection.

Definition at line 209 of file stddlg.h.

void TFileCollection::atInsert ( ccIndex index,
TSearchRec * item ) [inline]
 

Inserts the TSearchRec file referenced by `item' into the collection at the given `index' and moves the following items down one position.

The collection will be expanded by delta if the insertion causes the limit to be exceeded.

Definition at line 237 of file stddlg.h.

void TFileCollection::atPut ( ccIndex index,
TSearchRec * item ) [inline]
 

Replaces the TSearchRec file found at `index' with the given `item'.

Definition at line 242 of file stddlg.h.

TStreamable * TFileCollection::build ( ) [static]
 

Called to create an object in certain stream-reading situations.

TSearchRec * TFileCollection::firstThat ( ccTestFunc func,
void * arg ) [inline]
 

This iterator returns a pointer to the first TSearchRec object in the collection for which the `Test' function returns True.

Reimplemented from TNSCollection.

Definition at line 335 of file stddlg.h.

void TFileCollection::free ( TSearchRec * item ) [inline]
 

Removes (deletes) the given TSearchRec file `item' from the collection and frees the space in the collection.

Definition at line 227 of file stddlg.h.

ccIndex TFileCollection::indexOf ( TSearchRec * item ) [inline, virtual]
 

Returns the index of the given TSearchRec file `item' in this file collection.

Definition at line 215 of file stddlg.h.

ccIndex TFileCollection::insert ( TSearchRec * item ) [inline, virtual]
 

Inserts the TSearchRec `item' into the collection, and adjusts the other indexes if necessary.

By default, insertions are made at the end of the collection. The index of the inserted `item' is returned.

Definition at line 251 of file stddlg.h.

TSearchRec * TFileCollection::lastThat ( ccTestFunc func,
void * arg ) [inline]
 

This iterator scans the collection from last item to first. It returns a pointer to the first item (that is, the nearest the end) in the collection for which the `Test' function returns True.

Reimplemented from TNSCollection.

Definition at line 340 of file stddlg.h.

void TFileCollection::remove ( TSearchRec * item ) [inline]
 

Removes (deletes) the given TSearchRec file `item' from this file collection. The space in the collection is not freed.

Definition at line 221 of file stddlg.h.


Member Data Documentation

const char *const TFileCollection::name [static]
 

Undocumented.

Reimplemented from TSortedCollection.

Definition at line 306 of file stddlg.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:24 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001