summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 21:23:57 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 21:23:57 +0100
commitbf3ec07d55f2d6edd3aa0db4c49580d36ac97f49 (patch)
tree271a6048798ebf2592c418eeb68f6ea26f953d0b /libdbpp/selectcommand.h
parentAdd adhoc factory support (diff)
downloadlibdbpp-bf3ec07d55f2d6edd3aa0db4c49580d36ac97f49.tar.bz2
libdbpp-bf3ec07d55f2d6edd3aa0db4c49580d36ac97f49.tar.xz
libdbpp-bf3ec07d55f2d6edd3aa0db4c49580d36ac97f49.zip
Switch columns collection to forward declared pointer and add helper function for adding columns
Diffstat (limited to 'libdbpp/selectcommand.h')
-rw-r--r--libdbpp/selectcommand.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
index a5788ea..8ebaf9c 100644
--- a/libdbpp/selectcommand.h
+++ b/libdbpp/selectcommand.h
@@ -3,9 +3,9 @@
#include "command.h"
#include "column.h"
-#include <boost/multi_index_container.hpp>
+#include <boost/multi_index_container_fwd.hpp>
#include <boost/multi_index/indexed_by.hpp>
-#include <boost/multi_index/ordered_index.hpp>
+#include <boost/multi_index/ordered_index_fwd.hpp>
#include <boost/multi_index/member.hpp>
#include <visibility.h>
@@ -21,6 +21,7 @@ namespace DB {
const Column & operator[](const Glib::ustring &) const;
unsigned int columnCount() const;
unsigned int getOrdinal(const Glib::ustring &) const;
+ void insertColumn(ColumnPtr);
typedef boost::multi_index_container<ColumnPtr, boost::multi_index::indexed_by<
boost::multi_index::ordered_unique<boost::multi_index::member<DB::Column, const unsigned int, &DB::Column::colNo>>,
@@ -28,7 +29,7 @@ namespace DB {
>> Columns;
protected:
- Columns columns;
+ Columns * columns;
};
}