Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Types | Static Public Member Functions
swig::traits_asptr< std::map< K, T > > Struct Template Reference

List of all members.

Public Types

typedef std::map< K, T > map_type

Static Public Member Functions

static int asptr (PyObject *obj, map_type **val)

Detailed Description

template<class K, class T>
struct swig::traits_asptr< std::map< K, T > >

Definition at line 4543 of file arc_wrap.cpp.


Member Typedef Documentation

template<class K , class T >
typedef std::map<K,T> swig::traits_asptr< std::map< K, T > >::map_type

Definition at line 4544 of file arc_wrap.cpp.


Member Function Documentation

template<class K , class T >
static int swig::traits_asptr< std::map< K, T > >::asptr ( PyObject *  obj,
map_type **  val 
) [inline, static]

Definition at line 4545 of file arc_wrap.cpp.

                                                      {
       int res = SWIG_ERROR;
       if (PyDict_Check(obj)) {
         PyObject_var items = PyObject_CallMethod(obj,(char *)"items",NULL);
         res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
       } else {
         map_type *p;
         res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
         if (SWIG_IsOK(res) && val)  *val = p;
       }
       return res;
      }      

Here is the call graph for this function:


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