Definition at line 236 of file visitor.h.
◆ TransformVisitor()
SymEngine::TransformVisitor::TransformVisitor |
( |
| ) |
|
|
inline |
◆ apply()
Definition at line 142 of file visitor.cpp.
143{
144 x->accept(*this);
145 return result_;
146}
◆ bvisit() [1/8]
Definition at line 153 of file visitor.cpp.
154{
156 for (const auto &a : x.get_args()) {
158 }
160}
void hash_combine(hash_t &seed, const T &v)
RCP< const Basic > add(const RCP< const Basic > &a, const RCP< const Basic > &b)
Adds two objects (safely).
◆ bvisit() [2/8]
Definition at line 148 of file visitor.cpp.
149{
150 result_ = x.rcp_from_this();
151}
◆ bvisit() [3/8]
Definition at line 162 of file visitor.cpp.
163{
165 for (const auto &a : x.get_args()) {
167 }
169}
RCP< const Basic > mul(const RCP< const Basic > &a, const RCP< const Basic > &b)
Multiplication.
◆ bvisit() [4/8]
Definition at line 193 of file visitor.cpp.
194{
195 auto fargs = x.get_args();
197 for (
const auto &a :
fargs) {
199 }
202}
◆ bvisit() [5/8]
Definition at line 182 of file visitor.cpp.
183{
184 auto farg = x.get_arg();
187 result_ = x.rcp_from_this();
188 } else {
189 result_ = x.create(
newarg);
190 }
191}
bool eq(const Basic &a, const Basic &b)
Checks equality for a and b
◆ bvisit() [6/8]
Definition at line 204 of file visitor.cpp.
205{
215 }
218 }
220}
RCP< const Boolean > Eq(const RCP< const Basic > &lhs)
Returns the canonicalized Equality object from a single argument.
◆ bvisit() [7/8]
Definition at line 171 of file visitor.cpp.
172{
173 auto base_ = x.get_base(), exp_ = x.get_exp();
177 } else {
178 result_ = x.rcp_from_this();
179 }
180}
◆ bvisit() [8/8]
Definition at line 253 of file visitor.h.
254 {
255 auto farg1 = x.get_arg1(),
farg2 = x.get_arg2();
259 } else {
260 result_ = x.rcp_from_this();
261 }
262 }
◆ result_
RCP<const Basic> SymEngine::TransformVisitor::result_ |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/symengine/symengine/symengine/visitor.h
- /home/runner/work/symengine/symengine/symengine/visitor.cpp