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

The main font cache data struct. More...

#include <FontEngineCache.h>

Public Types

enum  ECSelector {
  ecsPath, ecsName, ecsFamilyName, ecsType,
  ecsLastSelector
}
 the selector enum to define data bank search indices More...
 
typedef TFont::EFType EFType
 
typedef TCharCode::TUNiData TUNiData
 
typedef std::set< TCharCode,
TUNiDataEval
TUnicodeSet
 
typedef TRange< TCharCodeTUnicodeRange
 
typedef std::set
< TUnicodeRange,
TUNiDataRangeEval
TUnicodeRangeSet
 
typedef std::set< unsigned short > TCIDSet
 

Public Member Functions

 TCacheItem ()
 ctor default More...
 
bool operator() (const TCacheItem &ci1, const TCacheItem &ci2, ECSelector sel) const
 callback comparison function to sort TCacheItem into the data bank class More...
 
EDBCompActionRes operator() (const TCacheItem &ci, ECSelector sel) const
 callback functon called by data bank class before insert an item More...
 

Public Attributes

TPath _fpath
 
unsigned int _index
 
std::time_t _modDate
 
EFType _type
 
TFontDictionary _fd
 
unsigned int _numOfGlyphs
 
TUnicodeSet _unicodes
 
TUnicodeRangeSet _unicodeRanges
 
TAltNameSet _altnameset
 
std::string _registry
 
std::string _ordering
 
int _supplement
 
TCIDSet _cidset
 

Detailed Description

The main font cache data struct.

Member Typedef Documentation

typedef std::set< unsigned short > FontEngine::TCacheItem::TCIDSet

Member Enumeration Documentation

the selector enum to define data bank search indices

Enumerator
ecsPath 

the font file path

ecsName 

the first font name

ecsFamilyName 

the font family name

ecsType 

the font type

ecsLastSelector 

Constructor & Destructor Documentation

FontEngine::TCacheItem::TCacheItem ( )
inline

ctor default

Member Function Documentation

bool FontEngine::TCacheItem::operator() ( const TCacheItem ci1,
const TCacheItem ci2,
ECSelector  sel 
) const
inline

callback comparison function to sort TCacheItem into the data bank class

Parameters
ci1the first cache item
ci2the second cache item
selthe sort selector
Returns
true if ci1 < ci2, depends from sel
EDBCompActionRes FontEngine::TCacheItem::operator() ( const TCacheItem ci,
ECSelector  sel 
) const
inline

callback functon called by data bank class before insert an item

Parameters
cithe cache item to insert
selthe sort selector
Returns
one of the EDBCompActionRes values to set insert action

Member Data Documentation

TAltNameSet FontEngine::TCacheItem::_altnameset
TCIDSet FontEngine::TCacheItem::_cidset
TFontDictionary FontEngine::TCacheItem::_fd
TPath FontEngine::TCacheItem::_fpath
unsigned int FontEngine::TCacheItem::_index
std::time_t FontEngine::TCacheItem::_modDate
unsigned int FontEngine::TCacheItem::_numOfGlyphs
std::string FontEngine::TCacheItem::_ordering
std::string FontEngine::TCacheItem::_registry
int FontEngine::TCacheItem::_supplement
EFType FontEngine::TCacheItem::_type
TUnicodeRangeSet FontEngine::TCacheItem::_unicodeRanges
TUnicodeSet FontEngine::TCacheItem::_unicodes

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