Public Member Functions | Static Public Member Functions
mv2_from_python< T, N > Struct Template Reference

List of all members.

Public Member Functions

 mv2_from_python ()

Static Public Member Functions

static void construct (PyObject *obj, bp::converter::rvalue_from_python_stage1_data *data)
static void * convertible (PyObject *p)

Detailed Description

template<typename T, int N>
struct mv2_from_python< T, N >

Here's the actual converter. Because we've separated the differences into the above functions, we can write a single template class that works for both matrix2 and vector2.

Definition at line 235 of file gaussian.cpp.


Constructor & Destructor Documentation

template<typename T, int N>
mv2_from_python< T, N >::mv2_from_python ( ) [inline]

Register the converter.

Definition at line 240 of file gaussian.cpp.


Member Function Documentation

template<typename T, int N>
static void mv2_from_python< T, N >::construct ( PyObject *  obj,
bp::converter::rvalue_from_python_stage1_data *  data 
) [inline, static]

Finish the conversion by initializing the C++ object into memory prepared by Boost.Python.

Definition at line 272 of file gaussian.cpp.

template<typename T, int N>
static void* mv2_from_python< T, N >::convertible ( PyObject *  p) [inline, static]

Test to see if we can convert this to the desired type; if not return zero. If we can convert, returned pointer can be used by construct().

Definition at line 252 of file gaussian.cpp.


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


boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40