library of assembled shared sources

http://lass.cocamware.com

lass::python::PyExportTraits< stde::static_vector< C, maxsize > > Struct Template Reference
[Python]

#include <pysequence.h>

Inheritance diagram for lass::python::PyExportTraits< stde::static_vector< C, maxsize > >:

Inheritance graph
[legend]
Collaboration diagram for lass::python::PyExportTraits< stde::static_vector< C, maxsize > >:

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, size_t maxsize>
struct lass::python::PyExportTraits< stde::static_vector< C, maxsize > >

Definition at line 535 of file pysequence.h.


Member Typedef Documentation

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

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, inherited]

Definition at line 481 of file pysequence.h.

template<typename ContainerType >
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.

template<typename ContainerType >
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