SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SGCachedVector.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Fernando José Iglesias García
8  * Written (W) 2010,2012 Soeren Sonnenburg
9  * Copyright (C) 2010 Berlin Institute of Technology
10  * Copyright (C) 2012 Soeren Sonnenburg
11  */
12 //template<class T> class SGCachedVector : public SGVector<T>
13 //{
14 // public:
15 // /** default constructor */
16 // SGCachedVector(CCache<T>* c, index_t i)
17 // : SGVector<T>(), cache(c), idx(i)
18 // {
19 // }
20 //
21 // /** constructor for setting params */
22 // SGCachedVector(CCache<T>* c, index_t i,
23 // T* v, index_t len, bool free_vec=false)
24 // : SGVector<T>(v, len, free_vec), cache(c), idx(i)
25 // {
26 // }
27 //
28 // /** constructor to create new vector in memory */
29 // SGCachedVector(CCache<T>* c, index_t i, index_t len, bool free_vec=false) :
30 // SGVector<T>(len, free_vec), cache(c), idx(i)
31 // {
32 // }
33 //
34 // /** free vector */
35 // virtual void free_vector()
36 // {
37 // //clean up cache fixme
38 // SGVector<T>::free_vector();
39 // }
40 //
41 // /** destroy vector */
42 // virtual void destroy_vector()
43 // {
44 // //clean up cache fixme
45 // SGVector<T>::destroy_vector();
46 // if (cache)
47 // cache->unlock_entry(idx);
48 // }
49 //
50 // public:
51 // /** idx */
52 // index_t idx;
53 //
54 // /** cache */
55 // CCache<T>* cache;
56 //};

SHOGUN Machine Learning Toolbox - Documentation