Rosetta Utilities  2014.35
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Cache Class Reference

Classes

struct  head_t
 

Public Member Functions

 Cache (int l, long int size)
 
 ~Cache ()
 
int get_data (const int index, Qfloat **data, int len)
 
void swap_index (int i, int j)
 

Private Member Functions

void lru_delete (head_t *h)
 
void lru_insert (head_t *h)
 

Private Attributes

int l
 
long int size
 
head_thead
 
head_t lru_head
 

Constructor & Destructor Documentation

Cache::Cache ( int  l,
long int  size 
)
Cache::~Cache ( )

Member Function Documentation

int Cache::get_data ( const int  index,
Qfloat **  data,
int  len 
)
void Cache::lru_delete ( head_t h)
private

References Cache::head_t::next, and Cache::head_t::prev.

Referenced by get_data(), and swap_index().

void Cache::lru_insert ( head_t h)
private
void Cache::swap_index ( int  i,
int  j 
)

Member Data Documentation

head_t* Cache::head
private

Referenced by Cache(), get_data(), swap_index(), and ~Cache().

int Cache::l
private

Referenced by Cache().

head_t Cache::lru_head
private
long int Cache::size
private

Referenced by Cache(), get_data(), and swap_index().


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