pyd v0.14.3 (2022-03-12T16:12:50Z)
Home
Dub
Repo
wrapped_member
pyd
struct_wrap
Undocumented in source.
template
wrapped_member (
T
string
name
string
mode
PropertyParts
...
) {
import
std
.
algorithm
:
countUntil
;
;
alias
type
=
PydTypeObject
!(
T
)
;
alias
obj
=
wrapped_class_object
!(
T
)
;
alias
ppart0
=
PropertyParts
[
0
]
;
alias
M
=
ppart0
.
Type
;
alias
GT
=
ApplyConstness2
!(
T
,
constness
!(
FunctionTypeOf
!(
ppart0
.
GetterFn
)))
;
alias
GT
=
T
;
static if
(
countUntil(mode, "r") != -1
)
enum
isStructInStruct
;
static if
(
countUntil(mode, "r") != -1
)
PyObject
*
get
(PyObject* self, void* closure);
static if
(
countUntil(mode, "w") != -1
)
int
set
(PyObject* self, PyObject* value, void* closure);
}
Members
Aliases
GT
alias
GT
=
ApplyConstness2
!(
T
,
constness
!(
FunctionTypeOf
!(
ppart0
.
GetterFn
)))
Undocumented in source.
GT
alias
GT
=
T
Undocumented in source.
M
alias
M
=
ppart0
.
Type
Undocumented in source.
obj
alias
obj
=
wrapped_class_object
!(
T
)
Undocumented in source.
ppart0
alias
ppart0
=
PropertyParts
[
0
]
Undocumented in source.
type
alias
type
=
PydTypeObject
!(
T
)
Undocumented in source.
Functions
get
PyObject
*
get
(PyObject* self, void* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
set
int
set
(PyObject* self, PyObject* value, void* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
isStructInStruct
enum
isStructInStruct
;
Undocumented in source.
Meta
Source
See Implementation
pyd
struct_wrap
aliases
wrap_struct
structs
Member
templates
_Member
wrapped_member