boundaryConditions.hh

Go to the documentation of this file.
1 
6 #ifndef boundaryConditions_hh
7 #define boundaryConditions_hh
8 
9 #include <map>
10 #include "semantics.hh"
11 #include "connectorSet.hh"
12 
13 namespace concepts {
14 
15  // forward declarations
16  class Boundary; // defined in formula/boundary.hh
17 
18  // **************************************************** BoundaryConditions **
19 
38  class BoundaryConditions : public Semantics<Boundary> {
39 
40  public:
44 
47 
54 
63  virtual Boundary operator() (Attribute attrib) const;
64 
74  void add(const Set<Attribute>& attrib, const Boundary& bcObject);
76  protected:
77  virtual std::ostream& info(std::ostream& os) const;
78  private:
82  mutable std::map<uint, Boundary> boundaries_;
83  };
84 
85 } // namespace concepts
86 
87 #endif // boundaryConditions_hh
void add(const Set< Attribute > &attrib, const Boundary &bcObject)
Adds a boundary condition with this attribute to the list of boundary conditions.
std::map< uint, Boundary > boundaries_
Dynamic array of boundaries with type and formula.
virtual ~BoundaryConditions()
Destructor.
Class to describe an element of the boundary.
Definition: boundary.hh:35
virtual Boundary operator()(Attribute attrib) const
Application operator.
An abstract function class to query attributes.
Definition: semantics.hh:22
BoundaryConditions(const BoundaryConditions &bnd)
Copy constructor.
BoundaryConditions()
Default constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Attributes for elements of the topology.
Definition: connector.hh:22
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