Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Pyston::NodeCast< T > Struct Template Reference

#include <NodeConverter.h>

Static Public Member Functions

static bool isUpcast (PyObject *)
 
static bool cast (PyObject *, void *)
 

Detailed Description

template<typename T>
struct Pyston::NodeCast< T >

Cast between node types

Template Parameters
TNode type

Definition at line 57 of file NodeConverter.h.

Member Function Documentation

◆ cast()

template<typename T >
static bool Pyston::NodeCast< T >::cast ( PyObject *  ,
void *   
)
inlinestatic

Try to create cast nodes from different known Node types

Returns
true if it could be converted

Definition at line 71 of file NodeConverter.h.

Referenced by Pyston::NodeConverter< T >::construct().

◆ isUpcast()

template<typename T >
static bool Pyston::NodeCast< T >::isUpcast ( PyObject *  )
inlinestatic
Returns
true if the object can be converted to T via an upcast

Definition at line 62 of file NodeConverter.h.


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