template<class T = real_t>
class gismo::gsReadFile< T >
Reads an object from a data file, if such the requested object exists in the file.
- See also
- gsFileData
- Template Parameters
-
|
| gsReadFile (std::string const &fn) |
| Opens a file and reads an object into a smartpointer (uPtr).
|
|
| gsReadFile (std::string const &fn, gsMultiPatch< T > &result) |
| Opens a file and reads a gsMultiPatch object into result.
|
|
| gsReadFile (std::string const &fn, index_t id) |
| Opens a file and reads an object into a smartpointer (uPtr).
|
|
template<class Obj > |
| gsReadFile (std::string const &fn, Obj &result) |
| Opens a file and reads an object into result.
|
|
template<class Obj > |
| operator memory::shared_ptr< Obj > () |
| Allows to convert a gsReadFile to a sharead pointer.
|
|
| operator memory::unique_ptr< gsBasis< T > > () |
| Allows to read a file into a gsBasis.
|
|
| operator memory::unique_ptr< gsCurve< T > > () |
| Allows to read a file into a gsCurve.
|
|
| operator memory::unique_ptr< gsFunctionExpr< T > > () const |
| Allows to read a function expression.
|
|
| operator memory::unique_ptr< gsGeometry< T > > () |
| Allows to read a file into a gsGeometry.
|
|
| operator memory::unique_ptr< gsMesh< T > > () |
| Allows to read a gsMesh.
|
|
| operator memory::unique_ptr< gsMultiPatch< T > > () |
| Allows to convert a gsReadFile to a gsMultipatch.
|
|
| operator memory::unique_ptr< gsPde< T > > () |
| Allows to read a PDE.
|
|
| operator memory::unique_ptr< gsPlanarDomain< T > > () |
| Allows to read a file into a gsBasis.
|
|
| operator memory::unique_ptr< gsPoissonPde< T > > () |
| Read a poisson PDE.
|
|
template<class Obj > |
| operator memory::unique_ptr< Obj > () |
| Allows to read an Object from a file.
|
|
| operator std::vector< memory::unique_ptr< gsBasis< T > > > () |
| Allows to read a file into a vector of gsBasis.
|
|
template<class T = real_t>
Opens a file and reads an object into a smartpointer (uPtr).
This is used in conjuction with cast operators and depends on the type of object.
For gsBasis there exists a cast opterator to std::vector<gsBasis<T>::uPtr>.
If read fails, value inside smartpointer is null. Example of usage:
memory::unique_ptr< gsFunctionExpr > uPtr
Unique pointer for gsFunctionExpr.
Definition gsFunctionExpr.h:60
Reads an object from a data file, if such the requested object exists in the file.
Definition gsReadFile.h:43
#define gsInfo
Definition gsDebug.h:43
- Parameters
-