Classes | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
eigenpy::Register Struct Reference

Structure collecting all the types registers in Numpy via EigenPy. More...

#include <register.hpp>

Classes

struct  Compare_PyTypeObject
 
struct  Compare_TypeInfo
 

Static Public Member Functions

static PyArray_Descr * getPyArrayDescr (PyTypeObject *py_type_ptr)
 
template<typename Scalar >
static PyTypeObject * getPyType ()
 
static int getTypeCode (PyTypeObject *py_type_ptr)
 
template<typename Scalar >
static int getTypeCode ()
 
static Registerinstance ()
 
template<typename Scalar >
static bool isRegistered ()
 
static bool isRegistered (PyTypeObject *py_type_ptr)
 
static int registerNewType (PyTypeObject *py_type_ptr, const std::type_info *type_info_ptr, const int type_size, PyArray_GetItemFunc *getitem, PyArray_SetItemFunc *setitem, PyArray_NonzeroFunc *nonzero, PyArray_CopySwapFunc *copyswap, PyArray_CopySwapNFunc *copyswapn, PyArray_DotFunc *dotfunc)
 

Private Types

typedef std::map< PyTypeObject *, int, Compare_PyTypeObjectMapCode
 
typedef std::map< PyTypeObject *, PyArray_Descr *, Compare_PyTypeObjectMapDescr
 
typedef std::map< const std::type_info *, PyTypeObject *, Compare_TypeInfoMapInfo
 

Private Member Functions

 Register ()
 

Private Attributes

MapCode py_array_code_bindings
 
MapDescr py_array_descr_bindings
 
MapInfo type_to_py_type_bindings
 

Detailed Description

Structure collecting all the types registers in Numpy via EigenPy.

Definition at line 21 of file register.hpp.

Member Typedef Documentation

typedef std::map<PyTypeObject *,int,Compare_PyTypeObject> eigenpy::Register::MapCode
private

Definition at line 116 of file register.hpp.

typedef std::map<PyTypeObject *,PyArray_Descr *,Compare_PyTypeObject> eigenpy::Register::MapDescr
private

Definition at line 113 of file register.hpp.

typedef std::map<const std::type_info *,PyTypeObject *,Compare_TypeInfo> eigenpy::Register::MapInfo
private

Definition at line 110 of file register.hpp.

Constructor & Destructor Documentation

eigenpy::Register::Register ( )
inlineprivate

Definition at line 92 of file register.hpp.

Member Function Documentation

PyArray_Descr * eigenpy::Register::getPyArrayDescr ( PyTypeObject *  py_type_ptr)
static

Definition at line 10 of file register.cpp.

template<typename Scalar >
static PyTypeObject* eigenpy::Register::getPyType ( )
inlinestatic

Definition at line 37 of file register.hpp.

int eigenpy::Register::getTypeCode ( PyTypeObject *  py_type_ptr)
static

Definition at line 27 of file register.cpp.

template<typename Scalar >
static int eigenpy::Register::getTypeCode ( )
inlinestatic

Definition at line 59 of file register.hpp.

Register & eigenpy::Register::instance ( )
static

Definition at line 80 of file register.cpp.

template<typename Scalar >
static bool eigenpy::Register::isRegistered ( )
inlinestatic

Definition at line 27 of file register.hpp.

bool eigenpy::Register::isRegistered ( PyTypeObject *  py_type_ptr)
static

Definition at line 19 of file register.cpp.

int eigenpy::Register::registerNewType ( PyTypeObject *  py_type_ptr,
const std::type_info *  type_info_ptr,
const int  type_size,
PyArray_GetItemFunc *  getitem,
PyArray_SetItemFunc *  setitem,
PyArray_NonzeroFunc *  nonzero,
PyArray_CopySwapFunc *  copyswap,
PyArray_CopySwapNFunc *  copyswapn,
PyArray_DotFunc *  dotfunc 
)
static

Definition at line 36 of file register.cpp.

Member Data Documentation

MapCode eigenpy::Register::py_array_code_bindings
private

Definition at line 117 of file register.hpp.

MapDescr eigenpy::Register::py_array_descr_bindings
private

Definition at line 114 of file register.hpp.

MapInfo eigenpy::Register::type_to_py_type_bindings
private

Definition at line 111 of file register.hpp.


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


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59