You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
formula
formula.hh
Go to the documentation of this file.
1
6
#ifndef classformula_hh
7
#define classformula_hh
8
9
#include "
piecewiseFormula.hh
"
10
11
12
namespace
concepts
{
13
14
// *************************************************************** Formula **
15
33
template
<
typename
F>
34
class
Formula
:
public
PiecewiseFormulaBase
<F> {
35
public
:
36
typedef
F value_type;
37
typedef
typename
Realtype<F>::type
G
;
38
45
virtual
F
operator()
(
const
Real
p,
const
Real
t = 0.0)
const
= 0;
46
virtual
F
operator()
(
const
Real2d
& p,
const
Real
t = 0.0)
const
= 0;
47
virtual
F
operator()
(
const
Real3d
& p,
const
Real
t = 0.0)
const
= 0;
53
virtual
F
operator()
(
const
Connector
&
cntr
,
const
Real
p,
54
const
Real
t = 0.0)
const
55
{
return
operator()
(p, t); }
56
virtual
F
operator()
(
const
Connector
&
cntr
,
const
Real2d
& p,
57
const
Real
t = 0.0)
const
58
{
return
operator()
(p, t); }
59
virtual
F
operator()
(
const
Connector&
cntr
,
const
Real3d& p,
60
const
Real
t = 0.0)
const
61
{
return
operator()
(p, t); }
64
virtual
Formula
*
clone
()
const
= 0;
65
};
66
67
}
// namespace concepts
68
69
#endif
// formula_hh
70
concepts::Connector
Definition
connector.hh:85
concepts::Formula
Definition
formula.hh:34
concepts::Formula::clone
virtual Formula * clone() const =0
Virtual copy constructor.
concepts::Formula::operator()
virtual F operator()(const Real p, const Real t=0.0) const =0
concepts::PiecewiseFormulaBase
Definition
piecewiseFormula.hh:43
concepts::Point< Cmplx, 2 >
concepts
Definition
pml_formula.h:16
concepts::Real
double Real
Definition
typedefs.hh:39
concepts::makeSet
Set< F > makeSet(uint n, const F &first,...)
Definition
set.hh:320
piecewiseFormula.hh
Generated on Wed Sep 13 2023 21:06:18 for Concepts by
1.9.8