 |
Cadabra
Computer algebra system for field theory problems
|
Go to the documentation of this file.
8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
17 :
public std::enable_shared_from_this<BoundPropertyBase>
25 std::string
str_()
const;
27 std::string
latex_()
const;
29 std::string
repr_()
const;
34 Ex::iterator
get_it()
const;
49 template <
typename PropT,
typename... ParentTs>
51 :
virtual public ParentTs...
55 using py_type = pybind11::class_<BoundProperty, std::shared_ptr<BoundProperty>, ParentTs...>;
65 std::string
str_()
const;
67 std::string
latex_()
const;
69 std::string
repr_()
const;
74 static std::shared_ptr<BoundProperty>
get_from_kernel(Ex::iterator ex,
const std::string& label,
bool ignore_parent_rel);
81 template <
typename PropT> std::string
get_name();
83 template <
typename BoundPropT>
typename BoundPropT::py_type
def_abstract_prop(pybind11::module& m);
84 template <
typename BoundPropT>
typename BoundPropT::py_type
def_prop(pybind11::module& m);
const cpp_type * get_prop() const
Definition: py_properties.cc:185
Ex::iterator get_it() const
Definition: py_properties.cc:135
Ex & get_ex() const
Definition: py_properties.cc:130
virtual ~BoundPropertyBase()
Definition: py_properties.cc:76
std::string str_() const
Human-readable form in text, i.e. no special formatting.
Definition: py_properties.cc:81
static std::shared_ptr< BoundProperty > get_from_kernel(Ex::iterator ex, const std::string &label, bool ignore_parent_rel)
Definition: py_properties.cc:166
static Properties & get_props()
Definition: py_properties.cc:125
std::string str_() const
Human-readable form in text, i.e. no special formatting.
Definition: py_properties.cc:203
void attach(Ex_ptr ex) const
Attach this property to a different symbol.
Definition: py_properties.cc:191
Ex_ptr for_obj
Definition: py_properties.hh:45
std::string latex_() const
Human-readable form using LaTeX markup.
Definition: py_properties.cc:209
const property * prop
Definition: py_properties.hh:40
std::shared_ptr< Ex > Ex_ptr
Definition: py_ex.hh:9
PropT cpp_type
Definition: py_properties.hh:54
FIXME: the above two need to be merged, because parse may need access to the actual pattern tree,...
Definition: Props.hh:127
pybind11::list list_properties()
Definition: py_properties.cc:257
Definition: py_properties.hh:16
Definition: py_properties.hh:50
BoundPropertyBase()
Definition: py_properties.cc:62
static Kernel & get_kernel()
Definition: py_properties.cc:120
std::string repr_() const
Python-parseable form. FIXME: not correct right now.
Definition: py_properties.cc:114
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
Definition: Storage.hh:141
void init_properties(py::module &m)
Definition: py_properties.cc:328
BoundPropT::py_type def_prop(pybind11::module &m)
Definition: py_properties.cc:237
std::string repr_() const
Python-parseable form. FIXME: not correct right now.
Definition: py_properties.cc:215
pybind11::class_< BoundProperty, std::shared_ptr< BoundProperty >, ParentTs... > py_type
Definition: py_properties.hh:55
BoundPropT::py_type def_abstract_prop(pybind11::module &m, const std::string &name)
Definition: py_properties.cc:221
BoundProperty()
Definition: py_properties.cc:142
std::string latex_() const
Human-readable form using LaTeX markup.
Definition: py_properties.cc:91