Base type for an object to write out data to a file. More...
#include <ptems/io/datafilewriter.hpp>
Public Types | |
| template<typename T > | |
| using | ContinuousFunction = std::function< T(const Vector< DIM > &)> |
| Type used for an argument denoting a continuous function. More... | |
| template<typename T > | |
| using | PiecewiseFunction = std::function< T(std::size_t, const Vector< DIM > &)> |
| Type used for an argument denoting a piecewise function on a mesh. More... | |
| template<typename T > | |
| using | PiecewiseConstantFunction = std::function< T(std::size_t)> |
| Type used for an argument denoting a piecewise constant function on a mesh. More... | |
Public Member Functions | |
| virtual | operator bool () const |
| Checks if the writer is still valid. More... | |
| virtual bool | HasError () const =0 |
| Checks if the writer is invalid (as error) More... | |
| template<typename T > | |
| void | OutputFunction (const std::string &name, const T &func) |
| Write out a continuous function. More... | |
| virtual void | OutputFunction (const std::string &name, const ContinuousFunction< int64_t > &func)=0 |
| Write out a continuous function of integer values. More... | |
| virtual void | OutputFunction (const std::string &name, const ContinuousFunction< double > &func)=0 |
| Write out a continuous function of double values. More... | |
| virtual void | OutputFunction (const std::string &name, const ContinuousFunction< std::complex< double >> func)=0 |
| Write out a continuous function of complex values. More... | |
| template<typename T > | |
| void | OutputPiecewiseFunction (const std::string &name, const T &func, bool continuous) |
| Write out a continuous function. More... | |
| virtual void | OutputPiecewiseFunction (const std::string &name, const PiecewiseFunction< int64_t > &func, bool continuous)=0 |
| Write out a piecewise function of integer values which is defined over a mesh (continuous on each element) More... | |
| virtual void | OutputPiecewiseFunction (const std::string &name, const PiecewiseFunction< double > &func, bool continuous)=0 |
| Write out a piecewise function of double values which is defined over a mesh (continuous on each element) More... | |
| virtual void | OutputPiecewiseFunction (const std::string &name, const PiecewiseFunction< std::complex< double >> &func, bool continuous)=0 |
| Write out a piecewise function of complex values which is defined over a mesh (continuous on each element) More... | |
| template<typename T > | |
| void | OutputPiecewiseConstantFunction (const std::string &name, const T &func) |
| Write out a continuous function. More... | |
| virtual void | OutputPiecewiseConstantFunction (const std::string &name, const PiecewiseConstantFunction< int64_t > &func)=0 |
| Write out a piecewise constant function of integer values which is defined over a mesh (constant for each each element) More... | |
| virtual void | OutputPiecewiseConstantFunction (const std::string &name, const PiecewiseConstantFunction< double > &func)=0 |
| Write out a piecewise constant function of double values which is defined over a mesh (constant for each each element) More... | |
| virtual void | OutputPiecewiseConstantFunction (const std::string &name, const PiecewiseConstantFunction< std::complex< double >> &func)=0 |
| Write out a piecewise constant function of complex values which is defined over a mesh (constant for each each element) More... | |
Base type for an object to write out data to a file.
| using ptems::DataFileWriter< DIM >::ContinuousFunction = std::function<T(const Vector<DIM>&)> |
Type used for an argument denoting a continuous function.
| T | The return type of the function |
| using ptems::DataFileWriter< DIM >::PiecewiseConstantFunction = std::function<T(std::size_t)> |
Type used for an argument denoting a piecewise constant function on a mesh.
| T | The return type of the function |
| using ptems::DataFileWriter< DIM >::PiecewiseFunction = std::function<T(std::size_t, const Vector<DIM>&)> |
Type used for an argument denoting a piecewise function on a mesh.
| T | The return type of the function |
|
pure virtual |
Checks if the writer is invalid (as error)
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
inlineexplicitvirtual |
Checks if the writer is still valid.
|
pure virtual |
Write out a continuous function of double values.
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a continuous function of integer values.
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a continuous function of complex values.
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
inline |
Write out a continuous function.
| T | Type of the functor |
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
|
pure virtual |
Write out a piecewise constant function of double values which is defined over a mesh (constant for each each element)
| name | Name of the function |
| func | Functor which takes an element index and returns the constant function value for that element |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a piecewise constant function of integer values which is defined over a mesh (constant for each each element)
| name | Name of the function |
| func | Functor which takes an element index and returns the constant function value for that element |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a piecewise constant function of complex values which is defined over a mesh (constant for each each element)
| name | Name of the function |
| func | Functor which takes an element index and returns the constant function value for that element |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
inline |
Write out a continuous function.
| T | Type of the functor |
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
|
pure virtual |
Write out a piecewise function of double values which is defined over a mesh (continuous on each element)
| name | Name of the function |
| func | Functor which takes an element index and a point in the element's local coordinate system and returns the function value at that point |
| continuous | Specifies if the function is continuous |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a piecewise function of integer values which is defined over a mesh (continuous on each element)
| name | Name of the function |
| func | Functor which takes an element index and a point in the element's local coordinate system and returns the function value at that point |
| continuous | Specifies if the function is continuous |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
pure virtual |
Write out a piecewise function of complex values which is defined over a mesh (continuous on each element)
| name | Name of the function |
| func | Functor which takes an element index and a point in the element's local coordinate system and returns the function value at that point |
| continuous | Specifies if the function is continuous |
Implemented in ptems::VTKLegacyFileWriter< DIM >, and ptems::MatlabMATFileWriter< DIM >.
|
inline |
Write out a continuous function.
| T | Type of the functor |
| name | Name of the function |
| func | Functor which takes a point and returns the function value at that point |
| continuous | Specifies if the function is continuous |