soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
CElementTraits< FontInfo > Class Reference

Hash and comparison template for FontInfo. More...

#include <SFontPool.h>

Static Public Member Functions

static ULONG Hash (INARGTYPE fontKey)
 Calculate the hash value of a FontInfo object.
 
static bool CompareElements (INARGTYPE element1, INARGTYPE element2)
 Compare two FontInfo objects for equality.
 
static int CompareElementsOrdered (INARGTYPE element1, INARGTYPE element2)
 Compare two FontInfo objects in order.
 

Detailed Description

Hash and comparison template for FontInfo.

Used to implement a font map, providing hash and comparison functions.

Definition at line 38 of file SFontPool.h.

Member Function Documentation

◆ CompareElements()

static bool CElementTraits< FontInfo >::CompareElements ( INARGTYPE element1,
INARGTYPE element2 )
inlinestatic

Compare two FontInfo objects for equality.

Parameters
element1First FontInfo object
element2Second FontInfo object
Returns
True if equal, false otherwise

Definition at line 59 of file SFontPool.h.

◆ CompareElementsOrdered()

static int CElementTraits< FontInfo >::CompareElementsOrdered ( INARGTYPE element1,
INARGTYPE element2 )
inlinestatic

Compare two FontInfo objects in order.

Parameters
element1First FontInfo object
element2Second FontInfo object
Returns
Comparison result, 0 if equal, negative if element1 < element2, positive if element1 > element2

Definition at line 70 of file SFontPool.h.

◆ Hash()

static ULONG CElementTraits< FontInfo >::Hash ( INARGTYPE fontKey)
inlinestatic

Calculate the hash value of a FontInfo object.

Parameters
fontKeyFontInfo object
Returns
Hash value

Definition at line 45 of file SFontPool.h.


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