celeste::Cache Class Reference

List of all members.

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

celeste::Cache::Cache int  l,
long int  size
 

Definition at line 126 of file svm.cpp.

References head, l, lru_head, celeste::max(), celeste::Cache::head_t::next, celeste::Cache::head_t::prev, and size.

celeste::Cache::~Cache  ) 
 

Definition at line 135 of file svm.cpp.

References celeste::Cache::head_t::data, head, lru_head, and celeste::Cache::head_t::next.


Member Function Documentation

int celeste::Cache::get_data const int  index,
Qfloat **  data,
int  len
 

Definition at line 158 of file svm.cpp.

References celeste::Cache::head_t::data, head, celeste::Cache::head_t::len, lru_delete(), lru_head, lru_insert(), celeste::Cache::head_t::next, celeste::Qfloat, size, and celeste::swap().

Referenced by celeste::SVR_Q::get_Q(), celeste::ONE_CLASS_Q::get_Q(), and celeste::SVC_Q::get_Q().

void celeste::Cache::lru_delete head_t h  )  [private]
 

Definition at line 142 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 149 of file svm.cpp.

References 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
 

Definition at line 188 of file svm.cpp.

References celeste::Cache::head_t::data, head, celeste::Cache::head_t::len, lru_delete(), lru_head, lru_insert(), celeste::Cache::head_t::next, size, and celeste::swap().

Referenced by celeste::ONE_CLASS_Q::swap_index(), and celeste::SVC_Q::swap_index().


Member Data Documentation

head_t* celeste::Cache::head [private]
 

Definition at line 120 of file svm.cpp.

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

int celeste::Cache::l [private]
 

Definition at line 111 of file svm.cpp.

Referenced by Cache().

head_t celeste::Cache::lru_head [private]
 

Definition at line 121 of file svm.cpp.

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

long int celeste::Cache::size [private]
 

Definition at line 112 of file svm.cpp.

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


The documentation for this class was generated from the following file:
Generated on Wed Jul 16 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1