ug4
ug::DebugWritingObject< TAlgebra > Class Template Reference

#include <debug_writer.h>

+ Inheritance diagram for ug::DebugWritingObject< 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::VectorDebugWritingObject< TAlgebra::vector_type >
typedef TAlgebra::vector_type vector_type
 type of vector More...
 

Public Member Functions

SmartPtr< IDebugWriter< algebra_type > > debug_writer ()
 returns the debug writer More...
 
ConstSmartPtr< IDebugWriter< algebra_type > > debug_writer () const
 
bool debug_writer_valid () const
 returns true if the debug writer is set More...
 
 DebugWritingObject ()
 
 DebugWritingObject (const DebugWritingObject< algebra_type > &parent)
 clone constructor More...
 
 DebugWritingObject (SmartPtr< IDebugWriter< algebra_type > > spDebugWriter)
 
virtual void set_debug (SmartPtr< IDebugWriter< algebra_type > > spDebugWriter)
 set debug writer More...
 
virtual ~DebugWritingObject ()
 virtual destructor More...
 
- Public Member Functions inherited from ug::VectorDebugWritingObject< TAlgebra::vector_type >
virtual void set_debug (SmartPtr< IVectorDebugWriter< vector_type > > spDebugWriter)
 set debug writer More...
 
SmartPtr< IVectorDebugWriter< vector_type > > vector_debug_writer ()
 returns the debug writer More...
 
ConstSmartPtr< IVectorDebugWriter< vector_type > > vector_debug_writer () const
 
bool vector_debug_writer_valid () const
 returns true if the debug writer is set More...
 
 VectorDebugWritingObject ()
 
 VectorDebugWritingObject (SmartPtr< IVectorDebugWriter< vector_type > > spDebugWriter)
 
void write_debug (const vector_type &vec, const char *filename)
 writing debug output for a vector (if debug writer set) More...
 
virtual ~VectorDebugWritingObject ()
 virtual destructor More...
 

Protected Member Functions

void enter_debug_writer_section (const char *secDir)
 enters a debugging section More...
 
void enter_debug_writer_section (std::string secDir)
 enters a debugging section More...
 
void leave_debug_writer_section ()
 leaves a debugging section More...
 
void write_debug (const matrix_type &mat, const char *filename)
 write debug output for a matrix (if debug writer set) More...
 
void write_debug (const matrix_type &mat, std::string name)
 write debug output for a matrix (if debug writer set) More...
 
- Protected Member Functions inherited from ug::VectorDebugWritingObject< TAlgebra::vector_type >
void enter_vector_debug_writer_section (const char *secDir)
 enters a debugging section More...
 
void enter_vector_debug_writer_section (std::string secDir)
 enters a debugging section More...
 
void leave_vector_debug_writer_section ()
 leaves a debugging section More...
 
void print_debugger_message (const char *msg)
 prints a debugger message (listing all the sections) More...
 
void print_debugger_message (std::string msg)
 prints a debugger message (listing all the sections) More...
 
virtual void write_debug (const vector_type &vec, std::string name)
 writing debug output for a vector (if debug writer set) More...
 

Protected Attributes

SmartPtr< IDebugWriter< algebra_type > > m_spDebugWriter
 Debug Writer. More...
 
- Protected Attributes inherited from ug::VectorDebugWritingObject< TAlgebra::vector_type >
SmartPtr< IVectorDebugWriter< vector_type > > m_spVectorDebugWriter
 Debug Writer. More...
 

Member Typedef Documentation

◆ algebra_type

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

type of algebra

◆ matrix_type

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

type of matrix

◆ vector_type

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

type of vector

Constructor & Destructor Documentation

◆ DebugWritingObject() [1/3]

template<typename TAlgebra >
ug::DebugWritingObject< TAlgebra >::DebugWritingObject ( )
inline

◆ DebugWritingObject() [2/3]

template<typename TAlgebra >
ug::DebugWritingObject< TAlgebra >::DebugWritingObject ( SmartPtr< IDebugWriter< algebra_type > >  spDebugWriter)
inline

◆ DebugWritingObject() [3/3]

template<typename TAlgebra >
ug::DebugWritingObject< TAlgebra >::DebugWritingObject ( const DebugWritingObject< algebra_type > &  parent)
inline

clone constructor

◆ ~DebugWritingObject()

template<typename TAlgebra >
virtual ug::DebugWritingObject< TAlgebra >::~DebugWritingObject ( )
inlinevirtual

virtual destructor

Member Function Documentation

◆ debug_writer() [1/2]

◆ debug_writer() [2/2]

template<typename TAlgebra >
ConstSmartPtr<IDebugWriter<algebra_type> > ug::DebugWritingObject< TAlgebra >::debug_writer ( ) const
inline

◆ debug_writer_valid()

template<typename TAlgebra >
bool ug::DebugWritingObject< TAlgebra >::debug_writer_valid ( ) const
inline

returns true if the debug writer is set

References ug::DebugWritingObject< TAlgebra >::m_spDebugWriter.

◆ enter_debug_writer_section() [1/2]

template<typename TAlgebra >
void ug::DebugWritingObject< TAlgebra >::enter_debug_writer_section ( const char *  secDir)
inlineprotected

enters a debugging section

References ug::DebugWritingObject< TAlgebra >::m_spDebugWriter.

◆ enter_debug_writer_section() [2/2]

template<typename TAlgebra >
void ug::DebugWritingObject< TAlgebra >::enter_debug_writer_section ( std::string  secDir)
inlineprotected

enters a debugging section

◆ leave_debug_writer_section()

template<typename TAlgebra >
void ug::DebugWritingObject< TAlgebra >::leave_debug_writer_section ( )
inlineprotected

leaves a debugging section

References ug::DebugWritingObject< TAlgebra >::m_spDebugWriter.

◆ set_debug()

◆ write_debug() [1/2]

template<typename TAlgebra >
void ug::DebugWritingObject< TAlgebra >::write_debug ( const matrix_type mat,
const char *  filename 
)
inlineprotected

◆ write_debug() [2/2]

template<typename TAlgebra >
void ug::DebugWritingObject< TAlgebra >::write_debug ( const matrix_type mat,
std::string  name 
)
inlineprotected

write debug output for a matrix (if debug writer set)

References ug::DebugWritingObject< TAlgebra >::m_spDebugWriter, name, PROFILE_FUNC_GROUP, and UG_THROW.

Member Data Documentation

◆ m_spDebugWriter


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