graphics::BaseFormulaCell< F, G > Class Template Referenceabstract

Writes formula for a cell to the given streams. More...

#include <basis.hh>

Inheritance diagram for graphics::BaseFormulaCell< F, G >:
graphics::BaseOutputCell< typename concepts::Realtype< F >::type > concepts::CellPostprocess< typename concepts::Realtype< F >::type > concepts::OutputOperator

Public Member Functions

 BaseFormulaCell (std::map< std::string, std::ostream * > &os, const uint dim, const concepts::ElementGraphicsBase::graphicsType type, const concepts::PiecewiseFormulaBase< F > &frm, const uint points=5)
 Constructor (for single and repeated output) More...
 
std::vector< uint > & count ()
 Number of points written to the files, used for mesh representation. More...
 
uint dim () const
 Number of the elements, used for drawing mesh representation. More...
 
const concepts::PiecewiseFormulaBase< F > * formula () const
 Returns the formula. More...
 
virtual uint n () const
 
virtual uint n () const=0
 Number of components. More...
 
virtual void operator() (const concepts::Cell &cell) throw (concepts::MissingFeature)
 Not operational. More...
 
virtual void operator() (const concepts::Element< G > &elm)
 Output of the mesh and formula on the element. More...
 
virtual void operator() (const concepts::Element< typename concepts::Realtype< F >::type > &elm)=0
 
uint streams () const
 Number of streams. More...
 
std::map< std::string, std::ostream * > & write ()
 Returns the streams to write the data to. More...
 

Protected Member Functions

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

Protected Attributes

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

Private Attributes

const concepts::PiecewiseFormulaBase< F > & frm_
 Formula. More...
 
const concepts::Array< uint > Points_
 Number of points in one direction. More...
 

Detailed Description

template<class F, class G = typename concepts::Realtype<F>::type>
class graphics::BaseFormulaCell< F, G >

Writes formula for a cell to the given streams.

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

Author
Kersten Schmidt, 2004

Definition at line 223 of file basis.hh.

Constructor & Destructor Documentation

◆ BaseFormulaCell()

template<class F , class G = typename concepts::Realtype<F>::type>
graphics::BaseFormulaCell< F, G >::BaseFormulaCell ( std::map< std::string, std::ostream * > &  os,
const uint  dim,
const concepts::ElementGraphicsBase::graphicsType  type,
const concepts::PiecewiseFormulaBase< F > &  frm,
const uint  points = 5 
)

Constructor (for single and repeated output)

Parameters
osStreams
dimSpatial dimension of the elements
type
frmFunction of the FE function, e.g. itself.
pointsNumber of points in one direction

Member Function Documentation

◆ count()

std::vector<uint>& graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::count ( )
inlineinherited

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

Definition at line 108 of file basis.hh.

◆ dim()

uint graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::dim ( ) const
inlineinherited

Number of the elements, used for drawing mesh representation.

Dimension

Definition at line 112 of file basis.hh.

◆ formula()

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::PiecewiseFormulaBase<F>* graphics::BaseFormulaCell< F, G >::formula ( ) const
inline

Returns the formula.

Definition at line 244 of file basis.hh.

◆ info()

template<class F , class G = typename concepts::Realtype<F>::type>
virtual std::ostream& graphics::BaseFormulaCell< F, G >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from graphics::BaseOutputCell< typename concepts::Realtype< F >::type >.

◆ n() [1/2]

template<class F , class G = typename concepts::Realtype<F>::type>
virtual uint graphics::BaseFormulaCell< F, G >::n ( ) const
inlinevirtual

Definition at line 245 of file basis.hh.

◆ n() [2/2]

virtual uint graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::n ( ) const
pure virtualinherited

Number of components.

◆ operator()() [1/3]

template<class F , class G = typename concepts::Realtype<F>::type>
virtual void graphics::BaseFormulaCell< F, G >::operator() ( const concepts::Cell cell)
throw (concepts::MissingFeature
)
virtual

◆ operator()() [2/3]

template<class F , class G = typename concepts::Realtype<F>::type>
virtual void graphics::BaseFormulaCell< F, G >::operator() ( const concepts::Element< G > &  elm)
virtual

Output of the mesh and formula on the element.

◆ operator()() [3/3]

virtual void graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::operator() ( const concepts::Element< F > &  elm)
pure virtualinherited

◆ streams()

uint graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::streams ( ) const
inlineinherited

Number of streams.

Definition at line 105 of file basis.hh.

◆ write()

std::map<std::string, std::ostream*>& graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::write ( )
inlineinherited

Returns the streams to write the data to.

Definition at line 103 of file basis.hh.

Member Data Documentation

◆ cnt_

concepts::Sequence<uint> graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::cnt_
protectedinherited

Some counters.

Definition at line 120 of file basis.hh.

◆ dim_

const uint graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::dim_
protectedinherited

Number of drawn elements.

Spatial dimension of the space

Definition at line 124 of file basis.hh.

◆ frm_

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::PiecewiseFormulaBase<F>& graphics::BaseFormulaCell< F, G >::frm_
private

Formula.

Definition at line 250 of file basis.hh.

◆ os_

std::map<std::string, std::ostream*>& graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::os_
protectedinherited

Streams to write the data to.

Definition at line 126 of file basis.hh.

◆ Points_

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::Array<uint> graphics::BaseFormulaCell< F, G >::Points_
private

Number of points in one direction.

Definition at line 252 of file basis.hh.

◆ type_

enum concepts::ElementGraphicsBase::graphicsType graphics::BaseOutputCell< typename concepts::Realtype< F >::type >::type_
protectedinherited

Type of Output, like Matlab, Gnuplot.

Definition at line 116 of file basis.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich