HiPipe
0.7.0
C++17 data pipeline with Python bindings.
|
Abstract base class for HiPipe columns. More...
#include <hipipe/core/stream/column_t.hpp>
Public Member Functions | |
template<typename Column > | |
Column::data_type & | extract () |
template<typename Column > | |
const Column::data_type & | extract () const |
virtual std::string | name () const =0 |
virtual std::size_t | size () const =0 |
Retrieve the number of examples stored in the column. | |
virtual void | push_back (std::unique_ptr< abstract_column > rhs)=0 |
virtual std::unique_ptr< abstract_column > | take (std::size_t n)=0 |
Abstract base class for HiPipe columns.
Definition at line 33 of file column_t.hpp.
|
inline |
Extract a reference to the stored data.
Example:
Column | The column that is represented by this abstract column. |
std::runtime_error | If a column not corresponding to the stored one is requested. |
Definition at line 69 of file column_t.hpp.
|
inline |
Extract a const reference to the stored data.
The same as previous, but returns a const reference.
Definition at line 82 of file column_t.hpp.
|
pure virtual |
Retrieve the name of the stored column.
This function is automatically overriden and returns the string corresponding to the first parameter of HIPIPE_DEFINE_COLUMN macro.
|
pure virtual |
Concatenate the data of two columns.
See the corresponding function in column_base class for more info.
Implemented in hipipe::stream::column_base< ColumnName, ExampleType >.
|
pure virtual |
Steal the given number of examples and build a new column of them.
See the corresponding function in column_base class for more info.
Implemented in hipipe::stream::column_base< ColumnName, ExampleType >.