Example #1
0
 vector_property_map(unsigned initial_size, 
                     const IndexMap& index = IndexMap())
 : store(new std::vector<T>(initial_size)), index(index)
 {}
Example #2
0
 vector_property_map(const IndexMap& index = IndexMap())
 : store(new std::vector<T>()), index(index)
 {}
 explicit two_bit_color_map(std::size_t n, const IndexMap& index = IndexMap())
   : n(n), index(index), data(new unsigned char[(n + 3) / 4])
 {
   // Fill to white
   std::fill(data.get(), data.get() + (n + 3) / 4, 0);
 }
Example #4
0
 const_vertex_map_type get_vertex_bundle(const IndexMap& index_map = IndexMap()) const {
   return const_vertex_map_type(m_vertex_properties.begin(), index_map);
 }
Example #5
0
 edge_map_type get_edge_bundle(const IndexMap& = IndexMap()) const {
   return edge_map_type();
 }
Example #6
0
 edge_map_type get_edge_bundle(const IndexMap& index_map = IndexMap()) {
   return edge_map_type(m_edge_properties.begin(), index_map);
 }