#include <cast.h>
|
constexpr | arg (const char *name=nullptr) |
| Constructs an argument with the name of the argument; if null or omitted, this is a positional argument. More...
|
|
template<typename T > |
arg_v | operator= (T &&value) const |
| Assign a value to this argument. More...
|
|
arg & | noconvert (bool flag=true) |
| Indicate that the type should not be converted in the type caster. More...
|
|
arg & | none (bool flag=true) |
| Indicates that the argument should/shouldn't allow None (e.g. for nullable pointer args) More...
|
|
|
const char * | name |
| If non-null, this is a named kwargs argument. More...
|
|
bool | flag_noconvert: 1 |
| If set, do not allow conversion (requires a supporting type caster!) More...
|
|
bool | flag_none: 1 |
| If set (the default), allow None to be passed to this argument. More...
|
|
Annotation for arguments
Definition at line 1844 of file cast.h.
◆ arg()
constexpr arg |
( |
const char * |
name = nullptr | ) |
|
|
inlineexplicitconstexpr |
Constructs an argument with the name of the argument; if null or omitted, this is a positional argument.
Definition at line 1846 of file cast.h.
◆ noconvert()
arg& noconvert |
( |
bool |
flag = true | ) |
|
|
inline |
Indicate that the type should not be converted in the type caster.
Definition at line 1850 of file cast.h.
References flag_noconvert.
◆ none()
Indicates that the argument should/shouldn't allow None (e.g. for nullable pointer args)
Definition at line 1852 of file cast.h.
References flag_none.
◆ operator=()
arg_v operator= |
( |
T && |
value | ) |
const |
Assign a value to this argument.
Definition at line 1913 of file cast.h.
◆ flag_noconvert
If set, do not allow conversion (requires a supporting type caster!)
Definition at line 1855 of file cast.h.
◆ flag_none
If set (the default), allow None to be passed to this argument.
Definition at line 1856 of file cast.h.
◆ name
If non-null, this is a named kwargs argument.
Definition at line 1854 of file cast.h.
The documentation for this struct was generated from the following file: