A toolkit for working with phylogenetic data.
v0.24.0
Dataframe::ColumnBase Class Referenceabstract

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

Inherited by Dataframe::Column< T >.

Detailed Description

Definition at line 74 of file containers/dataframe.hpp.

Public Member Functions

virtual ~ColumnBase ()=default
 
template<typename T >
Column< T > & as ()
 
template<typename T >
Column< T > const & as () const
 
Dataframedataframe ()
 
Dataframe const & dataframe () const
 
bool empty () const
 
template<typename T >
T & get (size_type index)
 
template<typename T >
T const & get (size_type index) const
 
template<typename T >
T & get (std::string const &row_name)
 
template<typename T >
T const & get (std::string const &row_name) const
 
size_type index () const
 
template<typename T >
bool is () const
 
std::string const & name () const
 
size_type size () const
 

Public Types

using size_type = size_t
 

Protected Member Functions

 ColumnBase ()=delete
 
 ColumnBase (Dataframe &df, size_type index)
 
 ColumnBase (ColumnBase const &)=delete
 
 ColumnBase (ColumnBase &&)=delete
 
virtual void add_row_ ()=0
 
virtual void clear_ ()=0
 
virtual std::unique_ptr< ColumnBaseclone_ () const =0
 
virtual bool empty_ () const =0
 
ColumnBaseoperator= (ColumnBase const &)=delete
 
ColumnBaseoperator= (ColumnBase &&)=delete
 
virtual void remove_row_ (size_type row_index)=0
 
virtual void resize_ (size_type)=0
 
virtual size_type size_ () const =0
 

Friends

class Dataframe
 
void swap (Dataframe &lhs, Dataframe &rhs)
 

Constructor & Destructor Documentation

◆ ColumnBase() [1/4]

ColumnBase ( )
protecteddelete

◆ ColumnBase() [2/4]

ColumnBase ( Dataframe df,
size_type  index 
)
inlineprotected

Definition at line 95 of file containers/dataframe.hpp.

◆ ColumnBase() [3/4]

ColumnBase ( ColumnBase const &  )
protecteddelete

◆ ColumnBase() [4/4]

ColumnBase ( ColumnBase &&  )
protecteddelete

◆ ~ColumnBase()

virtual ~ColumnBase ( )
virtualdefault

Member Function Documentation

◆ add_row_()

virtual void add_row_ ( )
protectedpure virtual

◆ as() [1/2]

Column<T>& as ( )
inline

Definition at line 152 of file containers/dataframe.hpp.

◆ as() [2/2]

Column<T> const& as ( ) const
inline

Definition at line 158 of file containers/dataframe.hpp.

◆ clear_()

virtual void clear_ ( )
protectedpure virtual

◆ clone_()

virtual std::unique_ptr<ColumnBase> clone_ ( ) const
protectedpure virtual

◆ dataframe() [1/2]

Dataframe& dataframe ( )
inline

Definition at line 114 of file containers/dataframe.hpp.

◆ dataframe() [2/2]

Dataframe const& dataframe ( ) const
inline

Definition at line 119 of file containers/dataframe.hpp.

◆ empty()

bool empty ( ) const
inline

Definition at line 141 of file containers/dataframe.hpp.

◆ empty_()

virtual bool empty_ ( ) const
protectedpure virtual

◆ get() [1/4]

T& get ( size_type  index)
inline

Definition at line 171 of file containers/dataframe.hpp.

◆ get() [2/4]

T const& get ( size_type  index) const
inline

Definition at line 177 of file containers/dataframe.hpp.

◆ get() [3/4]

T& get ( std::string const &  row_name)
inline

Definition at line 183 of file containers/dataframe.hpp.

◆ get() [4/4]

T const& get ( std::string const &  row_name) const
inline

Definition at line 189 of file containers/dataframe.hpp.

◆ index()

size_type index ( ) const
inline

Definition at line 124 of file containers/dataframe.hpp.

◆ is()

bool is ( ) const
inline

Definition at line 164 of file containers/dataframe.hpp.

◆ name()

std::string const& name ( ) const
inline

Definition at line 130 of file containers/dataframe.hpp.

◆ operator=() [1/2]

ColumnBase& operator= ( ColumnBase const &  )
protecteddelete

◆ operator=() [2/2]

ColumnBase& operator= ( ColumnBase &&  )
protecteddelete

◆ remove_row_()

virtual void remove_row_ ( size_type  row_index)
protectedpure virtual

◆ resize_()

virtual void resize_ ( size_type  )
protectedpure virtual

◆ size()

size_type size ( ) const
inline

Definition at line 135 of file containers/dataframe.hpp.

◆ size_()

virtual size_type size_ ( ) const
protectedpure virtual

Friends And Related Function Documentation

◆ Dataframe

friend class Dataframe
friend

Definition at line 84 of file containers/dataframe.hpp.

◆ swap

void swap ( Dataframe lhs,
Dataframe rhs 
)
friend

Member Typedef Documentation

◆ size_type

using size_type = size_t

Definition at line 82 of file containers/dataframe.hpp.


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