|
GraphLibrary
0.0.1
A simple library that implements various graph algorithms.
|
Class to Read from a YAML file. More...
#include <YAMLReader.hpp>
Public Types | |
| using | graph_variant_type = std::variant< graphMdu *, graphMdd *, graphLdu *, graphLdd *, graphMfu *, graphMfd *, graphLfu *, graphLfd *, graphMiu *, graphMid *, graphLiu *, graphLid * > |
| All possible variants of graphs. More... | |
Public Member Functions | |
| YAMLReader () | |
| Default constructor. More... | |
| YAMLReader (const char *filename) | |
| Construct with filename. More... | |
| void | setFilename (const char *filename) |
| Set the Filename to use. More... | |
| graph_variant_type | get () |
| Get the graph-variant. More... | |
| void | read () |
| Reads the file, generates graph This is automatically done in YAMLReader(const char *filename) More... | |
Private Attributes | |
| std::fstream | stream_ |
| the filestream to use More... | |
| graph_variant_type | graph_ |
| the graph variant More... | |
Class to Read from a YAML file.
| using gl::io::YAMLReader::graph_variant_type = std::variant<graphMdu *, graphMdd *, graphLdu *, graphLdd *, graphMfu *, graphMfd *, graphLfu *, graphLfd *, graphMiu *, graphMid *, graphLiu *, graphLid *> |
All possible variants of graphs.
|
inline |
Default constructor.
| gl::io::YAMLReader::YAMLReader | ( | const char * | filename | ) |
Construct with filename.
| void gl::io::YAMLReader::setFilename | ( | const char * | filename | ) |
Set the Filename to use.
| filename | Location of file to read from |
|
inline |
Get the graph-variant.
| void gl::io::YAMLReader::read | ( | ) |
Reads the file, generates graph This is automatically done in YAMLReader(const char *filename)
|
private |
the filestream to use
|
private |
the graph variant