Public Member Functions | Private Attributes | List of all members
simple_collector< policy > Class Template Reference

#include <cast.h>

Public Member Functions

const tupleargs () const &
 
tuple args ()&&
 
object call (PyObject *ptr) const
 Call a Python function and pass the collected arguments. More...
 
dict kwargs () const
 
template<typename... Ts>
 simple_collector (Ts &&...values)
 

Private Attributes

tuple m_args
 

Detailed Description

template<return_value_policy policy>
class simple_collector< policy >

Helper class which collects only positional arguments for a Python function call. A fancier version below can collect any argument, but this one is optimal for simple calls.

Definition at line 2028 of file cast.h.

Constructor & Destructor Documentation

template<return_value_policy policy>
template<typename... Ts>
simple_collector< policy >::simple_collector ( Ts &&...  values)
inlineexplicit

Definition at line 2031 of file cast.h.

Member Function Documentation

template<return_value_policy policy>
const tuple& simple_collector< policy >::args ( ) const
inline

Definition at line 2034 of file cast.h.

template<return_value_policy policy>
tuple simple_collector< policy >::args ( )
inline

Definition at line 2037 of file cast.h.

template<return_value_policy policy>
object simple_collector< policy >::call ( PyObject *  ptr) const
inline

Call a Python function and pass the collected arguments.

Definition at line 2040 of file cast.h.

template<return_value_policy policy>
dict simple_collector< policy >::kwargs ( ) const
inline

Definition at line 2035 of file cast.h.

Member Data Documentation

template<return_value_policy policy>
tuple simple_collector< policy >::m_args
private

Definition at line 2048 of file cast.h.


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


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