A Read/Write Property Map provides the get() function to obtain the value associated with a key, and the put() function to associate a value with a key.
Readable Property Map and Writable Property Map
PMap | A type that is a model of Read/Write Property Map. |
Property Map Category | boost::property_traits<PMap>::category | Must be convertible to boost::read_write_property_map_tag. |
template <class PMap, class Key>
struct ReadWritePropertyMapConcept
{
typedef typename property_traits<PMap>::category Category;
typedef boost::read_write_property_map_tag ReadWriteTag;
void constraints() {
function_requires< ReadablePropertyMapConcept<PMap, Key> >();
function_requires< WritablePropertyMapConcept<PMap, Key> >();
function_requires< ConvertibleConcept<Category, ReadWriteTag> >();
}
};
Property map concepts - Readable Property Map - Writable Property Map - Lvalue Property Map - Mutable Lvalue Property Map
Copyright © 2000-2012 |
Jeremy Siek, Univ.of Notre Dame (jsiek@lsc.nd.edu) Alex Hagen-Zanker |