Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <NodeConverter.h>
Static Public Member Functions | |
static void * | isConvertible (PyObject *obj_ptr) |
static bool | fromPrimitive (PyObject *obj_ptr, void *storage) |
static void | construct (PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data) |
Implements the conversion logic from python primitives into Node
T | Node type into which types can be converted |
Definition at line 159 of file NodeConverter.h.
|
inlinestatic |
Construct a new Node type from the given python object
obj_ptr | Python object |
data | boost python data required to construct the new object |
Definition at line 231 of file NodeConverter.h.
References Pyston::NodeCast< T >::cast(), and Pyston::NodeConverter< T >::fromPrimitive().
|
inlinestatic |
Create a new Constant Node from a python primitive type: python floats, longs or booleans
obj_ptr | Python object |
storage | Memory area, handled by boost::python, where to store the new object |
Definition at line 203 of file NodeConverter.h.
Referenced by Pyston::NodeConverter< T >::construct().
|
inlinestatic |
Check if the python object can be converted to a known type
obj_ptr | Python object |
Definition at line 167 of file NodeConverter.h.