Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-05-10 22:00:59


Douglas Gregor <gregod_at_[hidden]> writes:

> I just finished writing out a BGL algorithm that requires 9 utility property
> maps (!), and I found that I didn't want to separately allocate 9 vectors for
> use with iterator property maps. Instead, I packaged all the data for the
> separate property maps (all vertex property maps) into a single data
> structure and wrote a property map adaptor that projects from a data
> structure to a member. Now I only have to allocate a single vector of this
> data bundle, and create a few projection property maps to each of the
> members.
>
> Here's the projection_property_map class template. Anyone need it in
> boost/property_map.hpp?

Boost property_map_adaptors library anyone?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk