ObjectList< T > Class Template Reference

A vector of objects. More...

Inheritance diagram for ObjectList< T >:
ElementList< T >

List of all members.

Public Member Functions

 ObjectList (void)
 Initialise vector.
 ObjectList (FileIO *file)
 Read object vector from the given file.
T * operator[] (int position)
 Operator to index the vector.
void salvage (FileIO *file)
 Read the vector from the given file.
void purge (FileIO *file)
 Write the vector to the given file.
int size (void)
 Return the length of the vector.
void assignFilePositions (FileBlockQueue *list)
 Assign the file position of each element list in the index (e.g. position of word list to extract later).
void buildHashTable (void)
 Build hash table for fast look up.
T * lookup (char *name)
 Return the object with the given name.

Protected Attributes

int _size
 The length of the vector.
T ** _objectList
 The vector pointer.
HashTable< char *, T * > * _objectHash
 The hash table pointer.

Friends

class BuildList< T >

Detailed Description

template<typename T>
class ObjectList< T >

A vector of objects.

This class provides the methods to store and manipulate a vector of objects.

Author
lapark
Revision
1.6
Date
2009/10/08 06:41:30
Id
ObjectList.tcc,v 1.6 2009/10/08 06:41:30 lapark Exp

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:15 2009 for textIR by  doxygen 1.6.1