summaryrefslogtreecommitdiff
path: root/boost/property_map/vector_property_map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/property_map/vector_property_map.hpp')
-rw-r--r--boost/property_map/vector_property_map.hpp90
1 files changed, 2 insertions, 88 deletions
diff --git a/boost/property_map/vector_property_map.hpp b/boost/property_map/vector_property_map.hpp
index a97fb8105b..ceb975a3d4 100644
--- a/boost/property_map/vector_property_map.hpp
+++ b/boost/property_map/vector_property_map.hpp
@@ -93,93 +93,7 @@ namespace boost {
}
#ifdef BOOST_GRAPH_USE_MPI
-#include <boost/property_map/parallel/distributed_property_map.hpp>
-#include <boost/property_map/parallel/local_property_map.hpp>
-
-namespace boost {
-
-/** Distributed vector property map.
- *
- * This specialization of @ref vector_property_map builds a
- * distributed vector property map given the local index maps
- * generated by distributed graph types that automatically have index
- * properties.
- *
- * This specialization is useful when creating external distributed
- * property maps via the same syntax used to create external
- * sequential property maps.
- */
-template<typename T, typename ProcessGroup, typename GlobalMap,
- typename StorageMap>
-class vector_property_map<T,
- local_property_map<ProcessGroup, GlobalMap,
- StorageMap> >
- : public parallel::distributed_property_map<
- ProcessGroup, GlobalMap, vector_property_map<T, StorageMap> >
-{
- typedef vector_property_map<T, StorageMap> local_iterator_map;
-
- typedef parallel::distributed_property_map<ProcessGroup, GlobalMap,
- local_iterator_map> inherited;
-
- typedef local_property_map<ProcessGroup, GlobalMap, StorageMap> index_map_type;
-
-public:
- vector_property_map(const index_map_type& index = index_map_type())
- : inherited(index.process_group(), index.global(),
- local_iterator_map(index.base())) { }
-
- vector_property_map(unsigned inital_size,
- const index_map_type& index = index_map_type())
- : inherited(index.process_group(), index.global(),
- local_iterator_map(inital_size, index.base())) { }
-};
-
-/** Distributed vector property map.
- *
- * This specialization of @ref vector_property_map builds a
- * distributed vector property map given the local index maps
- * generated by distributed graph types that automatically have index
- * properties.
- *
- * This specialization is useful when creating external distributed
- * property maps via the same syntax used to create external
- * sequential property maps.
- */
-template<typename T, typename ProcessGroup, typename GlobalMap,
- typename StorageMap>
-class vector_property_map<
- T,
- parallel::distributed_property_map<
- ProcessGroup,
- GlobalMap,
- StorageMap
- >
- >
- : public parallel::distributed_property_map<
- ProcessGroup, GlobalMap, vector_property_map<T, StorageMap> >
-{
- typedef vector_property_map<T, StorageMap> local_iterator_map;
-
- typedef parallel::distributed_property_map<ProcessGroup, GlobalMap,
- local_iterator_map> inherited;
-
- typedef parallel::distributed_property_map<ProcessGroup, GlobalMap,
- StorageMap>
- index_map_type;
-
-public:
- vector_property_map(const index_map_type& index = index_map_type())
- : inherited(index.process_group(), index.global(),
- local_iterator_map(index.base())) { }
-
- vector_property_map(unsigned inital_size,
- const index_map_type& index = index_map_type())
- : inherited(index.process_group(), index.global(),
- local_iterator_map(inital_size, index.base())) { }
-};
-
-}
-#endif // BOOST_GRAPH_USE_MPI
+#include <boost/property_map/parallel/vector_property_map.hpp>
+#endif
#endif