Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTCharToGlyphIndexMap Class Reference

#include <FTCharToGlyphIndexMap.h>


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.

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 GlyphIndex find (CharacterCode c)
void insert (CharacterCode c, GlyphIndex g)


Member Typedef Documentation

typedef unsigned long FTCharToGlyphIndexMap::CharacterCode
 

Definition at line 31 of file FTCharToGlyphIndexMap.h.

Referenced by find(), and insert().

typedef signed long FTCharToGlyphIndexMap::GlyphIndex
 

Definition at line 32 of file FTCharToGlyphIndexMap.h.

Referenced by find(), and insert().


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, CharacterCode, GlyphIndex, and IndexNotFound.

Referenced by FTCharmap::GlyphListIndex().

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

Definition at line 98 of file FTCharToGlyphIndexMap.h.

References BucketSize, CharacterCode, GlyphIndex, IndexNotFound, and NumberOfBuckets.

Referenced by FTCharmap::InsertIndex().


The documentation for this class was generated from the following file:
Generated on Sun Dec 5 22:24:06 2004 for FTGL by doxygen 1.3.6