diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-08-27 12:35:45 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-08-27 12:35:45 +0200 |
commit | 0356915f2d3e4f41b1993fc4688f07431506f610 (patch) | |
tree | 6eecbae2c86e57948d94f76460929c1793c3813e /include/phat/representations/full_pivot_column.h | |
parent | a378599c297e61be6543079945819e8da9d55b38 (diff) | |
parent | 746517263955660b5a0a0f4defc18f2d2d84f502 (diff) |
Merge tag 'v1.6' into debian/sid
Added tag v1.6 for changeset 746517263955
Diffstat (limited to 'include/phat/representations/full_pivot_column.h')
-rw-r--r-- | include/phat/representations/full_pivot_column.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/phat/representations/full_pivot_column.h b/include/phat/representations/full_pivot_column.h index c2e9e3c..a6a09d1 100644 --- a/include/phat/representations/full_pivot_column.h +++ b/include/phat/representations/full_pivot_column.h @@ -19,7 +19,6 @@ #pragma once
#include <phat/helpers/misc.h>
-#include <phat/representations/abstract_pivot_column.h>
namespace phat {
class full_column {
@@ -35,6 +34,15 @@ namespace phat { is_in_history.resize( total_size, false );
}
+
+ 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( index idx = 0; idx < (index) col.size(); idx++ ) {
add_index( col[ idx ] );
@@ -96,5 +104,4 @@ namespace phat { }
};
- typedef abstract_pivot_column< full_column > full_pivot_column;
}
|