pyd.class_wrap

Contains utilities for wrapping D classes.

Members

Enums

IsOp
eponymoustemplate IsOp(A)
Undocumented in source.

Functions

IsPyAsg
bool IsPyAsg(string op0)
Undocumented in source. Be warned that the author may not have intended to support it.
IsPyBinary
bool IsPyBinary(string op)
Undocumented in source. Be warned that the author may not have intended to support it.
IsPyUnary
bool IsPyUnary(string op)
Undocumented in source. Be warned that the author may not have intended to support it.
autoInitializeMethods
string autoInitializeMethods()
Undocumented in source. Be warned that the author may not have intended to support it.
getBinarySlot
string getBinarySlot(string op)
Undocumented in source. Be warned that the author may not have intended to support it.
init_PyTypeObject
void init_PyTypeObject(PyTypeObject tipo)
Undocumented in source. Be warned that the author may not have intended to support it.
wrap_class
void wrap_class()

Wrap a class.

Manifest constants

binaryslots
enum binaryslots;
Undocumented in source.
unaryslots
enum unaryslots;
Undocumented in source.

Mixin templates

_StaticDef
mixintemplate _StaticDef(alias fn, string name, fn_t, string docstring)
Undocumented in source.

Structs

BinaryOperatorX
struct BinaryOperatorX(string _op, bool isR, rhs_t)
Undocumented in source.
Constructors
struct Constructors(string classname, Ctors...)
Undocumented in source.
Def
struct Def(alias fn, Options...)

Wraps a member function of the class.

DoNothing
struct DoNothing
Undocumented in source.
IndexSliceMerge
struct IndexSliceMerge(Params...)
Undocumented in source.
Init
struct Init(cps...)

Wraps the constructors of the class.

Iterator
struct Iterator(Params...)
Undocumented in source.
OpAssign
struct OpAssign(string _op, rhs_t = Guess)

Wrap an operator assignment overload.

OpCall
struct OpCall(Args_t...)

wrap opCall. The parameter types of opCall must be specified.

OpCompare
struct OpCompare(_rhs_t = Guess)

Wrap opCmp.

OpIndex
struct OpIndex(index_t...)
OpIndexAssign
struct OpIndexAssign(index_t...)

Wrap opIndex, opIndexAssign.

OpSlice
struct OpSlice()

Wrap opSlice.

OpSliceAssign
struct OpSliceAssign(rhs_t = Guess)

Wrap opSliceAssign.

OpUnary
struct OpUnary(string _op)

Wrap a unary operator overload.

Operators
struct Operators(Ops...)
Undocumented in source.
Property
struct Property(alias fn, Options...)

Wraps a property of the class.

Repr
struct Repr(alias _fn)

Wraps a method as the class's ___repr__ in Python.

StaticDef
struct StaticDef(alias fn, Options...)

Wraps a static member function of the class. Similar to pyd.def.def

_Len
struct _Len(fnt...)
Undocumented in source.
property_parts
struct property_parts(alias p, string _mode)
Undocumented in source.

Templates

IsAnySetter
template IsAnySetter(alias T)
Undocumented in source.
IsBin
template IsBin(T...)
Undocumented in source.
IsBinR
template IsBinR(T...)
Undocumented in source.
IsDef
template IsDef(string pyname)
Undocumented in source.
IsGetter
template IsGetter(alias T)
Undocumented in source.
IsInit
template IsInit(T)
Undocumented in source.
IsLen
template IsLen(P...)
Undocumented in source.
IsOpIndex
template IsOpIndex(P...)
Undocumented in source.
IsOpIndexAssign
template IsOpIndexAssign(P...)
Undocumented in source.
IsOpSlice
template IsOpSlice(P...)
Undocumented in source.
IsOpSliceAssign
template IsOpSliceAssign(P...)
Undocumented in source.
IsProperty
template IsProperty(alias T)
Undocumented in source.
IsSetter
template IsSetter(RT)
Undocumented in source.
IsUn
template IsUn(A)
Undocumented in source.
Len
template Len()
template Len(alias fn)

Wraps Foo.length or another function as python's ___len__ function.

OpBinary
template OpBinary(string op, rhs_t = Guess)
OpBinaryRight
template OpBinaryRight(string op, lhs_t = Guess)

Wrap a binary operator overload.

_Def
template _Def(alias _fn, string name, fn_t, string docstring)
Undocumented in source.
_Property
template _Property(alias fn, string pyname, string _mode, string docstring)
Undocumented in source.
_wrap_class
template _wrap_class(_T, string name, string docstring, string modulename, Params...)
Undocumented in source.
param1
template param1(C)
Undocumented in source.
shim_class
template shim_class(T)
Undocumented in source.
wrapped_class_object
template wrapped_class_object(T)
Undocumented in source.
wrapped_get
template wrapped_get(string fname, T, Parts)
Undocumented in source.
wrapped_method_list
template wrapped_method_list(T)
Undocumented in source.
wrapped_methods
template wrapped_methods(T)
Undocumented in source.
wrapped_prop_list
template wrapped_prop_list(T)
Undocumented in source.
wrapped_repr
template wrapped_repr(T, alias fn)
Undocumented in source.
wrapped_set
template wrapped_set(string fname, T, Parts)
Undocumented in source.

Variables

wrapped_classes
PyTypeObject*[ClassInfo] wrapped_classes;
Undocumented in source.

Meta