|
Hugintrunk
0.1
|
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_t * | head |
| head_t | lru_head |
| celeste::Cache::Cache | ( | int | l, |
| long int | size | ||
| ) |
Definition at line 141 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 150 of file svm.cpp.
References vigra_ext::EMoR::h, head, lru_head, and celeste::Cache::head_t::next.
| int celeste::Cache::get_data | ( | const int | index, |
| Qfloat ** | data, | ||
| int | len | ||
| ) |
Definition at line 173 of file svm.cpp.
References celeste::Cache::head_t::data, vigra_ext::EMoR::h, head, celeste::Cache::head_t::len, lru_delete(), lru_head, lru_insert(), celeste::Cache::head_t::next, size, and celeste::swap().
Referenced by celeste::SVC_Q::get_Q(), celeste::ONE_CLASS_Q::get_Q(), and celeste::SVR_Q::get_Q().
|
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().
|
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 | ||
| ) |
Definition at line 203 of file svm.cpp.
References data, vigra_ext::EMoR::h, head, lru_delete(), lru_head, lru_insert(), celeste::Cache::head_t::next, size, and celeste::swap().
Referenced by celeste::SVC_Q::swap_index(), and celeste::ONE_CLASS_Q::swap_index().
|
private |
Definition at line 135 of file svm.cpp.
Referenced by Cache(), get_data(), swap_index(), and ~Cache().
|
private |
Definition at line 136 of file svm.cpp.
Referenced by Cache(), get_data(), lru_insert(), swap_index(), and ~Cache().
|
private |
Definition at line 127 of file svm.cpp.
Referenced by Cache(), get_data(), and swap_index().
1.8.5