23#ifndef GINAC_WILDCARD_H
24#define GINAC_WILDCARD_H
44 bool match(
const ex & pattern,
exmap& repl_lst)
const override;
Archiving of GiNaC expressions.
This class stores all properties needed to record/retrieve the state of one object of class basic (or...
This class is the ABC (abstract base class) of GiNaC's class hierarchy.
Wrapper template for making GiNaC classes out of STL containers.
Lightweight wrapper for GiNaC's symbolic objects.
Base class for print_contexts.
Context for python-parsable output.
Context for tree-like output for debugging.
This class acts as a wildcard for subs(), match(), has() and find().
bool match(const ex &pattern, exmap &repl_lst) const override
Check whether the expression matches a given pattern.
void read_archive(const archive_node &n, lst &syms) override
Read (a.k.a.
wildcard(unsigned label)
Construct wildcard with specified label.
unsigned calchash() const override
Compute the hash value of an object and if it makes sense to store it in the objects status_flags,...
void archive(archive_node &n) const override
Save (a.k.a.
void do_print(const print_context &c, unsigned level) const
unsigned label
Label used to distinguish different wildcards.
void do_print_python_repr(const print_python_repr &c, unsigned level) const
unsigned get_label() const
void do_print_tree(const print_tree &c, unsigned level) const
Interface to GiNaC's light-weight expression handles.
bool haswild(const ex &x)
Check whether x has a wildcard anywhere as a subexpression.
std::map< ex, ex, ex_is_less > exmap
GINAC_DECLARE_UNARCHIVER(add)
ex wild(unsigned label=0)
Create a wildcard object with the specified label.
#define GINAC_DECLARE_REGISTERED_CLASS(classname, supername)
Macro for inclusion in the declaration of each registered class.