TeoCCl library  0.1.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lru_cache.c File Reference
#include "teoccl/algs/lru_cache.h"
#include "teoccl/queue.h"
#include "teoccl/map.h"

Functions

ccl_lru_cache_tcclLruInit (const size_t size)
 
void cclLruRefer (ccl_lru_cache_t *lru, void *data, size_t data_len)
 
void cclLruForeach (ccl_lru_cache_t *lru, void(*fn)(const void *const data))
 
void cclLruDestroy (ccl_lru_cache_t *lru)
 

Detailed Description

Author
max Created on Tue Jan 21 18:27:55 2020

Function Documentation

void cclLruDestroy ( ccl_lru_cache_t lru)

References teoQueueDestroy().

void cclLruForeach ( ccl_lru_cache_t lru,
void(*)(const void *const data)  fn 
)
ccl_lru_cache_t* cclLruInit ( const size_t  size)

References teoMapNew(), and teoQueueNew().

void cclLruRefer ( ccl_lru_cache_t lru,
void *  data,
size_t  data_len 
)