public API
(
switch to internal
)
-
revision 3.6.7
casadi
core
runtime
casadi_oracle.hpp
1
//
2
// MIT No Attribution
3
//
4
// Copyright (C) 2010-2023 Joel Andersson, Joris Gillis, Moritz Diehl, KU Leuven.
5
//
6
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
7
// software and associated documentation files (the "Software"), to deal in the Software
8
// without restriction, including without limitation the rights to use, copy, modify,
9
// merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
10
// permit persons to whom the Software is furnished to do so.
11
//
12
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
14
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
15
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
16
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
17
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
//
19
20
// C-REPLACE "OracleMemory* m;" ""
21
22
23
// SYMBOL "oracle_data"
24
template
<
typename
T1>
25
struct
casadi_oracle_data
{
26
const
T1**
arg
;
27
T1**
res
;
28
casadi_int*
iw
;
29
T1*
w
;
30
31
void
*
m
;
32
};
33
34
// C-REPLACE "casadi_oracle_data<T1>" "struct casadi_oracle_data"
35
36
// SYMBOL "oracle_init"
37
template
<
typename
T1>
38
void
casadi_oracle_init(
casadi_oracle_data<T1>
* d,
const
T1*** arg, T1*** res,
39
casadi_int** iw, T1** w) {
40
d->
arg
= *arg;
41
d->
res
= *res;
42
d->
iw
= *iw;
43
d->
w
= *w;
44
}
casadi_oracle_data
Definition:
casadi_oracle.hpp:25
casadi_oracle_data::m
void * m
Definition:
casadi_oracle.hpp:31
casadi_oracle_data::w
T1 * w
Definition:
casadi_oracle.hpp:29
casadi_oracle_data::res
T1 ** res
Definition:
casadi_oracle.hpp:27
casadi_oracle_data::arg
const T1 ** arg
Definition:
casadi_oracle.hpp:26
casadi_oracle_data::iw
casadi_int * iw
Definition:
casadi_oracle.hpp:28