Alexandria 2.31.4
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Pyston::NodeCast< double > Struct Reference

#include <NodeConverter.h>

Static Public Member Functions

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

Detailed Description

Trait specialization for double booleans and integers can be upcasted to double

Definition at line 81 of file NodeConverter.h.

Member Function Documentation

◆ cast() [1/2]

static bool Pyston::NodeCast< double >::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.

◆ cast() [2/2]

static bool Pyston::NodeCast< double >::cast ( PyObject * obj_ptr,
void * storage )
inlinestatic

Try to create cast nodes from different known Node types

Returns
true if it could be converted

Definition at line 106 of file NodeConverter.h.

References Pyston::createCastNode().

Here is the call graph for this function:

◆ isUpcast() [1/2]

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

Definition at line 62 of file NodeConverter.h.

◆ isUpcast() [2/2]

static bool Pyston::NodeCast< double >::isUpcast ( PyObject * obj_ptr)
inlinestatic

Returns
true if the object can be converted to T via an upcast

Definition at line 86 of file NodeConverter.h.


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