Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
python
FunctionWrap.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
14
#ifndef FunctionWrap_H
15
#define FunctionWrap_H
16
17
#include "
functions/FunctionBase.h
"
18
19
namespace
hippodraw {
20
30
class
FunctionWrap
:
public
FunctionBase
,
31
public
boost::python::wrapper < FunctionBase >
32
{
33
private
:
34
37
boost::python::object
invert_ownership
;
38
41
template
<
class
T >
42
boost::python::object
get_owner
(
T
* me )
const
;
43
44
public
:
45
48
FunctionWrap
(
const
FunctionBase
& base );
49
52
FunctionWrap
(
const
FunctionWrap
& );
53
56
FunctionWrap
();
57
60
virtual
~FunctionWrap
();
61
62
65
void
setName
(
const
std::string &
name
);
66
70
void
setParmNames
(
const
std::vector < std::string > & names );
71
double
derivByParm
(
int
,
double
)
const
;
72
void
initialize
();
73
88
FunctionBase
*
clone
()
const
;
89
90
double
operator ()
(
double
)
const
;
91
double
operator ()
(
const
std::vector < double > & )
const
;
92
void
initialParameters
(
const
FunctionHelper
* );
93
94
unsigned
int
dimensions
()
const
;
95
99
virtual
bool
hasDerivatives
()
const
;
100
101
};
102
103
}
// namespace hippodraw
104
105
106
#endif // FunctionWrap_H
Generated for HippoDraw Class Library by