CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <DataStream.hh>
Definition at line 13 of file DataStream.hh.
Public Types | |
enum | DataStreamTraits { none = 0 , skipfail = (1u << 0) , failbit = (1u << 1) } |
Public Member Functions | |
DataStream (DataStreamTraits _traits=none) | |
virtual | ~DataStream () |
virtual DataStream & | operator<< (const std::string &) |
virtual DataStream & | operator<< (long) |
virtual DataStream & | operator<< (double) |
virtual DataStream & | operator<< (bool) |
virtual DataStream & | operator<< (char) |
virtual DataStream & | operator<< (jsonParser const &) |
DataStream & | operator<< (DataStream &(*F)(DataStream &)) |
DataStream & | operator<< (const std::function< DataStream &(DataStream &)> &F) |
virtual DataStream & | newline () |
DataStream & | operator<< (DataStreamTraits set_bits) |
bool | fail () const |
void | clear_fail () |
std::string const & | err_msg () const |
Static Public Member Functions | |
static DataStream & | endl (DataStream &_strm) |
static std::function< DataStream &(DataStream &_strm)> | failure (std::string const &_msg) |
Protected Member Functions | |
void | _set_err_msg (std::string const &_msg) |
bool | _skipfail () |
Private Attributes | |
int | m_traits |
std::string | m_err_msg |
Enumerator | |
---|---|
none | |
skipfail | |
failbit |
Definition at line 15 of file DataStream.hh.
|
inline |
Definition at line 22 of file DataStream.hh.
|
inlinevirtual |
Definition at line 24 of file DataStream.hh.
|
inlineprotected |
Definition at line 70 of file DataStream.hh.
|
inlineprotected |
Definition at line 72 of file DataStream.hh.
|
inline |
Definition at line 62 of file DataStream.hh.
|
inlinestatic |
Definition at line 17 of file DataStream.hh.
|
inline |
Definition at line 67 of file DataStream.hh.
|
inline |
Definition at line 60 of file DataStream.hh.
|
inlinestatic |
Definition at line 114 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::CountDataStream, CASM::LabeledMatrixXdDataStream, and CASM::MatrixXdDataStream.
Definition at line 53 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::CountDataStream, CASM::VectorDataStream< T, Promoter >, and CASM::ValueDataStream< T, Promoter >.
Definition at line 32 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::CountDataStream, CASM::VectorDataStream< T, Promoter >, and CASM::ValueDataStream< T, Promoter >.
Definition at line 34 of file DataStream.hh.
|
inline |
Definition at line 49 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::VectorDataStream< T, Promoter >, CASM::ValueDataStream< T, Promoter >, CASM::LabeledMatrixXdDataStream, and CASM::CountDataStream.
Definition at line 26 of file DataStream.hh.
|
inline |
Definition at line 47 of file DataStream.hh.
|
inline |
Definition at line 55 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::CountDataStream, CASM::VectorDataStream< T, Promoter >, CASM::ValueDataStream< T, Promoter >, and CASM::MatrixXdDataStream.
Definition at line 30 of file DataStream.hh.
|
inlinevirtual |
Definition at line 42 of file DataStream.hh.
|
inlinevirtual |
Reimplemented in CASM::CountDataStream, CASM::VectorDataStream< T, Promoter >, CASM::ValueDataStream< T, Promoter >, and CASM::MatrixXdDataStream.
Definition at line 28 of file DataStream.hh.
|
private |
Definition at line 76 of file DataStream.hh.
|
private |
Definition at line 75 of file DataStream.hh.