GraphLibrary  0.0.1
A simple library that implements various graph algorithms.
 All Classes Namespaces Files Functions Variables Typedefs Macros
gl::io::YAMLReader Class Reference

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...
 

Detailed Description

Class to Read from a YAML file.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

gl::io::YAMLReader::YAMLReader ( )
inline

Default constructor.

gl::io::YAMLReader::YAMLReader ( const char *  filename)

Construct with filename.

Member Function Documentation

void gl::io::YAMLReader::setFilename ( const char *  filename)

Set the Filename to use.

Parameters
filenameLocation of file to read from
graph_variant_type gl::io::YAMLReader::get ( )
inline

Get the graph-variant.

Returns
A variable containing a pointer to a graph variant
void gl::io::YAMLReader::read ( )

Reads the file, generates graph This is automatically done in YAMLReader(const char *filename)

Member Data Documentation

std::fstream gl::io::YAMLReader::stream_
private

the filestream to use

graph_variant_type gl::io::YAMLReader::graph_
private

the graph variant


The documentation for this class was generated from the following file: