#include <genesis/utils/containers/dataframe.hpp>
Definition at line 68 of file containers/dataframe.hpp.
Public Member Functions | |
virtual | ~Column () override=default |
reference | at (size_type index) |
const_reference | at (size_type index) const |
reference | at (std::string const &row_name) |
const_reference | at (std::string const &row_name) const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () |
const_iterator | cend () |
iterator | end () |
const_iterator | end () const |
operator std::vector< value_type > const & () const | |
Implicit conversion to std::vector . More... | |
self_type & | operator= (std::vector< value_type > &&vec) |
Overwrite a column by the elements of a std::vector . More... | |
self_type & | operator= (std::vector< value_type > const &vec) |
Overwrite a column by the elements of a std::vector . More... | |
reference | operator[] (size_type index) |
const_reference | operator[] (size_type index) const |
reference | operator[] (std::string const &row_name) |
const_reference | operator[] (std::string const &row_name) const |
std::vector< value_type > const & | to_vector () const |
Explicit conversion to std::vector . More... | |
Public Types | |
using | const_iterator = typename container_type::const_iterator |
using | const_pointer = value_type const * |
using | const_reference = value_type const & |
using | container_type = std::vector< value_type > |
using | iterator = typename container_type::iterator |
using | pointer = value_type * |
using | reference = value_type & |
using | self_type = Column< T > |
using | size_type = size_t |
using | value_type = T |
Friends | |
class | Dataframe |
|
overridevirtualdefault |
Definition at line 342 of file containers/dataframe.hpp.
|
inline |
Definition at line 347 of file containers/dataframe.hpp.
|
inline |
Definition at line 352 of file containers/dataframe.hpp.
|
inline |
Definition at line 357 of file containers/dataframe.hpp.
|
inline |
Definition at line 288 of file containers/dataframe.hpp.
|
inline |
Definition at line 293 of file containers/dataframe.hpp.
|
inline |
Definition at line 308 of file containers/dataframe.hpp.
|
inline |
Definition at line 313 of file containers/dataframe.hpp.
|
inline |
Definition at line 298 of file containers/dataframe.hpp.
|
inline |
Definition at line 303 of file containers/dataframe.hpp.
|
inline |
Implicit conversion to std::vector
.
Explicit conversion to std::vector
. We can only offer const ref (or copy), but no non-const ref, as the latter would allow users to change the vector size, breaking our invariants of equal-sized columns in the dataframe. In order to modify all elements as if they were a vector, use the iterators obtained from begin() and end() instead.
Definition at line 424 of file containers/dataframe.hpp.
|
inline |
Overwrite a column by the elements of a std::vector
.
The size of the vector needs to match the number of rows of the Dataframe. The vector is moved.
Definition at line 390 of file containers/dataframe.hpp.
|
inline |
Overwrite a column by the elements of a std::vector
.
The size of the vector needs to match the number of rows of the Dataframe. The vector is copied.
Definition at line 372 of file containers/dataframe.hpp.
Definition at line 322 of file containers/dataframe.hpp.
|
inline |
Definition at line 327 of file containers/dataframe.hpp.
|
inline |
Definition at line 332 of file containers/dataframe.hpp.
|
inline |
Definition at line 337 of file containers/dataframe.hpp.
|
inline |
Explicit conversion to std::vector
.
We can only offer const ref (or copy), but no non-const ref, as the latter would allow users to change the vector size, breaking our invariants of equal-sized columns in the dataframe. In order to modify all elements as if they were a vector, use the iterators obtained from begin() and end() instead.
Definition at line 414 of file containers/dataframe.hpp.
|
friend |
Definition at line 252 of file containers/dataframe.hpp.
using const_iterator = typename container_type::const_iterator |
Definition at line 248 of file containers/dataframe.hpp.
using const_pointer = value_type const* |
Definition at line 245 of file containers/dataframe.hpp.
using const_reference = value_type const& |
Definition at line 243 of file containers/dataframe.hpp.
using container_type = std::vector< value_type > |
Definition at line 240 of file containers/dataframe.hpp.
using iterator = typename container_type::iterator |
Definition at line 247 of file containers/dataframe.hpp.
using pointer = value_type* |
Definition at line 244 of file containers/dataframe.hpp.
using reference = value_type& |
Definition at line 242 of file containers/dataframe.hpp.
Definition at line 238 of file containers/dataframe.hpp.
using size_type = size_t |
Definition at line 250 of file containers/dataframe.hpp.
using value_type = T |
Definition at line 239 of file containers/dataframe.hpp.