@uedges
uedges_name
, but the uedges_name
may be empty.
Each line in the section contains the name of the undirected edge and then the undirected edge label. #include <lemon/lemon_writer.h>
Public Member Functions | |
template<typename _LabelWriter > | |
UEdgeWriter (LemonWriter &_writer, const _LabelWriter &_labelWriter, const std::string &_name=std::string()) | |
Constructor. | |
virtual | ~UEdgeWriter () |
Destructor. | |
void | writeEdge (std::string label, const Edge &item) |
void | writeUEdge (std::string label, const UEdge &item) |
Protected Member Functions | |
virtual std::string | header () |
The header of the section. | |
virtual void | write (std::ostream &os) |
Writer function of the section. | |
virtual bool | valid () |
UEdgeWriter | ( | LemonWriter & | _writer, | |
const _LabelWriter & | _labelWriter, | |||
const std::string & | _name = std::string() | |||
) | [inline] |
Constructor for UEdgeWriter. It creates the UEdgeWriter and attach it into the given LemonWriter. The given _LabelWriter
will write the undirected edges' label what can be an undirected edgeset writer.
virtual ~UEdgeWriter | ( | ) | [inline, virtual] |
Destructor for UEdgeWriter.
void writeEdge | ( | std::string | label, | |
const Edge & | item | |||
) | [inline] |
Add an edge writer command for the UEdgeWriter.
void writeUEdge | ( | std::string | label, | |
const UEdge & | item | |||
) | [inline] |
Add an undirected edge writer command for the UEdgeWriter.
virtual std::string header | ( | ) | [inline, protected, virtual] |
It gives back the header of the section.
Implements SectionWriter.
virtual void write | ( | std::ostream & | os | ) | [inline, protected, virtual] |
Write the content of the section.
Implements SectionWriter.
virtual bool valid | ( | ) | [inline, protected, virtual] |
Gives back true when the section should be written.
Reimplemented from SectionWriter.