Class documentation of Concepts

Loading...
Searching...
No Matches
graphics::BaseOutputCell< F > Class Template Referenceabstract

#include <basis.hh>

Inheritance diagram for graphics::BaseOutputCell< F >:
concepts::CellPostprocess< F > concepts::OutputOperator graphics::BaseDataCell< F, G > graphics::BaseElementFormulaCell< F, G > graphics::BaseFormulaCell< F, G >

Public Member Functions

 BaseOutputCell (std::map< std::string, std::ostream * > &os, const uint dim, const concepts::ElementGraphicsBase::graphicsType type)
 
virtual void operator() (const concepts::Element< F > &elm)=0
 
virtual void operator() (const concepts::Cell &cell)=0
 
std::map< std::string, std::ostream * > & write ()
 Returns the streams to write the data to.
 
uint streams () const
 Number of streams.
 
std::vector< uint > & count ()
 Number of points written to the files, used for mesh representation.
 
uint dim () const
 Number of the elements, used for drawing mesh representation.
 
virtual uint n () const =0
 Number of components.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Protected Attributes

enum concepts::ElementGraphicsBase::graphicsType type_
 Type of Output, like Matlab, Gnuplot.
 
concepts::Sequence< uint > cnt_
 Some counters.
 
const uint dim_
 Number of drawn elements.
 
std::map< std::string, std::ostream * > & os_
 Streams to write the data to.
 

Detailed Description

template<class F = Real>
class graphics::BaseOutputCell< F >

Writes the mesh to the given streams.

It can be used for different formats, like Matlab, Gnuplot.

Author
Kersten Schmidt, 2004

Definition at line 95 of file basis.hh.

Constructor & Destructor Documentation

◆ BaseOutputCell()

template<class F = Real>
graphics::BaseOutputCell< F >::BaseOutputCell ( std::map< std::string, std::ostream * > &  os,
const uint  dim,
const concepts::ElementGraphicsBase::graphicsType  type 
)
inline

Definition at line 97 of file basis.hh.

Member Function Documentation

◆ count()

template<class F = Real>
std::vector< uint > & graphics::BaseOutputCell< F >::count ( )
inline

Number of points written to the files, used for mesh representation.

Definition at line 108 of file basis.hh.

◆ dim()

template<class F = Real>
uint graphics::BaseOutputCell< F >::dim ( ) const
inline

Number of the elements, used for drawing mesh representation.

Dimension

Definition at line 112 of file basis.hh.

◆ info()

template<class F = Real>
virtual std::ostream & graphics::BaseOutputCell< F >::info ( std::ostream &  os) const
protectedvirtual

◆ n()

template<class F = Real>
virtual uint graphics::BaseOutputCell< F >::n ( ) const
pure virtual

◆ operator()() [1/2]

template<class F = Real>
virtual void graphics::BaseOutputCell< F >::operator() ( const concepts::Cell cell)
pure virtual

Application operator. This application operator has to be overloaded to post process a mesh.

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< F >.

Implemented in graphics::BaseDataCell< F, G >, graphics::BaseElementFormulaCell< F, G >, graphics::BaseFormulaCell< F, G >, and graphics::BaseMeshCell.

◆ operator()() [2/2]

template<class F = Real>
virtual void graphics::BaseOutputCell< F >::operator() ( const concepts::Element< F > &  elm)
pure virtual

Application operator. This application operator has to be overloaded to post process a space.

Parameters
elmCurrent element

Implements concepts::CellPostprocess< F >.

Implemented in graphics::BaseMeshCell.

◆ streams()

template<class F = Real>
uint graphics::BaseOutputCell< F >::streams ( ) const
inline

Number of streams.

Definition at line 105 of file basis.hh.

◆ write()

template<class F = Real>
std::map< std::string, std::ostream * > & graphics::BaseOutputCell< F >::write ( )
inline

Returns the streams to write the data to.

Definition at line 103 of file basis.hh.

Member Data Documentation

◆ cnt_

template<class F = Real>
concepts::Sequence<uint> graphics::BaseOutputCell< F >::cnt_
protected

Some counters.

Definition at line 120 of file basis.hh.

◆ dim_

template<class F = Real>
const uint graphics::BaseOutputCell< F >::dim_
protected

Number of drawn elements.

Spatial dimension of the space

Definition at line 124 of file basis.hh.

◆ os_

template<class F = Real>
std::map<std::string, std::ostream*>& graphics::BaseOutputCell< F >::os_
protected

Streams to write the data to.

Definition at line 126 of file basis.hh.

◆ type_

template<class F = Real>
enum concepts::ElementGraphicsBase::graphicsType graphics::BaseOutputCell< F >::type_
protected

Type of Output, like Matlab, Gnuplot.

Definition at line 118 of file basis.hh.


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