postProcess.hh

Go to the documentation of this file.
1 
7 #ifndef Postprocess_hh
8 #define Postprocess_hh
9 
10 #include "basics/outputOperator.hh"
11 #include "basics/typedefs.hh"
12 
13 namespace concepts {
14 
15  // forward declarations
16  template<class F>
17  class Space;
18 
19  template<class F>
20  class Element;
21 
22  class Cell;
23 
24  class Mesh;
25 
26  // ******************************************************* CellPostprocess **
27 
37  template<class F>
38  class CellPostprocess : public virtual OutputOperator {
39  public:
44  virtual void operator() (const Element<F>& elm) = 0;
45 
50  virtual void operator() (const Cell& cell) = 0;
51  protected:
52  virtual std::ostream& info(std::ostream& os) const;
53  };
54 
55  // ***************************************************** GlobalPostprocess **
56 
69  template<class F = Real>
70  class GlobalPostprocess : public virtual OutputOperator {
71  public:
76 
81 
88  void operator() (CellPostprocess<F>& perCell) const;
89  protected:
90  virtual std::ostream& info(std::ostream& os) const;
91  private:
93  const Space<F>* spc_;
94 
97  };
98 
99 } // namespace concepts
100 
101 #endif // Postprocess_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
An abstract class for an element of a space.
Definition: exceptions.hh:15
GlobalPostprocess(const Space< F > &spc)
Constructor.
Abstract class for a space.
Global Postprocessing.
Definition: postProcess.hh:70
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
GenericElement< KarniadakisMixin< F > > Element
template aliases for backwards compatibility
Definition: element.hh:270
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
GlobalPostprocess(Mesh &msh)
Constructor.
const Space< F > * spc_
The space.
Definition: postProcess.hh:93
void operator()(CellPostprocess< F > &perCell) const
Application operator.
An abstract class for meshes.
Definition: mesh.hh:76
virtual void operator()(const Element< F > &elm)=0
Application operator.
Class providing an output operator.
Abstract class for per cell postprocessing.
Definition: postProcess.hh:38
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich