library of assembled shared sources

http://lass.cocamware.com

lass::python::PyExportTraitsSequence< ContainerType > Struct Template Reference
[Python]

#include <pysequence.h>

Inheritance diagram for lass::python::PyExportTraitsSequence< ContainerType >:

Inheritance 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 ContainerType>
struct lass::python::PyExportTraitsSequence< ContainerType >

Definition at line 474 of file pysequence.h.


Member Typedef Documentation

template<typename ContainerType >
typedef ContainerType lass::python::PyExportTraitsSequence< ContainerType >::TContainer

Definition at line 476 of file pysequence.h.


Member Function Documentation

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

Definition at line 481 of file pysequence.h.

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

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.

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

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