ug4
ug::IDebugWriter< TAlgebra > Class Template Referenceabstract

base class for all debug writer More...

#include <debug_writer.h>

+ Inheritance diagram for ug::IDebugWriter< TAlgebra >:

Public Types

typedef TAlgebra algebra_type
 type of algebra More...
 
typedef TAlgebra::matrix_type matrix_type
 type of matrix More...
 
typedef TAlgebra::vector_type vector_type
 type of vector More...
 
- Public Types inherited from ug::IVectorDebugWriter< TAlgebra::vector_type >
typedef TAlgebra::vector_type vector_type
 type of vector More...
 

Public Member Functions

virtual void write_matrix (const matrix_type &mat, const char *name)=0
 write matrix More...
 
virtual void write_vector (const vector_type &vec, const char *name)=0
 write vector More...
 
- Public Member Functions inherited from ug::IVectorDebugWriter< TAlgebra::vector_type >
int current_dimension () const
 returns the current dimension More...
 
void enter_section (const char *secDir)
 enter a new debugging section More...
 
std::string get_base_dir ()
 
SmartPtr< DebugWriterContextget_context ()
 get the debugging writer context More...
 
ConstSmartPtr< DebugWriterContextget_context () const
 get the debugging writer context More...
 
int get_dim () const
 get the dimensionality More...
 
const std::vector< MathVector< dim > > & get_positions () const
 returns the positions (only available for current dimension) More...
 
 IVectorDebugWriter ()
 Constructor. More...
 
void leave_section ()
 leave the current debugging section More...
 
virtual void print_message (const char *msg)
 prints a message More...
 
void set_base_dir (const char *const baseDir)
 set the base directory for output files (.vec and .mat) More...
 
void set_context (SmartPtr< DebugWriterContext > context)
 set the debugging writer context More...
 
void set_positions (const std::vector< MathVector< dim > > &vPos)
 sets the current positions More...
 
void set_positions (IPositionProvider< dim > &provider)
 employs a position provider to set the current positions More...
 
virtual void update_positions ()
 
virtual ~IVectorDebugWriter ()
 virtual destructor More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::IVectorDebugWriter< TAlgebra::vector_type >
void compose_file_path (std::string &path)
 composes the path for the files and creates the intermediate directories (up to the base one): More...
 
std::vector< MathVector< 1 > > & get_pos (Int2Type< 1 >)
 help function to get local ips More...
 
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 More...
 
- Protected Attributes inherited from ug::IVectorDebugWriter< TAlgebra::vector_type >
int m_currentDim
 current dimension More...
 
SmartPtr< DebugWriterContextm_spContext
 debugging writer context More...
 
std::vector< MathVector< 1 > > m_vPos1d
 vectors of positions More...
 
std::vector< MathVector< 2 > > m_vPos2d
 
std::vector< MathVector< 3 > > m_vPos3d
 

Detailed Description

template<typename TAlgebra>
class ug::IDebugWriter< TAlgebra >

base class for all debug writer

This is the base class for debug output of algebraic vectors and matrices.

Member Typedef Documentation

◆ algebra_type

template<typename TAlgebra >
typedef TAlgebra ug::IDebugWriter< TAlgebra >::algebra_type

type of algebra

◆ matrix_type

template<typename TAlgebra >
typedef TAlgebra::matrix_type ug::IDebugWriter< TAlgebra >::matrix_type

type of matrix

◆ vector_type

template<typename TAlgebra >
typedef TAlgebra::vector_type ug::IDebugWriter< TAlgebra >::vector_type

type of vector

Member Function Documentation

◆ write_matrix()

template<typename TAlgebra >
virtual void ug::IDebugWriter< TAlgebra >::write_matrix ( const matrix_type mat,
const char *  name 
)
pure virtual

◆ write_vector()

template<typename TAlgebra >
virtual void ug::IDebugWriter< TAlgebra >::write_vector ( const vector_type vec,
const char *  name 
)
pure virtual

The documentation for this class was generated from the following file: