Public Member Functions | Public Attributes | List of all members
arg Struct Reference

#include <cast.h>

Inheritance diagram for arg:
Inheritance graph
[legend]

Public Member Functions

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...
 
argnoconvert (bool flag=true)
 Indicate that the type should not be converted in the type caster. More...
 
argnone (bool flag=true)
 Indicates that the argument should/shouldn't allow None (e.g. for nullable pointer args) More...
 
template<typename T >
arg_v operator= (T &&value) const
 Assign a value to this argument. More...
 

Public Attributes

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...
 
const char * name
 If non-null, this is a named kwargs argument. More...
 

Detailed Description

Annotation for arguments

Definition at line 1853 of file cast.h.

Constructor & Destructor Documentation

constexpr arg::arg ( const char *  name = nullptr)
inlineexplicit

Constructs an argument with the name of the argument; if null or omitted, this is a positional argument.

Definition at line 1855 of file cast.h.

Member Function Documentation

arg& arg::noconvert ( bool  flag = true)
inline

Indicate that the type should not be converted in the type caster.

Definition at line 1859 of file cast.h.

arg& arg::none ( bool  flag = true)
inline

Indicates that the argument should/shouldn't allow None (e.g. for nullable pointer args)

Definition at line 1861 of file cast.h.

template<typename T >
arg_v arg::operator= ( T &&  value) const

Assign a value to this argument.

Definition at line 1922 of file cast.h.

Member Data Documentation

bool arg::flag_noconvert

If set, do not allow conversion (requires a supporting type caster!)

Definition at line 1864 of file cast.h.

bool arg::flag_none

If set (the default), allow None to be passed to this argument.

Definition at line 1865 of file cast.h.

const char* arg::name

If non-null, this is a named kwargs argument.

Definition at line 1863 of file cast.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:44