![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
callable.hh
Go to the documentation of this file.
71 return Dune::index_constant<(0 + ... + not(Imp::IsKeyWordArgument<std::decay_t<std::tuple_element_t<i, ArgTuple>>>::value))>();
96 void parseKeywordArguments(PositionalCallback&& posCallback, KeyWordCallBack&& kwCallBack, Args&&... args)
127 [[maybe_unused]] auto dummy = std::initializer_list<int>{ (processArgument(i, std::get<i>(std::move(argTuple))), 0)...};
293 Reference callWithArgumentTupleAndKeywordArgs(const Reference& args, const Reference& keywordArgs) const
SLList< T, A > & operator=(const SLList< T, A > &other)
decltype(auto) constexpr unpackIntegerSequence(F &&f, std::integer_sequence< I, i... > sequence)
void message(const std::string &msg)
virtual void operator()()=0
#define DUNE_THROW(E,...)
Definition callable.hh:34
auto make_function(Callable pyCallable)
Convert Python::Callable to C-function object.
Definition callable.hh:366
void handlePythonError(const std::string &origin, const std::string &message)
If a python error occurred throw an exception and clear python error indicator.
Definition common.hh:589
Reference makeObject(const T &t)
Create python object from C++ object.
Definition common.hh:351
Callable(const Reference &other)
Construct Callable from Reference.
Definition callable.hh:226
Reference callWithArgumentTupleAndKeywordArgs(const Reference &args, const Reference &keywordArgs) const
Call this Reference with positional arguments given as tuple and keyword arguments given as dictionar...
Definition callable.hh:293
static void assertCallable(PyObject *p, const std::string &origin)
Assert that PyObject* is not NULL and callable and raise exception otherwise.
Definition callable.hh:342
virtual Callable & operator=(const Reference &other)
Assignment.
Definition callable.hh:244
Reference callWithArgumentTuple(const Reference &args) const
Call this Reference with arguments given as tuple.
Definition callable.hh:268
Callable(PyObject *p)
Construct Callable from PyObject*.
Definition callable.hh:209
virtual Reference & operator=(const Reference &other)
Assignment.
Definition reference.hh:145
void assertPyObject(const std::string &origin) const
Assert that internal PyObject* is not NULL and raise exception otherwise.
Definition reference.hh:288
T endl(T... args)
T forward_as_tuple(T... args)
T forward(T... args)
