diff options
Diffstat (limited to 'core/default_data_set.hpp')
-rw-r--r-- | core/default_data_set.hpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/core/default_data_set.hpp b/core/default_data_set.hpp deleted file mode 100644 index 20992c4..0000000 --- a/core/default_data_set.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef DEFAULT_DATA_SET -#define DEFAULT_DATA_SET -#include "fitter.hpp" -#include <vector> - - -namespace opt_utilities -{ - -template <typename Ty,typename Tx> -class default_data_set - :public data_set<Ty,Tx> -{ -private: - std::vector<data<Ty,Tx> > data_vec; - - data_set<Ty,Tx>* do_clone()const - { - return new default_data_set<Ty,Tx>(*this); - } - - - const data<Ty,Tx>& do_get_data(size_t i)const - { - return data_vec.at(i); - } - - size_t do_size()const - { - return data_vec.size(); - } - - void do_add_data(const data<Ty,Tx>& d) - { - data_vec.push_back(d); - } - - void do_clear() - { - data_vec.clear(); - } - -}; -} - -#endif -//EOF |