CppADCodeGen
2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
print_operation_node.hpp
1
#ifndef CPPAD_CG_PRINT_OPERATION_NODE_INCLUDED
2
#define CPPAD_CG_PRINT_OPERATION_NODE_INCLUDED
3
/* --------------------------------------------------------------------------
4
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5
* Copyright (C) 2013 Ciengis
6
*
7
* CppADCodeGen is distributed under multiple licenses:
8
*
9
* - Eclipse Public License Version 1.0 (EPL1), and
10
* - GNU General Public License Version 3 (GPL3).
11
*
12
* EPL1 terms and conditions can be found in the file "epl-v10.txt", while
13
* terms and conditions for the GPL3 can be found in the file "gpl3.txt".
14
* ----------------------------------------------------------------------------
15
* Author: Joao Leal
16
*/
17
18
namespace
CppAD
{
19
namespace
cg {
20
29
template
<
class
Base>
30
class
PrintOperationNode
:
public
OperationNode
<Base> {
31
friend
class
CodeHandler
<Base>;
32
protected
:
33
std::string before_;
34
std::string after_;
35
public
:
36
37
inline
const
std::string& getBeforeString()
const
{
38
return
before_;
39
}
40
41
inline
void
setBeforeString(
const
std::string&
before
) {
42
before_ =
before
;
43
}
44
45
inline
const
std::string& getAfterString()
const
{
46
return
after_;
47
}
48
49
inline
void
setAfterString(
const
std::string&
after
) {
50
after_ =
after
;
51
}
52
53
inline
virtual
~PrintOperationNode
() {
54
}
55
56
protected
:
57
58
inline
PrintOperationNode
(
CodeHandler<Base>
*
handler
,
59
const
std::string&
before
,
60
const
Argument<Base>
&
arg
,
61
const
std::string&
after
) :
62
OperationNode<Base>
(
handler
, CGOpCode::Pri,
arg
),
63
before_(
before
),
64
after_(
after
) {
65
}
66
67
};
68
69
}
// END cg namespace
70
}
// END CppAD namespace
71
72
#endif
CppAD::cg::Argument
Definition
argument.hpp:31
CppAD::cg::CodeHandler
Definition
code_handler.hpp:28
CppAD::cg::OperationNode
Definition
operation_node.hpp:28
CppAD::cg::PrintOperationNode
Definition
print_operation_node.hpp:30
CppAD
Definition
abstract_atomic_fun.hpp:19
CppAD::GreaterThanZero
bool GreaterThanZero(const cg::CG< Base > &x)
Definition
ordered.hpp:21
include
cppad
cg
nodes
print_operation_node.hpp
Generated on Tue Sep 10 2024 03:29:11 for CppADCodeGen by
1.10.0