Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
celeste::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
 

Detailed Description

Definition at line 114 of file svm.cpp.

Constructor & Destructor Documentation

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

Definition at line 150 of file svm.cpp.

References vigra_ext::EMoR::h, head, lru_head, and celeste::Cache::head_t::next.

Member Function Documentation

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

Definition at line 157 of file svm.cpp.

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

Referenced by get_data(), and swap_index().

void celeste::Cache::lru_insert ( head_t h)
private

Definition at line 164 of file svm.cpp.

References vigra_ext::EMoR::h, lru_head, celeste::Cache::head_t::next, and celeste::Cache::head_t::prev.

Referenced by get_data(), and swap_index().

void celeste::Cache::swap_index ( int  i,
int  j 
)

Member Data Documentation

head_t* celeste::Cache::head
private

Definition at line 135 of file svm.cpp.

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

int celeste::Cache::l
private

Definition at line 126 of file svm.cpp.

Referenced by Cache().

head_t celeste::Cache::lru_head
private

Definition at line 136 of file svm.cpp.

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

long int celeste::Cache::size
private

Definition at line 127 of file svm.cpp.

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


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