HepMC3 event record library
Public Member Functions | Private Attributes
simple_collector< policy > Class Template Reference

#include <cast.h>

+ Collaboration diagram for simple_collector< policy >:

Public Member Functions

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

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 2019 of file cast.h.

Member Function Documentation

◆ call()

object call ( PyObject *  ptr) const
inline

Call a Python function and pass the collected arguments.

Definition at line 2031 of file cast.h.

References handle::ptr().


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