strategyChange.hh

Go to the documentation of this file.
1 
6 #ifndef stratChange_hh
7 #define stratChange_hh
8 
9 #include "basics/exceptions.hh"
10 #include "subdivision.hh"
11 
12 namespace concepts {
13 
14  // forward declaration
15  class Connector;
16 
17  // ******************************************************** StrategyChange **
18 
25  class StrategyChange : public ExceptionBase {
26  public:
33  const Subdivision& newStrategy,
34  const Connector& conn) throw();
36  const Subdivision& oldStrategy() const throw() { return oldStrategy_; }
38  const Subdivision& newStrategy() const throw() { return newStrategy_; }
40  const Connector& connector() const throw() { return conn_; }
41  protected:
42  virtual std::ostream& info(std::ostream& os) const throw();
43  private:
45  const Connector& conn_;
46  };
47 
48 } // namespace concepts
49 
50 #endif // stratChange_hh
StrategyChange(const Subdivision &oldStrategy, const Subdivision &newStrategy, const Connector &conn)
Constructor.
const Subdivision & newStrategy() const
Returns the new strategy.
Common base class for QuadSubdivision and HexSubdivision.
Definition: subdivision.hh:20
const Subdivision & newStrategy_
Base class for exceptions.
Definition: exceptions.hh:86
const Connector & conn_
Exception indicating that changing the subdivision strategy is not allowed (but was tried anyway).
const Subdivision & oldStrategy_
const Subdivision & oldStrategy() const
Returns the old strategy.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
const Connector & connector() const
Returns the quad.
An abstract class for elements of the topology.
Definition: connector.hh:85
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