summaryrefslogtreecommitdiff
path: root/include/phat/representations/bit_tree_pivot_column.h
diff options
context:
space:
mode:
authormkerber <kerber@tugraz.at>2020-08-24 11:14:04 +0000
committermkerber <kerber@tugraz.at>2020-08-24 11:14:04 +0000
commit5f228cd80d03250d2fdf023d6ee81a3e82f23bc2 (patch)
treeba657161a47e7f6b37d2ed6c2560d2c54260b54a /include/phat/representations/bit_tree_pivot_column.h
parent46116abeb6cab4893ac774e85efed5e3b87d5485 (diff)
parente9800d103fcdd19f0417e89781761f7f85d8ec9b (diff)
Merged in column_refactoring (pull request #4)
Column types are separated, and the matrix representation is more general in its container type
Diffstat (limited to 'include/phat/representations/bit_tree_pivot_column.h')
-rw-r--r--include/phat/representations/bit_tree_pivot_column.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/phat/representations/bit_tree_pivot_column.h b/include/phat/representations/bit_tree_pivot_column.h
index 4d48e88..4779d70 100644
--- a/include/phat/representations/bit_tree_pivot_column.h
+++ b/include/phat/representations/bit_tree_pivot_column.h
@@ -19,7 +19,6 @@
#pragma once
#include <phat/helpers/misc.h>
-#include <phat/representations/abstract_pivot_column.h>
namespace phat {
@@ -133,6 +132,15 @@ namespace phat {
std::reverse( out.begin(), out.end() );
}
+
+ template<typename InputIterator>
+ void add_col(InputIterator begin, InputIterator end) {
+ for(InputIterator it=begin;it!=end;it++) {
+ add_index(*it);
+ }
+ }
+
+
void add_col(const column &col) {
for( size_t i = 0; i < col.size(); ++i )
add_index(col[i]);
@@ -161,5 +169,4 @@ namespace phat {
}
};
- typedef abstract_pivot_column<bit_tree_column> bit_tree_pivot_column;
}