|
Grid 0.7.0
|
#include <BaseIO.h>
Public Member Functions | |
| Writer (void) | |
| virtual | ~Writer (void)=default |
| void | push (const std::string &s) |
| void | pop (void) |
| template<typename U> | |
| std::enable_if< std::is_base_of< Serializable, U >::value >::type | write (const std::string &s, const U &output) |
| template<typename U> | |
| std::enable_if<!std::is_base_of< Serializable, U >::value &&!EigenIO::is_tensor< U >::value >::type | write (const std::string &s, const U &output) |
| template<typename U> | |
| void | write (const std::string &s, const iScalar< U > &output) |
| template<typename U, int N> | |
| void | write (const std::string &s, const iVector< U, N > &output) |
| template<typename U, int N> | |
| void | write (const std::string &s, const iMatrix< U, N > &output) |
| template<typename ETensor> | |
| std::enable_if< EigenIO::is_tensor< ETensor >::value >::type | write (const std::string &s, const ETensor &output) |
| template<typename S> | |
| std::enable_if< EigenIO::is_scalar< S >::value, void >::type | copyScalars (S *&pCopy, const S &Source) |
| template<typename S> | |
| std::enable_if< isGridTensor< S >::value, void >::type | copyScalars (typename GridTypeMapper< S >::scalar_type *&pCopy, const S &Source) |
| void | scientificFormat (const bool set) |
| bool | isScientific (void) |
| void | setPrecision (const unsigned int prec) |
| unsigned int | getPrecision (void) |
Private Attributes | |
| T * | upcast |
| bool | scientific_ |
| unsigned int | prec_ |
| Writer::Writer | ( | void | ) |
|
virtualdefault |
| void Writer::push | ( | const std::string & | s | ) |
Definition at line 246 of file BaseIO.h.
References upcast.
Referenced by Grid::push(), and Grid::push().
| void Writer::pop | ( | void | ) |
| std::enable_if<!std::is_base_of< Serializable, U >::value &&!EigenIO::is_tensor< U >::value >::type Grid::Writer< T >::write | ( | const std::string & | s, |
| const U & | output ) |
References U.
| void Writer::write | ( | const std::string & | s, |
| const iScalar< U > & | output ) |
Definition at line 277 of file BaseIO.h.
References Grid::tensorToVec(), and upcast.
| void Writer::write | ( | const std::string & | s, |
| const iVector< U, N > & | output ) |
Definition at line 284 of file BaseIO.h.
References Grid::tensorToVec(), and upcast.
| void Writer::write | ( | const std::string & | s, |
| const iMatrix< U, N > & | output ) |
Definition at line 291 of file BaseIO.h.
References Grid::tensorToVec(), and upcast.
| std::enable_if< EigenIO::is_tensor< ETensor >::value, void >::type Writer::write | ( | const std::string & | s, |
| const ETensor & | output ) |
Definition at line 300 of file BaseIO.h.
References copyScalars(), Grid::EigenIO::getFirstScalar(), and upcast.
|
inline |
|
inline |
| void Writer::scientificFormat | ( | const bool | set | ) |
Definition at line 348 of file BaseIO.h.
References scientific_.
| bool Writer::isScientific | ( | void | ) |
Definition at line 354 of file BaseIO.h.
References scientific_.
| void Writer::setPrecision | ( | const unsigned int | prec | ) |
| unsigned int Writer::getPrecision | ( | void | ) |
|
private |
|
private |
Definition at line 171 of file BaseIO.h.
Referenced by isScientific(), and scientificFormat().
|
private |
Definition at line 172 of file BaseIO.h.
Referenced by getPrecision(), and setPrecision().