graphics::MatlabElasticityGraphics Class Reference
#include <matlabElasticityGraphics.hh>
Public Member Functions | |
template<class T > | |
void | add (const T &u, const std::string varName, enum matio_compression compress=MAT_COMPRESSION_NONE) throw (MatfileIOError) |
Method to add various objects to a current open MatfileIO. More... | |
template<class F , class G > | |
void | addFunction (const concepts::Space< G > &spc, const std::string name, const concepts::ElementFormula< F, G > &frm) |
Adds a solution vector to the current matfile. More... | |
template<class F , class G > | |
void | addSolution (const concepts::Space< G > &spc, const std::string name, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0) |
Adds a solution vector to the current matfile. More... | |
void | assertCmplx (const std::string &varName) const throw (MatfileIOError) |
Throws an exception if the variable is not (at least) a complex. More... | |
void | assertExistence (const std::string &varName) const throw (MatfileIOError) |
Throws an exception if the variable does not exist. More... | |
void | assertQuadratic (const std::string &varName) const throw (MatfileIOError) |
Throws an exception if the variable is not a quadratic rank 2 object. More... | |
void | assertVector (const std::string &varName) const throw (MatfileIOError) |
Throws an exception if the variable has no vector struct, that is at most one dimension is larger than one. More... | |
void | clear () |
Method to remove all variable in the current *.mat-file. More... | |
void | close () |
Method to close the current *.mat-file. More... | |
bool | exists (const std::string &varName) const |
Returns true if the variable /c varName exists, false otherwise. More... | |
std::string | filename () const |
Returns the name of the current open *.mat-file. More... | |
template<class T > | |
void | get (T &u, const std::string varName) throw (MatfileIOError, MissingFeature) |
Method to get various objects out of the current open MatfileIO. More... | |
bool | isCmplx (const std::string &varName) const |
Return true if the variable /c varName is of type double complex. More... | |
bool | isDense (const std::string &varName) const |
Returns true if the variable /c varName is dense, else 0. More... | |
bool | isEmpty () const |
Routine to check if a *.mat-file is empty, i.e. More... | |
bool | isInt (const std::string &varName) const |
Returns true if the variable /c varname is int, else 0. More... | |
bool | isOpen () const |
Routine to check if a *.mat-file is currently open. More... | |
bool | isReal (const std::string &varName) const |
Return true if the variable /c varName is of type double. More... | |
bool | isScalar (const std::string &varName) const |
Return true if the variable /c varName is a scalar. More... | |
bool | isSparse (const std::string &varName) const |
Returns true if the variable /c varName is sparse, else 0. More... | |
bool | isUint (const std::string &varName) const |
Returns true if the variable /c varname is uint, else 0. More... | |
uint | lengthVector (const std::string &varName) const |
Return its length if /c varName is a vector, 0 otherwise. More... | |
template<class G , class F > | |
MatlabElasticityGraphics (const concepts::Space< G > &spc, const std::string &filename, const concepts::Vector< F > &sol_u1, const concepts::Vector< F > &sol_u2, F lambda, F mu, bool plain_stress) | |
void | overWrite (bool toOverWrite) |
Method with that u can secure already existing variables in a current open *.mat-file. More... | |
bool | remove (const std::string varName) |
Removes the requested variable named 'str' if it exist in the current matfile. More... | |
void | reopen () |
Method to reopen the *.mat-file that was once opened with the constructor. More... | |
virtual | ~MatlabElasticityGraphics () |
Static Public Attributes | |
static uint | noPoints |
Protected Member Functions | |
template<class G > | |
void | addSpace_ (const concepts::Space< G > &spc) |
Adds informations of a given Space to the matfile. More... | |
template<class F , class G > | |
concepts::RCP< concepts::ElementMatrix< typename concepts::Datatype< F >::type > > | getFunction (const concepts::Space< G > &spc, const concepts::ElementFormula< F, G > &frm) |
Returns a vector with the value of the function on the quadrature-points of a given space using the given concepts::ElementFormula . More... | |
DenseMatrixCollection< Real > | getMesh (concepts::Mesh &msh, const uint points=5) |
Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given mesh. More... | |
template<class F , class G > | |
concepts::RCP< concepts::ElementMatrix< F > > | getSolution (const concepts::Space< G > &spc, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0) |
Returns a vector with the value of the solution on the quadrature-points of a given space using a given coefficient vector. More... | |
template<class G > | |
DenseMatrixCollection< G > | getSpace (const concepts::Space< G > &spc) |
Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given space. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Gives an overview about the variables that are in a current open *.mat-file. More... | |
template<class G > | |
void | storeData_ (DenseMatrixCollection< G > &dense_ptr_) |
Stores data hold by dense_ptr . More... | |
Protected Attributes | |
uint | data_ |
Information which data should be stored. More... | |
Private Member Functions | |
template<uint dim> | |
void | add_ (const Array< Point< Cmplx, dim > > &array, const std::string &varName, enum matio_compression compress) |
Add routine for a complex concepts::Array<concepts::Point> More... | |
template<uint dim> | |
void | add_ (const Array< Point< Real, dim > > &array, const std::string &varName, enum matio_compression compress) |
Add routine for a real concepts::Array<concepts::Point> More... | |
template<class T > | |
void | add_ (const Array< T > &array, const std::string &varName, enum matio_compression compress) |
Add routine for an concepts::Array. More... | |
void | add_ (const Cmplx &scalar, const std::string &varName, enum matio_compression compress) |
Add routine for a cmplx scalar. More... | |
template<class T > | |
void | add_ (const DiagonalMatrix< T > &diagM, const std::string &varName, enum matio_compression compress) |
adds a DiagonalMatrix to the current *.mat file. More... | |
template<class T > | |
void | add_ (const ElementMatrix< T > &dense, const std::string &varName, enum matio_compression compress) |
Add routine for an concepts::ElementMatrix, i.e. More... | |
void | add_ (const int scalar, const std::string &str, enum matio_compression compress) |
Add routine for int scalar. More... | |
template<uint dim> | |
void | add_ (const Mapping< Cmplx, dim > &map, const std::string &varName, enum matio_compression compress) |
Add routine for a cmplx concepts::Mapping. More... | |
template<uint dim> | |
void | add_ (const Mapping< Real, dim > &map, const std::string &varName, enum matio_compression compress) |
Add routine for a real concepts::Mapping. More... | |
template<uint dim> | |
void | add_ (const Point< Cmplx, dim > &point, const std::string &varName, enum matio_compression compress) |
Add routine for a cmplx concepts::Point. More... | |
template<uint dim> | |
void | add_ (const Point< Real, dim > &point, const std::string &varName, enum matio_compression compress) |
Add routine for a real concepts::Point. More... | |
void | add_ (const Real &scalar, const std::string &varName, enum matio_compression compress) |
Add routine for a real scalar. More... | |
template<class T > | |
void | add_ (const SparseMatrix< T > &sparseM, const std::string &varName, enum matio_compression compress) |
adds a SparseMatrix to the current *.mat file. More... | |
template<class T > | |
void | add_ (const std::vector< T > &vec, const std::string &varName, enum matio_compression compress) |
Add routine for a std::vector, i.e. More... | |
void | add_ (const uint scalar, const std::string &str, enum matio_compression compress) |
Add routine for int scalar. More... | |
template<class T > | |
void | add_ (const Vector< T > &vec, const std::string &varName, enum matio_compression compress) |
Add routine for a concepts::Vector. More... | |
void | assertDiagStructur_ (matvar_t *&var) const throw (MatfileIOError) |
throws an exception if the variable has no diagonal structure, that is if it is a dense/sparse matrix that is not diagonal (has offdiagonal non zero entries), if it has no vector structur. More... | |
void | assertDimension_ (uint dim, uint vardim) const throw (MatfileIOError) |
throws an exception if the dimensions mismatch, application for Mapping/ Points More... | |
void | assertOpenFile_ (mat_t *file) const throw (MatfileIOError) |
throws an exception if mat-file could not be opened More... | |
void | assertQuadratic_ (matvar_t *&var) const throw (MatfileIOError) |
throws an exception if the variable is not rank 2 and quadratic. More... | |
void | assertScalar_ (matvar_t *&var) const throw (MatfileIOError) |
throws an exception if the variable has no Scalar structure. More... | |
void | assertVar_ (mat_sparse_t *var) const throw (MatfileIOError) |
Throws an exception if the matvar sparse pointer is Null use i.e. More... | |
void | assertVar_ (matvar_t *var) const throw (MatfileIOError) |
Throws an exception if the matvar pointer is Null use i.e. More... | |
void | assertVector_ (matvar_t *&var) const throw (MatfileIOError) |
throws an exception if the variable has no Vector_structur. More... | |
void | createDenseCmplx_ (uint m, uint n, const std::string &varName, Real *&realP, Real *&imgP) |
Creates the mat variable for a dense complex structure and sets pointers to the real and the imaginary part of the data of the variable. More... | |
void | createDenseReal_ (uint m, uint n, const std::string &varName, Real *&dataAccP) |
Creates the mat variable for a dense real structure and sets a pointer to the data of the variable. More... | |
template<class T > | |
void | get_ (Array< T > &arr, matvar_t *&matvar) |
Getter routine for a concepts::Array. More... | |
void | get_ (Cmplx &scalar, matvar_t *&matvar) |
Getter routine for a cmplx scalar. More... | |
template<class T > | |
void | get_ (DenseMatrix< T > &dense, matvar_t *&matvar) |
Getter routine for a concepts::DenseMatrix. More... | |
template<class T > | |
void | get_ (DiagonalMatrix< T > &sparse, matvar_t *&matvar) |
Getter routine for a concepts::DiagonalMatrix This methods works iff matvar-data has vector structur or is sparse/dense matrix that is diagonal. More... | |
template<class T > | |
void | get_ (ElementMatrix< T > &dense, matvar_t *&matvar) |
Getter routine for a concepts::ElementMatrix. More... | |
void | get_ (int &scalar, matvar_t *&matvar) throw (MatfileIOError) |
Getter routine for int scalar. More... | |
template<uint dim> | |
void | get_ (Mapping< Cmplx, dim > &map, matvar_t *&matvar) |
Getter routine for a cmplx concepts::Mapping. More... | |
template<uint dim> | |
void | get_ (Mapping< Real, dim > &map, matvar_t *&matvar) |
Getter routine for a real concepts::Mapping. More... | |
template<uint dim> | |
void | get_ (Point< Cmplx, dim > &point, matvar_t *&matvar) |
Getter routine for a cmplx concepts::Point. More... | |
template<uint dim> | |
void | get_ (Point< Real, dim > &point, matvar_t *&matvar) |
Getter routine for a real concepts::Point. More... | |
void | get_ (Real &scalar, matvar_t *&matvar) |
Getter routine for a real scalar. More... | |
template<class T > | |
void | get_ (SparseMatrix< T > &sparse, matvar_t *&matvar) |
Getter routine for a concepts::SparseMatrix. More... | |
template<class T > | |
void | get_ (std::vector< T > &seq, matvar_t *&matvar) |
Getter routine for an std::vector, i.e. More... | |
template<class T > | |
void | get_ (std::vector< Vector< T > > &seq, matvar_t *&matvar) |
Getter routine for an std::vector<concepts::Vector>, i.e. More... | |
void | get_ (uint &scalar, matvar_t *&matvar) throw (MatfileIOError) |
Getter routine for uint scalar. More... | |
template<class T > | |
void | get_ (Vector< T > &vec, matvar_t *&matvar) |
Getter routine for a concepts::Vector. More... | |
bool | hasDiagStructur_ (matvar_t *var) const |
test if object has diagonal confortable structure, that is diagonal square matrix or vector More... | |
bool | isCmplx_ (matvar_t *var) const |
Returns 1 if the variable's field is Complex, otherwise 0. More... | |
bool | isDense_ (matvar_t *var) const |
Returns true if the variable is a dense Matlab object. More... | |
bool | isInt_ (matvar_t *var) const |
Returns true if the variable is a int matlab object. More... | |
bool | isQuadratic_ (matvar_t *var) const |
test if the requested variable is quadratic and a 2D Tensor (used for Mapping) More... | |
bool | isReal_ (matvar_t *var) const |
Returns 1 if the variables field is Real, otherwise 0. More... | |
bool | isScalar_ (matvar_t *var) const |
test if the requested variable is scalar. More... | |
bool | isSparse_ (matvar_t *var) const |
Returns true if the variable is a Matlab sparse array, 0 else. More... | |
bool | isUint_ (matvar_t *var) const |
Returns true if the variable is a uint matlab object. More... | |
bool | isVector_ (matvar_t *var) const |
tests if object has vector size, i.e. More... | |
uint | lengthVector_ (matvar_t *var) const |
returns the length of a vector structure, else 0 More... | |
std::string | matfileEnding_ (const std::string &filename) |
adds the ending .mat if needed More... | |
void | wrongField_ (matvar_t *&var) const throw () |
void | wrongStructure_ (matvar_t *&var) const throw () |
throws an exception for wrong structure. More... | |
Private Attributes | |
std::string | fileName_ |
mat_t * | mat_ |
matvar_t * | matvar_ |
concepts::Set< std::string > | matvar_str_ |
concepts::Set< std::string > | matvar_str_cur_ |
bool | overWrite_ |
Detailed Description
- Examples
- elasticity2D_tutorial.cc.
Definition at line 15 of file matlabElasticityGraphics.hh.
Constructor & Destructor Documentation
◆ MatlabElasticityGraphics()
graphics::MatlabElasticityGraphics::MatlabElasticityGraphics | ( | const concepts::Space< G > & | spc, |
const std::string & | filename, | ||
const concepts::Vector< F > & | sol_u1, | ||
const concepts::Vector< F > & | sol_u2, | ||
F | lambda, | ||
F | mu, | ||
bool | plain_stress | ||
) |
Definition at line 32 of file matlabElasticityGraphics.hh.
◆ ~MatlabElasticityGraphics()
|
inlinevirtual |
Definition at line 25 of file matlabElasticityGraphics.hh.
Member Function Documentation
◆ add()
|
inlineinherited |
Method to add various objects to a current open MatfileIO.
Objects that can be added are:
ElementMatrix<T>
(i.e. DenseMatrix<T>)Array<Point<T, dim>>
DiagonalMatrix<T>
SparseMatrix<T>
Array<T>
,std::vector<T>
(i.e. Sequence<T>)Vector<T>
,Point<T, dim>
,Mapping<T, dim>
,Scalars
(Real, Cmplx)
This add routine controls the Input quantities and throws an exception, if the MatfileIO instance is not open; the Input class type T
is not supported (yet); a variable with the same name varName
is added in the current MatfileIO instance, before closing it; a variable with the same name varName
already exists in the *.mat-file and is set not to be rewritable. If no error occurs the desired object is added.
- Parameters
-
u The object you want to add to the current open *.mat-file varName Name of the variable. compress MAT_COMPRESSION_NONE / MAT_COMPRESSION_ZLIB
- Examples
- matfileTutorial.cc.
Definition at line 160 of file matfileIO.hh.
◆ add_() [1/16]
|
privateinherited |
Add routine for a complex concepts::Array<concepts::Point>
◆ add_() [2/16]
|
privateinherited |
Add routine for a real concepts::Array<concepts::Point>
◆ add_() [3/16]
|
privateinherited |
Add routine for an concepts::Array.
◆ add_() [4/16]
|
privateinherited |
Add routine for a cmplx scalar.
◆ add_() [5/16]
|
privateinherited |
adds a DiagonalMatrix to the current *.mat file.
It is added as sparse matrix in the matfile.
◆ add_() [6/16]
|
privateinherited |
Add routine for an concepts::ElementMatrix, i.e.
◆ add_() [7/16]
|
privateinherited |
Add routine for int scalar.
◆ add_() [8/16]
|
privateinherited |
Add routine for a cmplx concepts::Mapping.
◆ add_() [9/16]
|
privateinherited |
Add routine for a real concepts::Mapping.
◆ add_() [10/16]
|
privateinherited |
Add routine for a cmplx concepts::Point.
◆ add_() [11/16]
|
privateinherited |
Add routine for a real concepts::Point.
◆ add_() [12/16]
|
privateinherited |
Add routine for a real scalar.
◆ add_() [13/16]
|
privateinherited |
adds a SparseMatrix to the current *.mat file.
◆ add_() [14/16]
|
privateinherited |
Add routine for a std::vector, i.e.
◆ add_() [15/16]
|
privateinherited |
Add routine for int scalar.
◆ add_() [16/16]
|
privateinherited |
Add routine for a concepts::Vector.
◆ addFunction()
|
inherited |
Adds a solution vector to the current matfile.
- Parameters
-
spc The space from which the solution vector was generated name The name of the variable, e.g. "frm" frm The function represented by an element formula
Definition at line 191 of file matlabBinaryGraphics.hh.
◆ addSolution()
|
inherited |
Adds a solution vector to the current matfile.
- Parameters
-
spc The space from which the solution vector was generated name The name of the variable, e.g. "u0" sol The solution vector fun The type of vector you need (i.e. values, gradient, Laplacian etc.), default argument is Values
- Examples
- howToGetStarted.cc, and parallelizationTutorial.cc.
Definition at line 178 of file matlabBinaryGraphics.hh.
◆ addSpace_()
|
protectedinherited |
Adds informations of a given Space to the matfile.
- Parameters
-
spc The space that should be stored
Definition at line 201 of file matlabBinaryGraphics.hh.
◆ assertCmplx()
|
inherited |
Throws an exception if the variable is not (at least) a complex.
◆ assertDiagStructur_()
|
privateinherited |
throws an exception if the variable has no diagonal structure, that is if it is a dense/sparse matrix that is not diagonal (has offdiagonal non zero entries), if it has no vector structur.
It also frees the matvar_t pointer.
◆ assertDimension_()
|
privateinherited |
throws an exception if the dimensions mismatch, application for Mapping/ Points
◆ assertExistence()
|
inherited |
Throws an exception if the variable does not exist.
◆ assertOpenFile_()
|
privateinherited |
throws an exception if mat-file could not be opened
◆ assertQuadratic()
|
inherited |
Throws an exception if the variable is not a quadratic rank 2 object.
◆ assertQuadratic_()
|
privateinherited |
throws an exception if the variable is not rank 2 and quadratic.
It also frees the matvar_t pointer
◆ assertScalar_()
|
privateinherited |
throws an exception if the variable has no Scalar structure.
It also frees the matvar_t pointer.
◆ assertVar_() [1/2]
|
privateinherited |
Throws an exception if the matvar sparse pointer is Null use i.e.
if creating one fails, or reading fails
◆ assertVar_() [2/2]
|
privateinherited |
Throws an exception if the matvar pointer is Null use i.e.
if creating one fails, or reading fails
◆ assertVector()
|
inherited |
Throws an exception if the variable has no vector struct, that is at most one dimension is larger than one.
◆ assertVector_()
|
privateinherited |
throws an exception if the variable has no Vector_structur.
It also frees the matvar_t pointer
◆ clear()
|
inherited |
Method to remove all variable in the current *.mat-file.
◆ close()
|
inherited |
Method to close the current *.mat-file.
This method has the effect to finish the writing to the *.mat-file. It may be used in combination with reopen(). If you don't close the current MatfileIO-object the deconstructor will do it anyway.
- Examples
- matfileTutorial.cc.
◆ createDenseCmplx_()
|
privateinherited |
Creates the mat variable for a dense complex structure and sets pointers to the real and the imaginary part of the data of the variable.
- Parameters
-
m,n size of the input-Argument varName name of the variable that will be created realP data access pointer to the real part of the data of the variable imgP data access pointer to the imaginary part of the data of the variable
◆ createDenseReal_()
|
privateinherited |
Creates the mat variable for a dense real structure and sets a pointer to the data of the variable.
- Parameters
-
m,n size of the input-Argument varName name of the variable that will be created dataAccP data access pointer to the data of the variable
◆ exists()
|
inherited |
Returns true if the variable /c varName exists, false otherwise.
It throws an exception if no file is opened currently.
- Examples
- matfileTutorial.cc.
◆ filename()
|
inlineinherited |
Returns the name of the current open *.mat-file.
Definition at line 304 of file matfileIO.hh.
◆ get()
|
inlineinherited |
Method to get various objects out of the current open MatfileIO.
Objects that can be gained:
ElementMatrix<T>
(i.e. DenseMatrix<T>)DiagonalMatrix<T>
SparseMatrix<T>
Array<T>
,std::vector<T>
(i.e.Sequence<T>
)std::vector<Vector<T>
> (i.e.Sequence<Vector< T >
>)Vector<T>
,Point<T, dim>
,Mapping<T, dim>
,Scalars
(Real, Cmplx)
This get routine controlls the Input quantities and throws an exception, if no variable named varName
exists in the current open *.mat-file; if the field of the requested variable in the *.mat-file and the field of u
differs, that is concepts::Real or concepts::Cmplx; if the class of u
is not supported (yet). Matlab's multidimensional arrays with rank > 2 are not supported to be read out of a *.mat-file (yet). If no error occurs the desired object gets filled. The object u
does not need to be preallocated, it gets resized due to the *.mat-file informations.
- Parameters
-
u The object you want to get out of the current open *.mat-file varName Name of the requested variable.
- Examples
- matfileTutorial.cc.
Definition at line 233 of file matfileIO.hh.
◆ get_() [1/16]
|
privateinherited |
Getter routine for a concepts::Array.
◆ get_() [2/16]
|
privateinherited |
Getter routine for a cmplx scalar.
◆ get_() [3/16]
|
privateinherited |
Getter routine for a concepts::DenseMatrix.
◆ get_() [4/16]
|
privateinherited |
Getter routine for a concepts::DiagonalMatrix This methods works iff matvar-data has vector structur or is sparse/dense matrix that is diagonal.
If the matrices have off diagonal non zero values that will be asserted If the sparse matrix has diagonal entrie zero, then there are less data entries than the dimension of the matrix, therefore a CCS inverse routine is involved
◆ get_() [5/16]
|
privateinherited |
Getter routine for a concepts::ElementMatrix.
◆ get_() [6/16]
|
privateinherited |
Getter routine for int scalar.
◆ get_() [7/16]
|
privateinherited |
Getter routine for a cmplx concepts::Mapping.
◆ get_() [8/16]
|
privateinherited |
Getter routine for a real concepts::Mapping.
◆ get_() [9/16]
|
privateinherited |
Getter routine for a cmplx concepts::Point.
◆ get_() [10/16]
|
privateinherited |
Getter routine for a real concepts::Point.
◆ get_() [11/16]
|
privateinherited |
Getter routine for a real scalar.
◆ get_() [12/16]
|
privateinherited |
Getter routine for a concepts::SparseMatrix.
◆ get_() [13/16]
|
privateinherited |
Getter routine for an std::vector, i.e.
◆ get_() [14/16]
|
privateinherited |
Getter routine for an std::vector<concepts::Vector>, i.e.
concepts::Sequence<concepts::Vector>
◆ get_() [15/16]
|
privateinherited |
Getter routine for uint scalar.
◆ get_() [16/16]
|
privateinherited |
Getter routine for a concepts::Vector.
◆ getFunction()
|
protectedinherited |
Returns a vector with the value of the function on the quadrature-points of a given space using the given concepts::ElementFormula
.
- Parameters
-
spc The space on which the Element Formula is defined frm The ElementFormula of the function that should be plotted
Definition at line 194 of file denseMatrixGraphics.hh.
◆ getMesh()
|
protectedinherited |
Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given mesh.
- Parameters
-
msh The mesh dim The dimension of the mesh
◆ getSolution()
|
protectedinherited |
Returns a vector with the value of the solution on the quadrature-points of a given space using a given coefficient vector.
- Parameters
-
spc The space from which the solution vector was generated sol The solution vector fun Function of the solution (e.g. solution itself, its gradient, it's Laplacien etc.)
Definition at line 130 of file denseMatrixGraphics.hh.
◆ getSpace()
|
protectedinherited |
Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given space.
- Parameters
-
spc The space dim The dimension of the space
Definition at line 171 of file denseMatrixGraphics.hh.
◆ hasDiagStructur_()
|
privateinherited |
test if object has diagonal confortable structure, that is diagonal square matrix or vector
◆ info()
|
protectedvirtualinherited |
Gives an overview about the variables that are in a current open *.mat-file.
Reimplemented from concepts::OutputOperator.
◆ isCmplx()
|
inherited |
Return true if the variable /c varName is of type double complex.
- Examples
- matfileTutorial.cc.
◆ isCmplx_()
|
inlineprivateinherited |
Returns 1 if the variable's field is Complex, otherwise 0.
Definition at line 696 of file matfileIO.hh.
◆ isDense()
|
inherited |
Returns true if the variable /c varName is dense, else 0.
- Examples
- matfileTutorial.cc.
◆ isDense_()
|
inlineprivateinherited |
Returns true if the variable is a dense Matlab object.
Definition at line 710 of file matfileIO.hh.
◆ isEmpty()
|
inlineinherited |
Routine to check if a *.mat-file is empty, i.e.
does not contain any variables.
Definition at line 288 of file matfileIO.hh.
◆ isInt()
|
inherited |
Returns true if the variable /c varname is int, else 0.
- Examples
- matfileTutorial.cc.
◆ isInt_()
|
inlineprivateinherited |
Returns true if the variable is a int matlab object.
Definition at line 717 of file matfileIO.hh.
◆ isOpen()
|
inlineinherited |
Routine to check if a *.mat-file is currently open.
Might be use with reopen() and close() routines.
Definition at line 281 of file matfileIO.hh.
◆ isQuadratic_()
|
inlineprivateinherited |
test if the requested variable is quadratic and a 2D Tensor (used for Mapping)
Definition at line 746 of file matfileIO.hh.
◆ isReal()
|
inherited |
Return true if the variable /c varName is of type double.
- Examples
- matfileTutorial.cc.
◆ isReal_()
|
inlineprivateinherited |
Returns 1 if the variables field is Real, otherwise 0.
Definition at line 690 of file matfileIO.hh.
◆ isScalar()
|
inherited |
Return true if the variable /c varName is a scalar.
- Examples
- matfileTutorial.cc.
◆ isScalar_()
|
privateinherited |
test if the requested variable is scalar.
this works for multidimensional arrays in Matlab, i.e. rank > 2
◆ isSparse()
|
inherited |
Returns true if the variable /c varName is sparse, else 0.
- Examples
- matfileTutorial.cc.
◆ isSparse_()
|
inlineprivateinherited |
Returns true if the variable is a Matlab sparse array, 0 else.
Definition at line 703 of file matfileIO.hh.
◆ isUint()
|
inherited |
Returns true if the variable /c varname is uint, else 0.
- Examples
- matfileTutorial.cc.
◆ isUint_()
|
inlineprivateinherited |
Returns true if the variable is a uint matlab object.
Definition at line 726 of file matfileIO.hh.
◆ isVector_()
|
privateinherited |
tests if object has vector size, i.e.
if at most one dimension is > 1. this works for multidimensional arrays in Matlab, i.e. rank > 2
◆ lengthVector()
|
inherited |
Return its length if /c varName is a vector, 0 otherwise.
◆ lengthVector_()
|
privateinherited |
returns the length of a vector structure, else 0
◆ matfileEnding_()
|
privateinherited |
adds the ending .mat if needed
◆ overWrite()
|
inlineinherited |
Method with that u can secure already existing variables in a current open *.mat-file.
By default variables get overwritten. If you disable overwriting and try to overwrite a secured variable, it will be asserted.
- Parameters
-
toOverWrite Parameter to secure (false) or to unsecure (true) variables from overwriting.
Definition at line 314 of file matfileIO.hh.
◆ remove()
|
inherited |
Removes the requested variable named 'str' if it exist in the current matfile.
Therefore, first the MatfileIO gets closed to finish writing and then a attempt to delete is performed. If the removal was successful it returns 1, else (i.e. the requested var does not exist in the *.mat-file) it returns 0.
◆ reopen()
|
inherited |
Method to reopen the *.mat-file that was once opened with the constructor.
This could be used in combination with the close()-routine. It may has an application when using the same name for different variables in iterations, where they will be overwritten at each iteration.
◆ storeData_()
|
protectedinherited |
Stores data hold by dense_ptr
.
Definition at line 209 of file matlabBinaryGraphics.hh.
◆ wrongField_()
|
privateinherited |
◆ wrongStructure_()
|
privateinherited |
throws an exception for wrong structure.
Application in get_-routines to handle sparse/dense format differences. It also frees the matvar_t pointer.
Member Data Documentation
◆ data_
|
protectedinherited |
Information which data should be stored.
Definition at line 134 of file matlabBinaryGraphics.hh.
◆ fileName_
|
privateinherited |
Definition at line 410 of file matfileIO.hh.
◆ mat_
|
privateinherited |
Definition at line 405 of file matfileIO.hh.
◆ matvar_
|
privateinherited |
Definition at line 407 of file matfileIO.hh.
◆ matvar_str_
|
privateinherited |
Definition at line 413 of file matfileIO.hh.
◆ matvar_str_cur_
|
privateinherited |
Definition at line 418 of file matfileIO.hh.
◆ noPoints
|
staticinherited |
Definition at line 78 of file denseMatrixGraphics.hh.
◆ overWrite_
|
privateinherited |
Definition at line 422 of file matfileIO.hh.
The documentation for this class was generated from the following file:
- models/matlabElasticityGraphics.hh