pyd.func_wrap

Mostly internal utilities.

Members

Functions

PydCallable_AsDelegate
Dg PydCallable_AsDelegate(PyObject* c)
Undocumented in source. Be warned that the author may not have intended to support it.
PydWrappedFunc_Ready
void PydWrappedFunc_Ready()
Undocumented in source. Be warned that the author may not have intended to support it.
applyPyTupleToAlias
ReturnType!fn applyPyTupleToAlias(PyObject* args, PyObject* kwargs)
Undocumented in source. Be warned that the author may not have intended to support it.
applyPyTupleToDelegate
ReturnType!(dg_t) applyPyTupleToDelegate(dg_t dg, PyObject* args)
Undocumented in source. Be warned that the author may not have intended to support it.
arrangeNamedArgs
PyObject* arrangeNamedArgs(PyObject* args, PyObject* kwargs)
Undocumented in source. Be warned that the author may not have intended to support it.
constnessMatch2
bool constnessMatch2(Constness c)
Undocumented in source. Be warned that the author may not have intended to support it.
dg_wrapper
auto dg_wrapper(T t, Fn fn)

This template function converts a pointer to a member function into a delegate.

gensym
string gensym()
Undocumented in source. Be warned that the author may not have intended to support it.
pyApplyToAlias
PyObject* pyApplyToAlias(PyObject* args, PyObject* kwargs)
Undocumented in source. Be warned that the author may not have intended to support it.
pyApplyToDelegate
PyObject* pyApplyToDelegate(dg_t dg, PyObject* args)
Undocumented in source. Be warned that the author may not have intended to support it.
setWrongArgsError
void setWrongArgsError(Py_ssize_t gotArgs, size_t minArgs, size_t maxArgs, string funcName)
Undocumented in source. Be warned that the author may not have intended to support it.
supportsNArgs
bool supportsNArgs(size_t n)

Determines at runtime whether the function can be given n arguments.

tattrs_to_string
string tattrs_to_string()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

StrippedFunctionAttributes
enum StrippedFunctionAttributes;
Undocumented in source.
StrippedFunctionAttributes
enum StrippedFunctionAttributes;
Undocumented in source.

Structs

TupleComposer
struct TupleComposer(Ts...)
Undocumented in source.

Templates

StripFunctionAttributes
template StripFunctionAttributes(F)
Undocumented in source.
fn_to_dg
template fn_to_dg(Fn)

This template converts a function type into an equivalent delegate type.

fn_to_dgT
template fn_to_dgT(Fn)
Undocumented in source.
funcTarget
template funcTarget(T...)
Undocumented in source.
function_wrap
template function_wrap(alias real_fn, string fnname)
Undocumented in source.
getparams
template getparams(alias fn, string pt_alias, string pd_alias)

Get the parameters of function as a string.

hasFunctionAttrs
template hasFunctionAttrs(T)
Undocumented in source.
isConstFunction
template isConstFunction(T...)
Undocumented in source.
isImmutableFunction
template isImmutableFunction(T...)
Undocumented in source.
isMutableFunction
template isMutableFunction(T...)
Undocumented in source.
isSharedFunction
template isSharedFunction(T...)
Undocumented in source.
isWildcardFunction
template isWildcardFunction(T...)
Undocumented in source.
maxArgs
template maxArgs(alias fn, fn_t = typeof(&fn))

Finds the maximum number of arguments a given function may be provided and/or whether the function has a maximum number of arguments.

memberfunc_to_func
template memberfunc_to_func(T, alias memfn)
Undocumented in source.
method_dgwrap
template method_dgwrap(C, alias real_fn)
Undocumented in source.
method_wrap
template method_wrap(C, alias real_fn, string fname)
Undocumented in source.
minArgs
template minArgs(alias fn, fnT = typeof(&fn))

Finds the minimal number of arguments a given function needs to be provided

minNumArgs_impl
template minNumArgs_impl(alias fn, fnT)
Undocumented in source.
wrapped_func_call
template wrapped_func_call(fn_t)
Undocumented in source.

Meta