A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Dataframe< T >::Column Class Reference

#include <genesis/utils/containers/dataframe.hpp>

Detailed Description

template<typename T>
class genesis::utils::Dataframe< T >::Column

Definition at line 68 of file dataframe.hpp.

Public Member Functions

 Column (Dataframe &df, size_type index)
 
 Column (Column const &)=default
 
 Column (Column &&)=default
 
 ~Column ()=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 ()
 
Dataframedataframe ()
 
Dataframe const & dataframe () const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
size_type index () const
 
std::string const & name () const
 
Columnoperator= (Column const &other)
 
Columnoperator= (Column &&other)
 
self_typeoperator= (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
 
size_type size () const
 

Public Types

using const_iterator = typename std::vector< value_type >::const_iterator
 
using const_pointer = const value_type *
 
using const_reference = const value_type &
 
using iterator = typename std::vector< value_type >::iterator
 
using pointer = value_type *
 
using reference = value_type &
 
using self_type = Column
 
using size_type = size_t
 
using value_type = T
 

Friends

class Dataframe
 

Constructor & Destructor Documentation

Column ( Dataframe df,
size_type  index 
)
inline

Definition at line 95 of file dataframe.hpp.

~Column ( )
default
Column ( Column const &  )
default
Column ( Column &&  )
default

Member Function Documentation

reference at ( size_type  index)
inline

Definition at line 229 of file dataframe.hpp.

const_reference at ( size_type  index) const
inline

Definition at line 234 of file dataframe.hpp.

reference at ( std::string const &  row_name)
inline

Definition at line 239 of file dataframe.hpp.

const_reference at ( std::string const &  row_name) const
inline

Definition at line 244 of file dataframe.hpp.

iterator begin ( )
inline

Definition at line 141 of file dataframe.hpp.

const_iterator begin ( ) const
inline

Definition at line 146 of file dataframe.hpp.

const_iterator cbegin ( )
inline

Definition at line 161 of file dataframe.hpp.

const_iterator cend ( )
inline

Definition at line 166 of file dataframe.hpp.

Dataframe& dataframe ( )
inline

Definition at line 175 of file dataframe.hpp.

Dataframe const& dataframe ( ) const
inline

Definition at line 180 of file dataframe.hpp.

bool empty ( ) const
inline

Definition at line 190 of file dataframe.hpp.

iterator end ( )
inline

Definition at line 151 of file dataframe.hpp.

const_iterator end ( ) const
inline

Definition at line 156 of file dataframe.hpp.

size_type index ( ) const
inline

Definition at line 195 of file dataframe.hpp.

std::string const& name ( ) const
inline

Definition at line 200 of file dataframe.hpp.

Column& operator= ( Column const &  other)
inline

Definition at line 105 of file dataframe.hpp.

Column& operator= ( Column &&  other)
inline

Definition at line 120 of file dataframe.hpp.

self_type& operator= ( std::vector< value_type > const &  vec)
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.

Definition at line 258 of file dataframe.hpp.

reference operator[] ( size_type  index)
inline

Definition at line 209 of file dataframe.hpp.

const_reference operator[] ( size_type  index) const
inline

Definition at line 214 of file dataframe.hpp.

reference operator[] ( std::string const &  row_name)
inline

Definition at line 219 of file dataframe.hpp.

const_reference operator[] ( std::string const &  row_name) const
inline

Definition at line 224 of file dataframe.hpp.

size_type size ( ) const
inline

Definition at line 185 of file dataframe.hpp.

Friends And Related Function Documentation

friend class Dataframe
friend

Definition at line 93 of file dataframe.hpp.

Member Typedef Documentation

using const_iterator = typename std::vector< value_type >::const_iterator

Definition at line 85 of file dataframe.hpp.

using const_pointer = const value_type*

Definition at line 82 of file dataframe.hpp.

using const_reference = const value_type&

Definition at line 80 of file dataframe.hpp.

using iterator = typename std::vector< value_type >::iterator

Definition at line 84 of file dataframe.hpp.

using pointer = value_type*

Definition at line 81 of file dataframe.hpp.

Definition at line 79 of file dataframe.hpp.

using self_type = Column

Definition at line 76 of file dataframe.hpp.

using size_type = size_t

Definition at line 87 of file dataframe.hpp.

using value_type = T

Definition at line 77 of file dataframe.hpp.


The documentation for this class was generated from the following file: