ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FontEngine::TFontCache::TSearchIterator Struct Reference

the font cache search iterator class More...

#include <FontEngineCache.h>

Public Member Functions

 TSearchIterator (const TFontCache &fcache, const std::string &fname)
 ctor More...
 
const TCacheItemnear_by () const
 function to find nearest font in the alternate name set of whole font cache More...
 
const TCacheItemoperator* () const
 reference operator to get font cache item. Iterator must be valid check with operator bool() first More...
 
 operator bool () const
 function to chack if iterator is valid More...
 

Friends

struct TFontCache
 

Detailed Description

the font cache search iterator class

Constructor & Destructor Documentation

FontEngine::TFontCache::TSearchIterator::TSearchIterator ( const TFontCache fcache,
const std::string &  fname 
)
inline

ctor

Parameters
fcachea font cache instance
fnameto search into the alternate name set of whole font cache

Member Function Documentation

const TCacheItem* FontEngine::TFontCache::TSearchIterator::near_by ( ) const
inline

function to find nearest font in the alternate name set of whole font cache

Returns
a pointer to nearest font or NULL if no such item exsists
FontEngine::TFontCache::TSearchIterator::operator bool ( ) const
inline

function to chack if iterator is valid

Returns
true if iterator is valid and a item was found
const TCacheItem& FontEngine::TFontCache::TSearchIterator::operator* ( ) const
inline

reference operator to get font cache item. Iterator must be valid check with operator bool() first

Returns
font cache item

Friends And Related Function Documentation

friend struct TFontCache
friend

The documentation for this struct was generated from the following file:
InsideFont and ADI-FontEngine : Andreas Dippe, © 2013
http://www.insidefont.de