|
GiNaC 1.8.10
|
#include <Gt_helpers.h>
Public Member Functions | |
| TransformExpressionWithCache (const std::function< ex(const ex &)> &func_obj, const std::function< ex(const ex &)> &func_default=[](const ex &obj) -> ex { return obj;}) | |
| ex | operator() (const ex &input) |
| void | print_cache () const |
| const exhashmap< ex > & | get_cache () const |
| void | clear_cache () |
Private Member Functions | |
| ex | impl (const ex &expr) |
Static Private Member Functions | |
| template<typename T = Type> | |
| static std::enable_if< std::is_base_of< basic, T >::value, bool >::type | check_type (const ex &expr) |
| template<typename T = Type> | |
| static std::enable_if<!std::is_base_of< basic, T >::value, bool >::type | check_type (const ex &expr) |
Private Attributes | |
| const std::function< ex(const ex &)> | func_obj |
| const std::function< ex(const ex &)> | func_default |
| exhashmap< ex > | cache |
Definition at line 37 of file Gt_helpers.h.
|
inline |
Definition at line 40 of file Gt_helpers.h.
References func_default, and func_obj.
|
inline |
Definition at line 46 of file Gt_helpers.h.
References impl().
| void GiNaC::Gt_detail::TransformExpressionWithCache< Type >::print_cache | ( | ) | const |
Definition at line 58 of file Gt_helpers.cpp.
References cache.
|
inline |
Definition at line 50 of file Gt_helpers.h.
References cache.
|
inline |
Definition at line 51 of file Gt_helpers.h.
References cache.
|
staticprivate |
Definition at line 45 of file Gt_helpers.cpp.
References GiNaC::is_exactly_a().
Referenced by impl().
|
staticprivate |
|
private |
Definition at line 66 of file Gt_helpers.cpp.
References GiNaC::container< C >::append(), cache, check_type(), func_default, func_obj, impl(), GiNaC::is_exactly_a(), GiNaC::ex::nops(), and GiNaC::ex::op().
Referenced by impl(), and operator()().
|
private |
Definition at line 65 of file Gt_helpers.h.
Referenced by impl(), and TransformExpressionWithCache().
|
private |
Definition at line 66 of file Gt_helpers.h.
Referenced by impl(), and TransformExpressionWithCache().
|
private |
Definition at line 67 of file Gt_helpers.h.
Referenced by clear_cache(), get_cache(), impl(), and print_cache().