casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
casacore::python::numpy::array_scalar_from_python< T > Struct Template Reference

Struct with static functions to convert a numpy array scalar to the templated type (e.g. More...

#include <PycArrayNP.h>

Public Member Functions

 array_scalar_from_python ()
 

Static Public Member Functions

static void * convertible (PyObject *obj_ptr)
 Check if it is a type we can convert. More...
 
static void construct (PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data)
 Constructs a T from a Python array scalar object. More...
 

Detailed Description

template<typename T>
struct casacore::python::numpy::array_scalar_from_python< T >

Struct with static functions to convert a numpy array scalar to the templated type (e.g.

Int).

Definition at line 101 of file PycArrayNP.h.

Constructor & Destructor Documentation

Member Function Documentation

template<typename T >
static void casacore::python::numpy::array_scalar_from_python< T >::construct ( PyObject *  obj_ptr,
boost::python::converter::rvalue_from_python_stage1_data *  data 
)
inlinestatic
template<typename T >
static void* casacore::python::numpy::array_scalar_from_python< T >::convertible ( PyObject *  obj_ptr)
inlinestatic

Check if it is a type we can convert.

Definition at line 112 of file PycArrayNP.h.

References casacore::python::numpy::PycArrayScalarCheck(), and type().

Referenced by casacore::python::numpy::array_scalar_from_python< T >::array_scalar_from_python().


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