ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PostScript::TCIDData< K, V > Struct Template Reference

TCIDData is the cmap data template struct, used to keep cmap data bank class, the data are always simple key/value pairs. More...

#include <PostScriptCMapData.h>

Public Types

enum  ESelector { eKey, eValue }
 enum to define the comparison selectors More...
 
typedef K key_type
 
typedef V value_type
 

Public Member Functions

 TCIDData ()
 default ctor More...
 
 TCIDData (const key_type &cr)
 
 TCIDData (const key_type &cr, const value_type &cc)
 ctor More...
 
bool operator== (const TCIDData &cidd) const
 to compare two objects of struct TCIDData More...
 
bool operator() (const TCIDData &d1, const TCIDData &d2, ESelector sel) const
 callback comparison function to sort TCIDData items into the data bank class, see struct TDBComp More...
 
EDBCompActionRes operator() (const TCIDData &d2, ESelector sel) const
 callback function called by data bank class before insert an TCIDData item, see struct TDBComp. More...
 

Public Attributes

key_type _key
 a key More...
 
value_type _value
 a value More...
 

Detailed Description

template<typename K, typename V>
struct PostScript::TCIDData< K, V >

TCIDData is the cmap data template struct, used to keep cmap data bank class, the data are always simple key/value pairs.

CMap files are defined by Adobe as PostScript files to contain encoding informations. open source cmap files from
http://sourceforge.net/projects/cmap.adobe/files/

Parameters
Kthe key type
Vthe value type

Member Typedef Documentation

template<typename K , typename V >
typedef K PostScript::TCIDData< K, V >::key_type
template<typename K , typename V >
typedef V PostScript::TCIDData< K, V >::value_type

Member Enumeration Documentation

template<typename K , typename V >
enum PostScript::TCIDData::ESelector

enum to define the comparison selectors

Enumerator
eKey 
eValue 

Constructor & Destructor Documentation

template<typename K , typename V >
PostScript::TCIDData< K, V >::TCIDData ( )
inline

default ctor

template<typename K , typename V >
PostScript::TCIDData< K, V >::TCIDData ( const key_type cr)
inlineexplicit
template<typename K , typename V >
PostScript::TCIDData< K, V >::TCIDData ( const key_type cr,
const value_type cc 
)
inline

ctor

Parameters
cra key
cca value

Member Function Documentation

template<typename K , typename V >
bool PostScript::TCIDData< K, V >::operator() ( const TCIDData< K, V > &  d1,
const TCIDData< K, V > &  d2,
ESelector  sel 
) const
inline

callback comparison function to sort TCIDData items into the data bank class, see struct TDBComp

Parameters
d1the first TCIDData item
d2the second TCIDData item
selthe comparison selector, see ESelector
Returns
true if v1 < v2, depends from sel
template<typename K , typename V >
EDBCompActionRes PostScript::TCIDData< K, V >::operator() ( const TCIDData< K, V > &  d2,
ESelector  sel 
) const
inline

callback function called by data bank class before insert an TCIDData item, see struct TDBComp.

Parameters
d2the data bank TCIDData item to insert
selthe comparison selector, see ESelector
Returns
one of the EDBCompActionRes values to set insert action
template<typename K , typename V >
bool PostScript::TCIDData< K, V >::operator== ( const TCIDData< K, V > &  cidd) const
inline

to compare two objects of struct TCIDData

Parameters
ciddinstance to compare
Returns
true if this is equal to cidd

Member Data Documentation

template<typename K , typename V >
key_type PostScript::TCIDData< K, V >::_key

a key

template<typename K , typename V >
value_type PostScript::TCIDData< K, V >::_value

a value


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