My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
UsedIndexLetters Class Reference
Inheritance diagram for UsedIndexLetters:
SIntDict< uint >

Public Member Functions

 UsedIndexLetters ()
 
void add (uint letter)
 
- Public Member Functions inherited from SIntDict< uint >
 SIntDict (int size=17)
 
virtual ~SIntDict ()
 
void append (int key, const uint *d)
 
void prepend (int key, const uint *d)
 
bool remove (int key)
 
void sort ()
 
void inSort (int key, const uint *d)
 
void setAutoDelete (bool val)
 
uint * find (int key)
 
uint * operator[] (int key) const
 
uint * at (uint i)
 
void clear ()
 
int count ()
 

Private Member Functions

int compareValues (const uint *p1, const uint *p2) const
 

Detailed Description

Definition at line 1741 of file index.cpp.

Constructor & Destructor Documentation

UsedIndexLetters::UsedIndexLetters ( )
inline

Definition at line 1744 of file index.cpp.

References SIntDict< uint >::setAutoDelete().

: SIntDict<uint>(257) { setAutoDelete(TRUE); }

Member Function Documentation

void UsedIndexLetters::add ( uint  letter)
inline

Definition at line 1745 of file index.cpp.

References SIntDict< uint >::append(), and SIntDict< uint >::find().

Referenced by writeAlphabeticalClassList().

{
uint *v = find(letter);
if (v==0)
{
append(letter,new uint(letter));
}
}
int UsedIndexLetters::compareValues ( const uint *  item1,
const uint *  item2 
) const
inlineprivatevirtual

Function that is used to compare two items when sorting. Overload this to properly sort items.

See Also
inSort()

Reimplemented from SIntDict< uint >.

Definition at line 1754 of file index.cpp.

{
return (int)*p1 - (int)*p2; // subtracting is done by int not uint.
}

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