CGRA-ME
Classes | Functions
ConfigGraph.h File Reference
#include <CGRA/ConfigStore.h>
#include <CGRA/utility/Collections.h>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>

Go to the source code of this file.

Classes

struct  DotIDPrinter< T >
 
class  ConfigGraph
 
struct  ConfigGraph::NameNameConfigStore
 
struct  ConfigGraph::VertexID
 
struct  ConfigGraph::EdgeID
 

Functions

auto printDotID (std::ostream &os, const std::string &id) -> std::ostream &
 
template<typename T >
auto dotIDPrinter (T &t) -> DotIDPrinter< T >
 

Function Documentation

◆ dotIDPrinter()

template<typename T >
auto dotIDPrinter ( T &  t) -> DotIDPrinter<T>

A make_* function for DotIDPrinter. Constructs one from the argument given. Note: the return value uses the address of the argument. Ex. std::cout << dotIDPrinter("abc");

Definition at line 67 of file ConfigGraph.h.

◆ printDotID()

auto printDotID ( std::ostream &  os,
const std::string &  id 
) -> std::ostream&
inline

Helper function for printing DOT IDs (nodes, attribute key & values) Escapes quotes correctly, and mostly doesn't quote things unless necessary

Definition at line 26 of file ConfigGraph.h.