library of assembled shared sources

http://lass.cocamware.com

lass::python::PyExportTraits< std::map< K, V, P, A > > Struct Template Reference
[Python]

#include <pymap.h>

Inheritance diagram for lass::python::PyExportTraits< std::map< K, V, P, A > >:

Inheritance graph
[legend]
Collaboration diagram for lass::python::PyExportTraits< std::map< K, V, P, A > >:

Collaboration 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 K, typename V, typename P, typename A>
struct lass::python::PyExportTraits< std::map< K, V, P, A > >

Definition at line 383 of file pymap.h.


Member Typedef Documentation

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

Definition at line 316 of file pymap.h.


Member Function Documentation

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

Definition at line 323 of file pymap.h.

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

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.

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


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