library of assembled shared sources

http://lass.cocamware.com

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

#include <pymap.h>

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

Inheritance graph
[legend]

Public Types

typedef ContainerType TContainer

Static Public Member Functions

static PyObject * build (const TContainer &iV)
static PyObject * build (TContainer &iV)
 wrap a "borrowed" container as Python dictionary
static int get (PyObject *iV, TContainer &oV)

Detailed Description

template<typename ContainerType>
struct lass::python::PyExportTraitsMap< ContainerType >

Definition at line 314 of file pymap.h.


Member Typedef Documentation

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

Definition at line 316 of file pymap.h.


Member Function Documentation

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

Definition at line 323 of file pymap.h.

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

wrap a "borrowed" container as Python dictionary

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
Warning:
holding a reference to the dictionary, while the original container is destroyed is a not-so-good-idea.

Definition at line 334 of file pymap.h.

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

Definition at line 339 of file pymap.h.


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

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