FullGraph class.
8 template <typename G, typename K, typename KIt>
16 template <typename G, typename K, typename KIt>
23 typedef MapBase<Graph, Key, KIt> Map;
28 typedef std::vector<Map*> Container;
36 MapRegistry(const MapRegistry&) {}
38 MapRegistry& operator=(const MapRegistry&) {
39 for (it = container.begin(); it != container.end(); ++it) {
47 typename Container::iterator it;
48 for (it = container.begin(); it != container.end(); ++it) {
58 void attach(Map& map) {
60 map.registry->detach(map);
62 container.push_back(&map);
64 map.registry_index = container.size()-1;
68 void detach(Map& map_base) {
70 container.back()->registry_index = map_base.registry_index;
71 container[map_base.registry_index] = container.back();
73 map_base.registry = 0;
79 typename Container::iterator it;
80 for (it = container.begin(); it != container.end(); ++it) {
85 void erase(Key& key) {
86 typename Container::iterator it;
87 for (it = container.begin(); it != container.end(); ++it) {