equal
deleted
inserted
replaced
235 /// |
235 /// |
236 /// Executes the writer commands. |
236 /// Executes the writer commands. |
237 void run() { |
237 void run() { |
238 writer->run(); |
238 writer->run(); |
239 } |
239 } |
|
240 |
|
241 /// \brief Write the id of the given node. |
|
242 /// |
|
243 /// It writes the id of the given node. If there was written an "id" |
|
244 /// named node map then it will write the map value belongs to the node. |
|
245 void writeId(std::ostream& os, const Node& item) const { |
|
246 nodeset_writer.writeId(os, item); |
|
247 } |
|
248 |
|
249 /// \brief Write the id of the given edge. |
|
250 /// |
|
251 /// It writes the id of the given edge. If there was written an "id" |
|
252 /// named edge map then it will write the map value belongs to the edge. |
|
253 void writeId(std::ostream& os, const Edge& item) const { |
|
254 edgeset_writer.writeId(os, item); |
|
255 } |
240 |
256 |
241 private: |
257 private: |
242 |
258 |
243 LemonWriter* writer; |
259 LemonWriter* writer; |
244 bool own_writer; |
260 bool own_writer; |
545 } |
561 } |
546 |
562 |
547 /// \brief Add a new labeled edge writer for the writer. |
563 /// \brief Add a new labeled edge writer for the writer. |
548 /// |
564 /// |
549 /// Add a new labeled edge writer for the writer. |
565 /// Add a new labeled edge writer for the writer. |
|
566 UndirGraphWriter& writeEdge(std::string name, const Edge& edge) { |
|
567 undir_edge_writer.writeEdge(name, edge); |
|
568 } |
|
569 |
|
570 /// \brief Add a new labeled undirected edge writer for the writer. |
|
571 /// |
|
572 /// Add a new labeled undirected edge writer for the writer. |
550 UndirGraphWriter& writeUndirEdge(std::string name, const UndirEdge& edge) { |
573 UndirGraphWriter& writeUndirEdge(std::string name, const UndirEdge& edge) { |
551 undir_edge_writer.writeUndirEdge(name, edge); |
574 undir_edge_writer.writeUndirEdge(name, edge); |
552 } |
575 } |
553 |
576 |
554 /// \brief Add a new attribute writer command. |
577 /// \brief Add a new attribute writer command. |
584 /// |
607 /// |
585 /// Executes the writer commands. |
608 /// Executes the writer commands. |
586 void run() { |
609 void run() { |
587 writer->run(); |
610 writer->run(); |
588 } |
611 } |
|
612 |
|
613 /// \brief Write the id of the given node. |
|
614 /// |
|
615 /// It writes the id of the given node. If there was written an "id" |
|
616 /// named node map then it will write the map value belongs to the node. |
|
617 void writeId(std::ostream& os, const Node& item) const { |
|
618 nodeset_writer.writeId(os, item); |
|
619 } |
|
620 |
|
621 /// \brief Write the id of the given edge. |
|
622 /// |
|
623 /// It writes the id of the given edge. If there was written an "id" |
|
624 /// named edge map then it will write the map value belongs to the edge. |
|
625 void writeId(std::ostream& os, const Edge& item) const { |
|
626 undir_edgeset_writer.writeId(os, item); |
|
627 } |
|
628 |
|
629 /// \brief Write the id of the given undirected edge. |
|
630 /// |
|
631 /// It writes the id of the given undirected edge. If there was written |
|
632 /// an "id" named edge map then it will write the map value belongs to |
|
633 /// the edge. |
|
634 void writeId(std::ostream& os, const UndirEdge& item) const { |
|
635 undir_edgeset_writer.writeId(os, item); |
|
636 } |
|
637 |
589 |
638 |
590 private: |
639 private: |
591 |
640 |
592 LemonWriter* writer; |
641 LemonWriter* writer; |
593 bool own_writer; |
642 bool own_writer; |