zenilib
0.5.3.0
|
#include "ftcmru.h"
Go to the source code of this file.
Classes | |
struct | FTC_CacheClassRec_ |
struct | FTC_CacheRec_ |
struct | FTC_NodeRec_ |
Macros | |
#define | _FTC_FACE_ID_HASH(i) ((FT_PtrDist)(( (FT_PtrDist)(i) >> 3 ) ^ ( (FT_PtrDist)(i) << 7 ))) |
#define | FTC_CACHE(x) ( (FTC_Cache)(x) ) |
#define | FTC_CACHE_LOOKUP_CMP(cache, nodecmp, hash, query, node, error) |
#define | FTC_CACHE_P(x) ( (FTC_Cache*)(x) ) |
#define | FTC_CACHE_TRYLOOP(cache) |
#define | FTC_CACHE_TRYLOOP_END(list_changed) |
#define | FTC_NODE(x) ( (FTC_Node)(x) ) |
#define | FTC_NODE__NEXT(x) FTC_NODE( (x)->mru.next ) |
#define | FTC_NODE__PREV(x) FTC_NODE( (x)->mru.prev ) |
#define | FTC_NODE__TOP_FOR_HASH(cache, hash) |
#define | FTC_NODE_P(x) ( (FTC_Node*)(x) ) |
Typedefs | |
typedef struct FTC_CacheRec_ * | FTC_Cache |
typedef void(* | FTC_Cache_DoneFunc )(FTC_Cache cache) |
typedef FT_Error(* | FTC_Cache_InitFunc )(FTC_Cache cache) |
typedef struct FTC_CacheClassRec_ * | FTC_CacheClass |
typedef struct FTC_CacheClassRec_ | FTC_CacheClassRec |
typedef struct FTC_CacheRec_ | FTC_CacheRec |
typedef FT_Bool(* | FTC_Node_CompareFunc )(FTC_Node node, FT_Pointer key, FTC_Cache cache, FT_Bool *list_changed) |
typedef void(* | FTC_Node_FreeFunc )(FTC_Node node, FTC_Cache cache) |
typedef FT_Error(* | FTC_Node_NewFunc )(FTC_Node *pnode, FT_Pointer query, FTC_Cache cache) |
typedef FT_Offset(* | FTC_Node_WeightFunc )(FTC_Node node, FTC_Cache cache) |
typedef struct FTC_NodeRec_ | FTC_NodeRec |
Functions | |
FTC_Cache_Done (FTC_Cache cache) | |
FTC_Cache_Init (FTC_Cache cache) | |
FTC_Cache_NewNode (FTC_Cache cache, FT_PtrDist hash, FT_Pointer query, FTC_Node *anode) | |
FTC_Cache_RemoveFaceID (FTC_Cache cache, FTC_FaceID face_id) | |
#define _FTC_FACE_ID_HASH | ( | i | ) | ((FT_PtrDist)(( (FT_PtrDist)(i) >> 3 ) ^ ( (FT_PtrDist)(i) << 7 ))) |
Definition at line 28 of file ftccache.h.
Definition at line 168 of file ftccache.h.
Referenced by FTC_CMapCache_Lookup(), and ftc_gcache_init().
Definition at line 217 of file ftccache.h.
Referenced by FTC_CMapCache_Lookup().
Definition at line 169 of file ftccache.h.
Referenced by FTC_CMapCache_New().
#define FTC_CACHE_TRYLOOP | ( | cache | ) |
Definition at line 319 of file ftccache.h.
Referenced by FTC_Cache_NewNode(), and ftc_snode_compare().
#define FTC_CACHE_TRYLOOP_END | ( | list_changed | ) |
Definition at line 330 of file ftccache.h.
Referenced by FTC_Cache_NewNode(), and ftc_snode_compare().
Definition at line 70 of file ftccache.h.
Referenced by FTC_GNode_Compare(), FTC_INode_Free(), FTC_SNode_Compare(), and FTC_SNode_Free().
Definition at line 73 of file ftccache.h.
Definition at line 74 of file ftccache.h.
Referenced by FTC_Manager_Compress(), and FTC_Manager_FlushN().
#define FTC_NODE__TOP_FOR_HASH | ( | cache, | |
hash | |||
) |
Definition at line 77 of file ftccache.h.
Referenced by ftc_node_hash_link(), and ftc_node_hash_unlink().
Definition at line 71 of file ftccache.h.
typedef struct FTC_CacheRec_* FTC_Cache |
Definition at line 32 of file ftccache.h.
Definition at line 131 of file ftccache.h.
Definition at line 128 of file ftccache.h.
typedef struct FTC_CacheClassRec_* FTC_CacheClass |
Definition at line 35 of file ftccache.h.
typedef struct FTC_CacheClassRec_ FTC_CacheClassRec |
typedef struct FTC_CacheRec_ FTC_CacheRec |
typedef FT_Bool(* FTC_Node_CompareFunc)(FTC_Node node, FT_Pointer key, FTC_Cache cache, FT_Bool *list_changed) |
Definition at line 117 of file ftccache.h.
Definition at line 124 of file ftccache.h.
typedef FT_Error(* FTC_Node_NewFunc)(FTC_Node *pnode, FT_Pointer query, FTC_Cache cache) |
Definition at line 107 of file ftccache.h.
Definition at line 112 of file ftccache.h.
typedef struct FTC_NodeRec_ FTC_NodeRec |
FTC_Cache_Done | ( | FTC_Cache | cache | ) |
Definition at line 414 of file ftccache.c.
References ftc_cache_done().
Referenced by ftc_gcache_done().
FTC_Cache_Init | ( | FTC_Cache | cache | ) |
Definition at line 333 of file ftccache.c.
References ftc_cache_init().
Referenced by ftc_gcache_init().
FTC_Cache_NewNode | ( | FTC_Cache | cache, |
FT_PtrDist | hash, | ||
FT_Pointer | query, | ||
FTC_Node * | anode | ||
) |
Definition at line 449 of file ftccache.c.
References error, ftc_cache_add(), FTC_CACHE_TRYLOOP, FTC_CACHE_TRYLOOP_END, and NULL.
FTC_Cache_RemoveFaceID | ( | FTC_Cache | cache, |
FTC_FaceID | face_id | ||
) |
Definition at line 569 of file ftccache.c.
References FTC_ManagerRec_::cur_weight, FALSE, FT_Bool, ftc_cache_resize(), ftc_node_mru_unlink(), i, FTC_NodeRec_::link, and NULL.
Referenced by FTC_Manager_RemoveFaceID().