ug4
|
base class for all debug writer More...
#include <debug_writer.h>
Public Types | |
typedef TAlgebra | algebra_type |
type of algebra | |
typedef TAlgebra::matrix_type | matrix_type |
type of matrix | |
typedef TAlgebra::vector_type | vector_type |
type of vector | |
![]() | |
typedef TAlgebra::vector_type | vector_type |
type of vector | |
Public Member Functions | |
virtual void | write_matrix (const matrix_type &mat, const char *name)=0 |
write matrix | |
virtual void | write_vector (const vector_type &vec, const char *name)=0 |
write vector | |
![]() | |
int | current_dimension () const |
returns the current dimension | |
void | enter_section (const char *secDir) |
enter a new debugging section | |
std::string | get_base_dir () |
SmartPtr< DebugWriterContext > | get_context () |
get the debugging writer context | |
ConstSmartPtr< DebugWriterContext > | get_context () const |
get the debugging writer context | |
int | get_dim () const |
get the dimensionality | |
const std::vector< MathVector< dim > > & | get_positions () const |
returns the positions (only available for current dimension) | |
IVectorDebugWriter () | |
Constructor. | |
void | leave_section () |
leave the current debugging section | |
virtual void | print_message (const char *msg) |
prints a message | |
void | set_base_dir (const char *const baseDir) |
set the base directory for output files (.vec and .mat) | |
void | set_context (SmartPtr< DebugWriterContext > context) |
set the debugging writer context | |
void | set_positions (const std::vector< MathVector< dim > > &vPos) |
sets the current positions | |
void | set_positions (IPositionProvider< dim > &provider) |
employs a position provider to set the current positions | |
virtual void | update_positions () |
virtual | ~IVectorDebugWriter () |
virtual destructor | |
Additional Inherited Members | |
![]() | |
void | compose_file_path (std::string &path) |
composes the path for the files and creates the intermediate directories (up to the base one): | |
std::vector< MathVector< 1 > > & | get_pos (Int2Type< 1 >) |
help function to get local ips | |
const std::vector< MathVector< 1 > > & | get_pos (Int2Type< 1 >) const |
std::vector< MathVector< 2 > > & | get_pos (Int2Type< 2 >) |
const std::vector< MathVector< 2 > > & | get_pos (Int2Type< 2 >) const |
std::vector< MathVector< 3 > > & | get_pos (Int2Type< 3 >) |
const std::vector< MathVector< 3 > > & | get_pos (Int2Type< 3 >) const |
std::vector< MathVector< dim > > & | positions () |
returns the positions and sets the current dim | |
![]() | |
int | m_currentDim |
current dimension | |
SmartPtr< DebugWriterContext > | m_spContext |
debugging writer context | |
std::vector< MathVector< 1 > > | m_vPos1d |
vectors of positions | |
std::vector< MathVector< 2 > > | m_vPos2d |
std::vector< MathVector< 3 > > | m_vPos3d |
base class for all debug writer
This is the base class for debug output of algebraic vectors and matrices.
typedef TAlgebra ug::IDebugWriter< TAlgebra >::algebra_type |
type of algebra
typedef TAlgebra::matrix_type ug::IDebugWriter< TAlgebra >::matrix_type |
type of matrix
typedef TAlgebra::vector_type ug::IDebugWriter< TAlgebra >::vector_type |
type of vector
|
pure virtual |
write matrix
|
pure virtual |
write vector
Implements ug::IVectorDebugWriter< TAlgebra::vector_type >.