Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::PythonInterface::Converters::ToPyList< ElementType > Struct Template Reference

Converter that takes a std::vector and converts it into a python list. More...

#include <ToPyList.h>

Public Member Functions

boost::python::list operator() (const std::vector< ElementType > &cdata) const
 Converts a cvector to a numpy array. More...
 

Detailed Description

template<typename ElementType>
struct Mantid::PythonInterface::Converters::ToPyList< ElementType >

Converter that takes a std::vector and converts it into a python list.

It is able to convert anything for which a converter is already registered

Definition at line 22 of file ToPyList.h.

Member Function Documentation

◆ operator()()

template<typename ElementType >
boost::python::list Mantid::PythonInterface::Converters::ToPyList< ElementType >::operator() ( const std::vector< ElementType > &  cdata) const
inline

Converts a cvector to a numpy array.

Parameters
cdata:: A const reference to a vector
Returns
A new python list object

Definition at line 28 of file ToPyList.h.


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