[C++-sig] Exposing members of members (original) (raw)
David Abrahams dave at boostpro.com
Tue Jan 20 20:57:39 CET 2009
- Previous message: [C++-sig] Exposing members of members
- Next message: [C++-sig] [ANN] Py++ based ctypes code generator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
on Tue Jan 20 2009, Ricardo Abreu <gumbeto-AT-gmail.com> wrote:
Thank you very much for your answer, but what I really wanted was to expose to Python just the first element of the pair and not the whole pair, so that the fact that it is a pair in c++ would be transparent to python.
Looks like you want to use class_<...> .add_property( ... )
http://www.boost.org/doc/libs/1_37_0/libs/python/doc/v2/class.html#class_-spec-modifiers
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
- Previous message: [C++-sig] Exposing members of members
- Next message: [C++-sig] [ANN] Py++ based ctypes code generator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]