GraphLibrary  0.0.1
A simple library that implements various graph algorithms.
 All Classes Namespaces Files Functions Variables Typedefs Macros
YAMLReader.hpp File Reference
#include "../structures/Graph.hpp"
#include "../gl_base.hpp"
#include <fstream>
#include <variant>
#include <sstream>

Go to the source code of this file.

Classes

class  gl::io::YAMLReader
 Class to Read from a YAML file. More...
 

Namespaces

 gl
 
 gl::io
 

Macros

#define IO_GRAPH   (*arg)
 Template object to use with IO_CALL_ON_GRAPH. More...
 
#define IO_CALL_ON_GRAPH(g, func)   std::visit([&](auto arg) { func; }, g)
 Custom function on parsed graphs. More...
 

Macro Definition Documentation

#define IO_GRAPH   (*arg)

Template object to use with IO_CALL_ON_GRAPH.

#define IO_CALL_ON_GRAPH (   g,
  func 
)    std::visit([&](auto arg) { func; }, g)

Custom function on parsed graphs.

Parameters
gThe graph (graph_variant_type) got from YAMLReader::get
funcA normal line of c++ to be executed (use IO_GRAPH to template the graph object)