library of assembled shared sources

http://lass.cocamware.com

lass::python::PyExportTraits< std::vector< C, A > > Struct Template Reference
[Python]

#include <pysequence.h>

Inheritance diagram for lass::python::PyExportTraits< std::vector< C, A > >:

Inheritance graph
[legend]
Collaboration diagram for lass::python::PyExportTraits< std::vector< C, A > >:

Collaboration graph
[legend]

Public Types

typedef ContainerType TContainer

Static Public Member Functions

static PyObject * build (const TContainer &iV)
static PyObject * build (TContainer &iV)
 expose a container to python as a reference.
static int get (PyObject *iV, TContainer &oV)
 get a copy of a Python sequence as a container.

Detailed Description

template<typename C, typename A>
struct lass::python::PyExportTraits< std::vector< C, A > >

Definition at line 508 of file pysequence.h.


Member Typedef Documentation

typedef ContainerType lass::python::PyExportTraitsSequence< ContainerType >::TContainer [inherited]

Definition at line 476 of file pysequence.h.


Member Function Documentation

static PyObject* lass::python::PyExportTraitsSequence< ContainerType >::build ( const TContainer &  iV  )  [inline, static, inherited]

Definition at line 481 of file pysequence.h.

static PyObject* lass::python::PyExportTraitsSequence< ContainerType >::build ( TContainer &  iV  )  [inline, static, inherited]

expose a container to python as a reference.

Note:
you build a reference to the container, any changes done in Python will be reflected in the original object, as far as the typesystem allows it of course

Definition at line 490 of file pysequence.h.

static int lass::python::PyExportTraitsSequence< ContainerType >::get ( PyObject *  iV,
TContainer &  oV 
) [inline, static, inherited]

get a copy of a Python sequence as a container.

Note:
you get a COPY of the sequence, not the original sequence itself!

Definition at line 498 of file pysequence.h.


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

Generated on Mon Nov 10 14:22:15 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo