FunctionPolicy.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/FunctionPolicy.h
10 
11 #ifndef __MEAL_FunctionPolicy_H
12 #define __MEAL_FunctionPolicy_H
13 
14 #include "ReferenceAble.h"
15 
16 namespace MEAL {
17 
18  class Function;
19 
21  class FunctionPolicy : public Reference::Able {
22 
23  public:
24 
26  FunctionPolicy (Function* context=0);
27 
29  ~FunctionPolicy ();
30 
32  Function* get_context () const { return context; }
33 
34  private:
35 
36  friend class Function;
37 
39  Function* context;
40 
41  };
42 
43  template<class T>
44  class FunctionPolicyTraits
45  {
46  public:
47  static void composite_component (T* composite, T* component)
48  {
49  // do nothing
50  }
51  };
52 
53 }
54 
55 #endif
~FunctionPolicy()
Destructor.
Definition: FunctionPolicy.C:13
FunctionPolicy(Function *context=0)
Default constructor.
Definition: FunctionPolicy.C:5
Function * get_context() const
Return the Function for whom this policy operates.
Definition: FunctionPolicy.h:37
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
Pure virtual base class of all functions.
Definition: Function.h:49

Generated using doxygen 1.8.17