Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CFont::GlyphMap Class Reference

Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint. More...

#include <Font.h>

Collaboration diagram for CFont::GlyphMap:
Collaboration graph
[legend]

Public Member Functions

 GlyphMap ()
 
 ~GlyphMap ()
 
void set (u16 i, const GlyphData &val)
 
const GlyphDataget (u16 i) const
 

Private Member Functions

 NONCOPYABLE (GlyphMap)
 

Private Attributes

GlyphDatam_Data [256]
 

Detailed Description

Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint.

This is stored as a sparse 2D array, exploiting the knowledge that a font typically only supports a small number of 256-codepoint blocks, so most elements of m_Data will be NULL.

Constructor & Destructor Documentation

CFont::GlyphMap::GlyphMap ( )
CFont::GlyphMap::~GlyphMap ( )

Member Function Documentation

const GlyphData* CFont::GlyphMap::get ( u16  i) const
inline
CFont::GlyphMap::NONCOPYABLE ( GlyphMap  )
private
void CFont::GlyphMap::set ( u16  i,
const GlyphData val 
)

Member Data Documentation

GlyphData* CFont::GlyphMap::m_Data[256]
private

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