CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::LabeledMatrixXdDataStream Class Reference

#include <EigenDataStream.hh>

+ Inheritance diagram for CASM::LabeledMatrixXdDataStream:

Detailed Description

Definition at line 58 of file EigenDataStream.hh.

Public Types

enum  DataStreamTraits { none = 0 , skipfail = (1u << 0) , failbit = (1u << 1) }
 

Public Member Functions

 LabeledMatrixXdDataStream (DataStreamTraits _traits=none)
 
const std::vector< std::string > & labels () const
 
DataStreamoperator<< (const std::string &_str)
 
DataStreamnewline ()
 
DataStreamoperator<< (double _d)
 
DataStreamoperator<< (long _l)
 
virtual DataStreamoperator<< (bool)
 
virtual DataStreamoperator<< (char)
 
virtual DataStreamoperator<< (jsonParser const &)
 
DataStreamoperator<< (DataStream &(*F)(DataStream &))
 
DataStreamoperator<< (const std::function< DataStream &(DataStream &)> &F)
 
DataStreamoperator<< (DataStreamTraits set_bits)
 
const Eigen::MatrixXd & matrix ()
 
bool fail () const
 
void clear_fail ()
 
std::string const & err_msg () const
 

Static Public Member Functions

static DataStreamendl (DataStream &_strm)
 
static std::function< DataStream &(DataStream &_strm)> failure (std::string const &_msg)
 

Protected Member Functions

EigenIndex row () const
 
void _set_err_msg (std::string const &_msg)
 
bool _skipfail ()
 

Private Attributes

std::vector< std::string > m_labels
 
Eigen::MatrixXd m_matrix
 
EigenIndex m_row
 
EigenIndex m_col
 
int m_traits
 
std::string m_err_msg
 

Member Enumeration Documentation

◆ DataStreamTraits

Enumerator
none 
skipfail 
failbit 

Definition at line 15 of file DataStream.hh.

Constructor & Destructor Documentation

◆ LabeledMatrixXdDataStream()

CASM::LabeledMatrixXdDataStream::LabeledMatrixXdDataStream ( DataStreamTraits  _traits = none)
inline

Definition at line 60 of file EigenDataStream.hh.

Member Function Documentation

◆ _set_err_msg()

void CASM::DataStream::_set_err_msg ( std::string const &  _msg)
inlineprotectedinherited

Definition at line 70 of file DataStream.hh.

◆ _skipfail()

bool CASM::DataStream::_skipfail ( )
inlineprotectedinherited

Definition at line 72 of file DataStream.hh.

◆ clear_fail()

void CASM::DataStream::clear_fail ( )
inlineinherited

Definition at line 62 of file DataStream.hh.

◆ endl()

static DataStream& CASM::DataStream::endl ( DataStream _strm)
inlinestaticinherited

Definition at line 17 of file DataStream.hh.

◆ err_msg()

std::string const& CASM::DataStream::err_msg ( ) const
inlineinherited

Definition at line 67 of file DataStream.hh.

◆ fail()

bool CASM::DataStream::fail ( ) const
inlineinherited

Definition at line 60 of file DataStream.hh.

◆ failure()

std::function< DataStream &(DataStream &_strm)> CASM::DataStream::failure ( std::string const &  _msg)
inlinestaticinherited

Definition at line 114 of file DataStream.hh.

◆ labels()

const std::vector<std::string>& CASM::LabeledMatrixXdDataStream::labels ( ) const
inline

Definition at line 62 of file EigenDataStream.hh.

◆ matrix()

const Eigen::MatrixXd& CASM::MatrixXdDataStream::matrix ( )
inlineinherited

Definition at line 43 of file EigenDataStream.hh.

◆ newline()

DataStream& CASM::LabeledMatrixXdDataStream::newline ( )
inlinevirtual

Reimplemented from CASM::MatrixXdDataStream.

Definition at line 76 of file EigenDataStream.hh.

◆ operator<<() [1/9]

virtual DataStream& CASM::DataStream::operator<< ( bool  )
inlinevirtualinherited

◆ operator<<() [2/9]

virtual DataStream& CASM::DataStream::operator<< ( char  )
inlinevirtualinherited

◆ operator<<() [3/9]

DataStream& CASM::DataStream::operator<< ( const std::function< DataStream &(DataStream &)> &  F)
inlineinherited

Definition at line 49 of file DataStream.hh.

◆ operator<<() [4/9]

DataStream& CASM::LabeledMatrixXdDataStream::operator<< ( const std::string &  _str)
inlinevirtual

Reimplemented from CASM::DataStream.

Definition at line 64 of file EigenDataStream.hh.

◆ operator<<() [5/9]

DataStream& CASM::DataStream::operator<< ( DataStream &(*)(DataStream &)  F)
inlineinherited

Definition at line 47 of file DataStream.hh.

◆ operator<<() [6/9]

DataStream& CASM::DataStream::operator<< ( DataStreamTraits  set_bits)
inlineinherited

Definition at line 55 of file DataStream.hh.

◆ operator<<() [7/9]

DataStream& CASM::MatrixXdDataStream::operator<< ( double  _d)
inlinevirtualinherited

Reimplemented from CASM::DataStream.

Definition at line 16 of file EigenDataStream.hh.

◆ operator<<() [8/9]

virtual DataStream& CASM::DataStream::operator<< ( jsonParser const &  )
inlinevirtualinherited

Definition at line 42 of file DataStream.hh.

◆ operator<<() [9/9]

DataStream& CASM::MatrixXdDataStream::operator<< ( long  _l)
inlinevirtualinherited

Reimplemented from CASM::DataStream.

Definition at line 32 of file EigenDataStream.hh.

◆ row()

EigenIndex CASM::MatrixXdDataStream::row ( ) const
inlineprotectedinherited

Definition at line 46 of file EigenDataStream.hh.

Member Data Documentation

◆ m_col

EigenIndex CASM::MatrixXdDataStream::m_col
privateinherited

Definition at line 50 of file EigenDataStream.hh.

◆ m_err_msg

std::string CASM::DataStream::m_err_msg
privateinherited

Definition at line 76 of file DataStream.hh.

◆ m_labels

std::vector<std::string> CASM::LabeledMatrixXdDataStream::m_labels
private

Definition at line 90 of file EigenDataStream.hh.

◆ m_matrix

Eigen::MatrixXd CASM::MatrixXdDataStream::m_matrix
privateinherited

Definition at line 49 of file EigenDataStream.hh.

◆ m_row

EigenIndex CASM::MatrixXdDataStream::m_row
privateinherited

Definition at line 50 of file EigenDataStream.hh.

◆ m_traits

int CASM::DataStream::m_traits
privateinherited

Definition at line 75 of file DataStream.hh.


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