PairToTupleConverter< T1, T2 > Struct Template Reference

helper to convert between python tuple and std::pair More...

#include <pair_to_tuple_conv.hh>


Static Public Member Functions

static PyObject * convert (const std::pair< T1, T2 > &pair)


Detailed Description

template<class T1, class T2>
struct ost::PairToTupleConverter< T1, T2 >

helper to convert between python tuple and std::pair

Usage:

register_to_python_converter<PairToTupleConverter<T1, T2>, std::pair<T1, T2>>()

Definition at line 30 of file pair_to_tuple_conv.hh.


Member Function Documentation

static PyObject* convert ( const std::pair< T1, T2 > &  pair  )  [inline, static]

Definition at line 31 of file pair_to_tuple_conv.hh.


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

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8