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)
 
int get_data (const int index, Qfloat **data, int len)
 
void swap_index (int i, int j)
 
 ~Cache ()
 

Private Member Functions

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

Private Attributes

head_thead
 
int l
 
head_t lru_head
 
long int size
 

Detailed Description

Definition at line 78 of file svm.cpp.

Constructor & Destructor Documentation

◆ Cache()

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

Definition at line 105 of file svm.cpp.

◆ ~Cache()

Cache::~Cache ( )

Definition at line 114 of file svm.cpp.

Member Function Documentation

◆ get_data()

int Cache::get_data ( const int  index,
Qfloat **  data,
int  len 
)

Definition at line 137 of file svm.cpp.

◆ lru_delete()

void Cache::lru_delete ( head_t h)
private

Definition at line 121 of file svm.cpp.

◆ lru_insert()

void Cache::lru_insert ( head_t h)
private

Definition at line 128 of file svm.cpp.

◆ swap_index()

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

Definition at line 167 of file svm.cpp.

Member Data Documentation

◆ head

head_t* Cache::head
private

Definition at line 99 of file svm.cpp.

◆ l

int Cache::l
private

Definition at line 90 of file svm.cpp.

◆ lru_head

head_t Cache::lru_head
private

Definition at line 100 of file svm.cpp.

◆ size

long int Cache::size
private

Definition at line 91 of file svm.cpp.


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


ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Mon Feb 28 2022 22:46:49