1803 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1803 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1804 _blue_maps.push_back(std::make_pair(caption, blue_storage)); |
1804 _blue_maps.push_back(std::make_pair(caption, blue_storage)); |
1805 return *this; |
1805 return *this; |
1806 } |
1806 } |
1807 |
1807 |
1808 /// \brief Red map writing rule |
1808 /// \brief Red node map writing rule |
1809 /// |
1809 /// |
1810 /// Add a red map writing rule to the writer. |
1810 /// Add a red node map writing rule to the writer. |
1811 template <typename Map> |
1811 template <typename Map> |
1812 BpGraphWriter& redMap(const std::string& caption, const Map& map) { |
1812 BpGraphWriter& redNodeMap(const std::string& caption, const Map& map) { |
1813 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1813 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1814 _writer_bits::MapStorageBase<Node>* storage = |
1814 _writer_bits::MapStorageBase<Node>* storage = |
1815 new _writer_bits::MapStorage<Node, Map>(map); |
1815 new _writer_bits::MapStorage<Node, Map>(map); |
1816 _red_maps.push_back(std::make_pair(caption, storage)); |
1816 _red_maps.push_back(std::make_pair(caption, storage)); |
1817 return *this; |
1817 return *this; |
1818 } |
1818 } |
1819 |
1819 |
1820 /// \brief Red map writing rule |
1820 /// \brief Red node map writing rule |
1821 /// |
1821 /// |
1822 /// Add a red map writing rule with specialized converter to the |
1822 /// Add a red node map writing rule with specialized converter to the |
1823 /// writer. |
1823 /// writer. |
1824 template <typename Map, typename Converter> |
1824 template <typename Map, typename Converter> |
1825 BpGraphWriter& redMap(const std::string& caption, const Map& map, |
1825 BpGraphWriter& redNodeMap(const std::string& caption, const Map& map, |
1826 const Converter& converter = Converter()) { |
1826 const Converter& converter = Converter()) { |
1827 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1827 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1828 _writer_bits::MapStorageBase<Node>* storage = |
1828 _writer_bits::MapStorageBase<Node>* storage = |
1829 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1829 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1830 _red_maps.push_back(std::make_pair(caption, storage)); |
1830 _red_maps.push_back(std::make_pair(caption, storage)); |
1831 return *this; |
1831 return *this; |
1832 } |
1832 } |
1833 |
1833 |
1834 /// \brief Blue map writing rule |
1834 /// \brief Blue node map writing rule |
1835 /// |
1835 /// |
1836 /// Add a blue map writing rule to the writer. |
1836 /// Add a blue node map writing rule to the writer. |
1837 template <typename Map> |
1837 template <typename Map> |
1838 BpGraphWriter& blueMap(const std::string& caption, const Map& map) { |
1838 BpGraphWriter& blueNodeMap(const std::string& caption, const Map& map) { |
1839 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1839 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1840 _writer_bits::MapStorageBase<Node>* storage = |
1840 _writer_bits::MapStorageBase<Node>* storage = |
1841 new _writer_bits::MapStorage<Node, Map>(map); |
1841 new _writer_bits::MapStorage<Node, Map>(map); |
1842 _blue_maps.push_back(std::make_pair(caption, storage)); |
1842 _blue_maps.push_back(std::make_pair(caption, storage)); |
1843 return *this; |
1843 return *this; |
1844 } |
1844 } |
1845 |
1845 |
1846 /// \brief Blue map writing rule |
1846 /// \brief Blue node map writing rule |
1847 /// |
1847 /// |
1848 /// Add a blue map writing rule with specialized converter to the |
1848 /// Add a blue node map writing rule with specialized converter to the |
1849 /// writer. |
1849 /// writer. |
1850 template <typename Map, typename Converter> |
1850 template <typename Map, typename Converter> |
1851 BpGraphWriter& blueMap(const std::string& caption, const Map& map, |
1851 BpGraphWriter& blueNodeMap(const std::string& caption, const Map& map, |
1852 const Converter& converter = Converter()) { |
1852 const Converter& converter = Converter()) { |
1853 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1853 checkConcept<concepts::ReadMap<Node, typename Map::Value>, Map>(); |
1854 _writer_bits::MapStorageBase<Node>* storage = |
1854 _writer_bits::MapStorageBase<Node>* storage = |
1855 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1855 new _writer_bits::MapStorage<Node, Map, Converter>(map, converter); |
1856 _blue_maps.push_back(std::make_pair(caption, storage)); |
1856 _blue_maps.push_back(std::make_pair(caption, storage)); |
1857 return *this; |
1857 return *this; |