CGRA-ME
Public Types | Public Member Functions | Public Attributes | List of all members
StringIDGraph Struct Reference

#include <GraphAlgorithmHelpers.h>

Public Types

using VertexID = std::string
 

Public Member Functions

VertexID insert (std::string name)
 
VertexID insert (VertexID fanin, std::string name)
 
template<typename VertexIDList = std::initializer_list<VertexID>>
VertexID insertMultiFanin (const VertexIDList &fanins, std::string name)
 
void link (const VertexID &source, const VertexID &target)
 
auto & fanout (const VertexID &ndesc) const
 

Public Attributes

std::map< std::string, std::vector< VertexID > > fanout_lists = {}
 

Detailed Description

A super simple graph, where the VertexID is just std::string Useful for writing tests, mostly.

Definition at line 286 of file GraphAlgorithmHelpers.h.

Member Typedef Documentation

◆ VertexID

using StringIDGraph::VertexID = std::string

Definition at line 287 of file GraphAlgorithmHelpers.h.

Member Function Documentation

◆ fanout()

auto& StringIDGraph::fanout ( const VertexID ndesc) const
inline

Definition at line 313 of file GraphAlgorithmHelpers.h.

◆ insert() [1/2]

VertexID StringIDGraph::insert ( std::string  name)
inline

Definition at line 290 of file GraphAlgorithmHelpers.h.

◆ insert() [2/2]

VertexID StringIDGraph::insert ( VertexID  fanin,
std::string  name 
)
inline

Definition at line 294 of file GraphAlgorithmHelpers.h.

◆ insertMultiFanin()

template<typename VertexIDList = std::initializer_list<VertexID>>
VertexID StringIDGraph::insertMultiFanin ( const VertexIDList &  fanins,
std::string  name 
)
inline

Definition at line 301 of file GraphAlgorithmHelpers.h.

◆ link()

void StringIDGraph::link ( const VertexID source,
const VertexID target 
)
inline

Definition at line 309 of file GraphAlgorithmHelpers.h.

Member Data Documentation

◆ fanout_lists

std::map<std::string, std::vector<VertexID> > StringIDGraph::fanout_lists = {}

Definition at line 288 of file GraphAlgorithmHelpers.h.


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