|
Grid 0.7.0
|
#include <BaseIO.h>
Public Member Functions | |
| Reader (void) | |
| virtual | ~Reader (void)=default |
| bool | push (const std::string &s) |
| void | pop (void) |
| template<typename U> | |
| std::enable_if< std::is_base_of< Serializable, U >::value, void >::type | read (const std::string &s, U &output) |
| template<typename U> | |
| std::enable_if<!std::is_base_of< Serializable, U >::value &&!EigenIO::is_tensor< U >::value, void >::type | read (const std::string &s, U &output) |
| template<typename U> | |
| void | read (const std::string &s, iScalar< U > &output) |
| template<typename U, int N> | |
| void | read (const std::string &s, iVector< U, N > &output) |
| template<typename U, int N> | |
| void | read (const std::string &s, iMatrix< U, N > &output) |
| template<typename ETensor> | |
| std::enable_if< EigenIO::is_tensor< ETensor >::value, void >::type | read (const std::string &s, ETensor &output) |
| template<typename ETensor> | |
| std::enable_if< EigenIO::is_tensor_fixed< ETensor >::value, void >::type | Reshape (ETensor &t, const std::array< typename ETensor::Index, ETensor::NumDimensions > &dims) |
| template<typename ETensor> | |
| std::enable_if< EigenIO::is_tensor_variable< ETensor >::value, void >::type | Reshape (ETensor &t, const std::array< typename ETensor::Index, ETensor::NumDimensions > &dims) |
| template<typename S> | |
| std::enable_if< EigenIO::is_scalar< S >::value, void >::type | copyScalars (S &Dest, const S *&pSource) |
| template<typename S> | |
| std::enable_if< isGridTensor< S >::value, void >::type | copyScalars (S &Dest, const typename GridTypeMapper< S >::scalar_type *&pSource) |
Protected Member Functions | |
| template<typename U> | |
| void | fromString (U &output, const std::string &s) |
Private Attributes | |
| T * | upcast |
| Reader::Reader | ( | void | ) |
|
virtualdefault |
| bool Reader::push | ( | const std::string & | s | ) |
Definition at line 379 of file BaseIO.h.
References upcast.
Referenced by Grid::push(), and Grid::push().
| void Reader::pop | ( | void | ) |
| std::enable_if<!std::is_base_of< Serializable, U >::value &&!EigenIO::is_tensor< U >::value, void >::type Grid::Reader< T >::read | ( | const std::string & | s, |
| U & | output ) |
References U.
| void Reader::read | ( | const std::string & | s, |
| iScalar< U > & | output ) |
Definition at line 409 of file BaseIO.h.
References upcast, and Grid::vecToTensor().
| void Reader::read | ( | const std::string & | s, |
| iVector< U, N > & | output ) |
Definition at line 419 of file BaseIO.h.
References upcast, and Grid::vecToTensor().
| void Reader::read | ( | const std::string & | s, |
| iMatrix< U, N > & | output ) |
Definition at line 429 of file BaseIO.h.
References upcast, and Grid::vecToTensor().
| std::enable_if< EigenIO::is_tensor< ETensor >::value, void >::type Reader::read | ( | const std::string & | s, |
| ETensor & | output ) |
Definition at line 440 of file BaseIO.h.
References copyScalars(), Reshape(), and upcast.
| std::enable_if< EigenIO::is_tensor_variable< ETensor >::value, void >::type Reader::Reshape | ( | ETensor & | t, |
| const std::array< typename ETensor::Index, ETensor::NumDimensions > & | dims ) |
| std::enable_if< EigenIO::is_tensor_variable< ETensor >::value, void >::type Grid::Reader< T >::Reshape | ( | ETensor & | t, |
| const std::array< typename ETensor::Index, ETensor::NumDimensions > & | dims ) |
|
inline |
|
inline |
|
private |