Template Struct overload_base_get_item_for_map

Inheritance Relationships

Base Type

  • public boost::python::def_visitor< overload_base_get_item_for_map< Container > >

Struct Documentation

template<typename Container>
struct overload_base_get_item_for_map : public boost::python::def_visitor<overload_base_get_item_for_map<Container>>

Change the behavior of indexing (method getitem in Python). This is suitable e.g. for container of Eigen matrix objects if you want to mutate them.

See also

overload_base_get_item_for_std_vector

Public Types

typedef Container::value_type value_type
typedef Container::value_type::second_type data_type
typedef Container::key_type key_type
typedef Container::key_type index_type

Public Functions

template<class Class>
inline void visit(Class &cl) const