|
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.
|
inline |
Definition at line 46 of file Gt_helpers.h.
References GiNaC::Gt_detail::TransformExpressionWithCache< Type >::impl().
| void GiNaC::Gt_detail::TransformExpressionWithCache< Type >::print_cache | ( | ) | const |
Definition at line 58 of file Gt_helpers.cpp.
|
inline |
Definition at line 50 of file Gt_helpers.h.
References GiNaC::Gt_detail::TransformExpressionWithCache< Type >::cache.
|
inline |
Definition at line 51 of file Gt_helpers.h.
References GiNaC::Gt_detail::TransformExpressionWithCache< Type >::cache.
|
staticprivate |
Definition at line 45 of file Gt_helpers.cpp.
|
staticprivate |
|
private |
Definition at line 66 of file Gt_helpers.cpp.
References GiNaC::container< C >::append(), cache, GiNaC::ex::find(), GiNaC::ex::nops(), and GiNaC::ex::op().
Referenced by GiNaC::Gt_detail::TransformExpressionWithCache< Type >::operator()().
|
private |
Definition at line 65 of file Gt_helpers.h.
|
private |
Definition at line 66 of file Gt_helpers.h.
|
private |
Definition at line 67 of file Gt_helpers.h.
Referenced by GiNaC::Gt_detail::TransformExpressionWithCache< Type >::clear_cache(), and GiNaC::Gt_detail::TransformExpressionWithCache< Type >::get_cache().