ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FontEngine::TDBComp< T, S > Struct Template Reference

The default comparison function template to sort items in data bank class. More...

#include <FontEngineDBank.h>

Public Types

typedef T value_type
 
typedef S selector_type
 

Public Member Functions

bool operator() (const value_type &v1, const value_type &v2, selector_type sel) const
 callback comparison function to sort iItem into the data bank class More...
 
EDBCompActionRes operator() (const value_type &v, selector_type sel) const
 callback function called by data bank class before insert an item. The default insert items always. More...
 

Detailed Description

template<typename T, typename S>
struct FontEngine::TDBComp< T, S >

The default comparison function template to sort items in data bank class.

Parameters
Tthe data bank item type
Sthe data bank selector type

Member Typedef Documentation

template<typename T , typename S >
typedef S FontEngine::TDBComp< T, S >::selector_type
template<typename T , typename S >
typedef T FontEngine::TDBComp< T, S >::value_type

Member Function Documentation

template<typename T , typename S >
bool FontEngine::TDBComp< T, S >::operator() ( const value_type v1,
const value_type v2,
selector_type  sel 
) const
inline

callback comparison function to sort iItem into the data bank class

Parameters
v1the first data bank item
v2the second data bank item
selthe comparison selector
Returns
true if v1 < v2, depends from sel
template<typename T , typename S >
EDBCompActionRes FontEngine::TDBComp< T, S >::operator() ( const value_type v,
selector_type  sel 
) const
inline

callback function called by data bank class before insert an item. The default insert items always.

Parameters
vthe data bank item to insert
selthe comparison selector
Returns
one of the EDBCompActionRes values to set insert action

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