vnl_definite_integral.h
Go to the documentation of this file.
1 #ifndef VNL_DEFINITE_INTEGRAL_H_
2 #define VNL_DEFINITE_INTEGRAL_H_
3 //:
4 // \file
5 // \author Kongbin Kang at Brown
6 // \date Jan 12, 2005
7 // \brief the abstract 1D integrand function used for definite integral
8 
9 #include "vnl_integrant_fnct.h"
10 #include "vnl/vnl_export.h"
11 #ifdef _MSC_VER
12 # include <vcl_msvc_warnings.h>
13 #endif
14 
15 class VNL_EXPORT vnl_definite_integral
16 {
17  protected:
19 
20  public:
21  vnl_definite_integral() { pfnct_ = nullptr; }
22 
23  void set_fnct(vnl_integrant_fnct* f) { pfnct_ = f; }
24 
25  // destructor
26  virtual ~vnl_definite_integral() { pfnct_ = nullptr; }
27 };
28 
29 #endif
static vnl_integrant_fnct * pfnct_
the abstract class of 1D integrand function used in integral
void set_fnct(vnl_integrant_fnct *f)