Changeset 1026:699c7eac2c6d in lemon-main for lemon/lgf_reader.h
- Timestamp:
- 01/11/12 22:21:07 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lgf_reader.h
r1024 r1026 2149 2149 /// sections can contain different set of maps. 2150 2150 /// 2151 /// The red and blue maps are read from the corresponding2151 /// The red and blue node maps are read from the corresponding 2152 2152 /// sections. If a map is defined with the same name in both of 2153 2153 /// these sections, then it can be read as a node map. … … 2338 2338 } 2339 2339 2340 /// Add a red map reading rule to the reader.2340 /// Add a red node map reading rule to the reader. 2341 2341 template <typename Map> 2342 BpGraphReader& red Map(const std::string& caption, Map& map) {2342 BpGraphReader& redNodeMap(const std::string& caption, Map& map) { 2343 2343 checkConcept<concepts::WriteMap<Node, typename Map::Value>, Map>(); 2344 2344 _reader_bits::MapStorageBase<Node>* storage = … … 2348 2348 } 2349 2349 2350 /// \brief Red map reading rule2351 /// 2352 /// Add a red map reading rule with specialized converter to the2353 /// reader.2350 /// \brief Red node map reading rule 2351 /// 2352 /// Add a red node map node reading rule with specialized converter to 2353 /// the reader. 2354 2354 template <typename Map, typename Converter> 2355 BpGraphReader& red Map(const std::string& caption, Map& map,2356 const Converter& converter = Converter()) {2355 BpGraphReader& redNodeMap(const std::string& caption, Map& map, 2356 const Converter& converter = Converter()) { 2357 2357 checkConcept<concepts::WriteMap<Node, typename Map::Value>, Map>(); 2358 2358 _reader_bits::MapStorageBase<Node>* storage = … … 2362 2362 } 2363 2363 2364 /// Add a blue map reading rule to the reader.2364 /// Add a blue node map reading rule to the reader. 2365 2365 template <typename Map> 2366 BpGraphReader& blue Map(const std::string& caption, Map& map) {2366 BpGraphReader& blueNodeMap(const std::string& caption, Map& map) { 2367 2367 checkConcept<concepts::WriteMap<Node, typename Map::Value>, Map>(); 2368 2368 _reader_bits::MapStorageBase<Node>* storage = … … 2372 2372 } 2373 2373 2374 /// \brief Blue map reading rule2375 /// 2376 /// Add a blue map reading rule with specialized converter to the2377 /// reader.2374 /// \brief Blue node map reading rule 2375 /// 2376 /// Add a blue node map reading rule with specialized converter to 2377 /// the reader. 2378 2378 template <typename Map, typename Converter> 2379 BpGraphReader& blue Map(const std::string& caption, Map& map,2380 const Converter& converter = Converter()) {2379 BpGraphReader& blueNodeMap(const std::string& caption, Map& map, 2380 const Converter& converter = Converter()) { 2381 2381 checkConcept<concepts::WriteMap<Node, typename Map::Value>, Map>(); 2382 2382 _reader_bits::MapStorageBase<Node>* storage = … … 2685 2685 if (maps.find(map) != maps.end()) { 2686 2686 std::ostringstream msg; 2687 msg << "Multiple occurence of red map: " << map;2687 msg << "Multiple occurence of red node map: " << map; 2688 2688 throw FormatError(msg.str()); 2689 2689 } … … 2778 2778 if (maps.find(map) != maps.end()) { 2779 2779 std::ostringstream msg; 2780 msg << "Multiple occurence of blue map: " << map;2780 msg << "Multiple occurence of blue node map: " << map; 2781 2781 throw FormatError(msg.str()); 2782 2782 }
Note: See TracChangeset
for help on using the changeset viewer.