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

FTCharToGlyphIndexMap Class Reference

Provides a non-STL alternative to the STL map<unsigned long, unsigned long> which maps character codes to glyph indices inside FTCharmap. More...

#include <FTCharToGlyphIndexMap.h>

List of all members.

Public Types

typedef unsigned long CharacterCode
typedef signed long GlyphIndex
enum  { NumberOfBuckets = 256, BucketSize = 256, IndexNotFound = -1 }

Public Member Functions

 FTCharToGlyphIndexMap ()
virtual ~FTCharToGlyphIndexMap ()
void clear ()
const GlyphIndexfind (CharacterCode c)
void insert (CharacterCode c, GlyphIndex g)


Detailed Description

Provides a non-STL alternative to the STL map<unsigned long, unsigned long> which maps character codes to glyph indices inside FTCharmap.

Implementation:

Caveats:

Definition at line 27 of file FTCharToGlyphIndexMap.h.


Member Typedef Documentation

typedef unsigned long FTCharToGlyphIndexMap::CharacterCode
 

Definition at line 31 of file FTCharToGlyphIndexMap.h.

typedef signed long FTCharToGlyphIndexMap::GlyphIndex
 

Definition at line 32 of file FTCharToGlyphIndexMap.h.

Referenced by find().


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NumberOfBuckets 
BucketSize 
IndexNotFound 

Definition at line 34 of file FTCharToGlyphIndexMap.h.


Constructor & Destructor Documentation

FTCharToGlyphIndexMap::FTCharToGlyphIndexMap  )  [inline]
 

Definition at line 41 of file FTCharToGlyphIndexMap.h.

virtual FTCharToGlyphIndexMap::~FTCharToGlyphIndexMap  )  [inline, virtual]
 

Definition at line 46 of file FTCharToGlyphIndexMap.h.


Member Function Documentation

void FTCharToGlyphIndexMap::clear  )  [inline]
 

Definition at line 59 of file FTCharToGlyphIndexMap.h.

References NumberOfBuckets.

Referenced by FTCharmap::CharMap(), and FTCharmap::~FTCharmap().

const GlyphIndex* FTCharToGlyphIndexMap::find CharacterCode  c  )  [inline]
 

Definition at line 74 of file FTCharToGlyphIndexMap.h.

References BucketSize, GlyphIndex, and IndexNotFound.

Referenced by FTCharmap::CharIndex().

void FTCharToGlyphIndexMap::insert CharacterCode  c,
GlyphIndex  g
[inline]
 

Definition at line 98 of file FTCharToGlyphIndexMap.h.

References BucketSize, IndexNotFound, and NumberOfBuckets.

Referenced by FTCharmap::InsertIndex().


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 15:16:39 2003 for FTGL by doxygen 1.3.3