Information about the collection of columns (type, name, output index).
More...
#include <dataframe.h>
Information about the collection of columns (type, name, output index).
Definition at line 68 of file dataframe.h.
◆ size_type
using vita::dataframe::columns_info::size_type = std::size_t |
◆ columns_info()
vita::dataframe::columns_info::columns_info |
( |
| ) |
|
◆ back() [1/2]
auto & vita::dataframe::columns_info::back |
( |
| ) |
|
|
inline |
◆ back() [2/2]
const auto & vita::dataframe::columns_info::back |
( |
| ) |
const |
|
inline |
◆ begin() [1/2]
auto vita::dataframe::columns_info::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
auto vita::dataframe::columns_info::begin |
( |
| ) |
const |
|
inline |
◆ build()
void vita::dataframe::columns_info::build |
( |
const record_t & |
r, |
|
|
bool |
header_first |
|
) |
| |
Given an example compiles information about the columns of the dataframe.
- Parameters
-
[in] | r | a record containing an example |
[in] | header_first | true if the first example contains the header |
The function can be called multiple times to incrementally collect information from different examples.
When header_first
is true
the first example is used to gather the names of the columns and successive example contribute to determine the domain of each column.
Definition at line 119 of file dataframe.cc.
◆ empty()
bool vita::dataframe::columns_info::empty |
( |
| ) |
const |
|
inline |
◆ end() [1/2]
auto vita::dataframe::columns_info::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
auto vita::dataframe::columns_info::end |
( |
| ) |
const |
|
inline |
◆ front() [1/2]
auto & vita::dataframe::columns_info::front |
( |
| ) |
|
|
inline |
◆ front() [2/2]
const auto & vita::dataframe::columns_info::front |
( |
| ) |
const |
|
inline |
◆ is_valid()
bool vita::dataframe::columns_info::is_valid |
( |
| ) |
const |
- Returns
true
if the object passes the internal consistency check
Definition at line 171 of file dataframe.cc.
◆ operator[]() [1/2]
column_info & vita::dataframe::columns_info::operator[] |
( |
size_type |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
const column_info & vita::dataframe::columns_info::operator[] |
( |
size_type |
i | ) |
const |
|
inline |
◆ pop_back()
void vita::dataframe::columns_info::pop_back |
( |
| ) |
|
|
inline |
◆ push_back()
void vita::dataframe::columns_info::push_back |
( |
const column_info & |
v | ) |
|
Adds a new column at the end of the column list.
- Parameters
-
[in] | v | information about the new column |
Definition at line 89 of file dataframe.cc.
◆ push_front()
void vita::dataframe::columns_info::push_front |
( |
const column_info & |
v | ) |
|
Adds a new column at the front of the column list.
- Parameters
-
[in] | v | information about the new column |
Definition at line 99 of file dataframe.cc.
◆ size()
size_type vita::dataframe::columns_info::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: