From 6d41f389dc7681b15bd29764b4faa4598362e416 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 5 Sep 2009 18:15:58 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@63 ed2142bd-67ad-457f-ba7c-d818d4011675 --- data_sets/default_data_set.hpp | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/data_sets/default_data_set.hpp b/data_sets/default_data_set.hpp index f369cee..be9c4eb 100644 --- a/data_sets/default_data_set.hpp +++ b/data_sets/default_data_set.hpp @@ -49,7 +49,41 @@ namespace opt_utilities { data_vec.clear(); } - + + public: + default_data_set() + {} + + default_data_set(const default_data_set& rhs) + :data_vec(rhs.data_vec) + {} + + default_data_set(const data_set& rhs) + { + data_vec.resize(rhs.size()); + for(int i=0;i& rhs) + { + data_vec=rhs.data_vec; + return *this; + } + + default_data_set& operator=(const data_set& rhs) + { + data_vec.resize(rhs.size()); + for(int i=0;i