Adding property maps of custom types

The simplest thing for you to do is to use Boost.Python to reflect your
custom types to python, which then you can store in a property map of
type "python::object". You can access the property map values from your
C++ extension by using python::extract().

Thank you for the reply!
Do you know, is there's any noticeable overhead of frequent python::extract() calls? Is it urgent to have some pre-extracted data-structure on c++ side, or this is similar to having a pointer?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

вторник, 13 июля 2021 г., 23:44, Tiago de Paula Peixoto <tiago(a)skewed.de> написал(а):

One more question: if I want these c++ objects, that are exposed to python with boost::python, to be an internal property maps and so be (de)serialized with the graph (from)into .gt format, should I write a boost::python pickle support functions for these classes?
Will it work?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

вторник, 13 июля 2021 г., 23:44, Tiago de Paula Peixoto <tiago(a)skewed.de> написал(а):