aboutsummaryrefslogtreecommitdiffstats
path: root/data_sets
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-10-06 13:50:10 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-10-06 13:50:10 +0000
commitb5f6f5a869e2ce9db6ca29c843369b6518e7c4d7 (patch)
tree16ddad252bc4d18e9edbfbf409165fcb6bdae656 /data_sets
parent7963c2e6d2a06a1267296e54f482df7a1730ecc5 (diff)
downloadopt-utilities-b5f6f5a869e2ce9db6ca29c843369b6518e7c4d7.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@77 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'data_sets')
-rw-r--r--data_sets/shared_table_data_set.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/data_sets/shared_table_data_set.hpp b/data_sets/shared_table_data_set.hpp
index cd2bf55..6e34808 100644
--- a/data_sets/shared_table_data_set.hpp
+++ b/data_sets/shared_table_data_set.hpp
@@ -60,7 +60,7 @@ namespace opt_utilities
data_vec.clear();
}
- bool insert_data(size_t idx,const data<Ty,Tx>& d)
+ bool insert_data(int idx,const data<Ty,Tx>& d)
{
if(idx<0||idx>data_vec.size())
{
@@ -70,7 +70,7 @@ namespace opt_utilities
return true;
}
- bool insert_data(size_t idx,size_t n,const data<Ty,Tx>& d)
+ bool insert_data(int idx,size_t n,const data<Ty,Tx>& d)
{
if(idx<0||idx>data_vec.size())
{
@@ -134,6 +134,11 @@ namespace opt_utilities
return *this;
}
+ void reserve(size_t n)
+ {
+ data_vec.reserve(n);
+ }
+
};
}