CGRA-ME
Functions
MRRG.cpp File Reference
#include <algorithm>
#include <iostream>
#include <queue>
#include <sstream>
#include <vector>
#include <CGRA/Exception.h>
#include <CGRA/MRRG.h>
#include <CGRA/MRRGProcedures.h>
#include <CGRA/utility/Collections.h>

Go to the source code of this file.

Functions

static std::string find_cluster_name (std::string s1, std::string s2)
 
static bool isDirectSubCluster (std::string c, std::string sub)
 
bool verifyAndPrintReport (const MRRG &mrrg, std::ostream &os, bool silent_on_no_errors, bool throw_if_errors, const ConfigStore &extra_opts)
 
static void print_subcluster (std::map< std::string, std::string > &clusters, std::string current_cluster, std::ostream &os)
 
std::ostream & operator<< (std::ostream &out, const MRRGNode &node)
 
template<typename T >
static bool check_unique (std::vector< T > v)
 
static void link (MRRGNode *driver, MRRGNode *fanout)
 
static void unlink (MRRGNode *driver, MRRGNode *fanout)
 

Function Documentation

◆ check_unique()

template<typename T >
static bool check_unique ( std::vector< T >  v)
static

Definition at line 599 of file MRRG.cpp.

◆ find_cluster_name()

static std::string find_cluster_name ( std::string  s1,
std::string  s2 
)
static

Definition at line 425 of file MRRG.cpp.

◆ isDirectSubCluster()

static bool isDirectSubCluster ( std::string  c,
std::string  sub 
)
static

Definition at line 443 of file MRRG.cpp.

◆ link()

static void link ( MRRGNode driver,
MRRGNode fanout 
)
static

Definition at line 822 of file MRRG.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const MRRGNode node 
)

Definition at line 593 of file MRRG.cpp.

◆ print_subcluster()

static void print_subcluster ( std::map< std::string, std::string > &  clusters,
std::string  current_cluster,
std::ostream &  os 
)
static

Definition at line 485 of file MRRG.cpp.

◆ unlink()

static void unlink ( MRRGNode driver,
MRRGNode fanout 
)
static

Definition at line 829 of file MRRG.cpp.

◆ verifyAndPrintReport()

bool verifyAndPrintReport ( const MRRG mrrg,
std::ostream &  os,
bool  silent_on_no_errors,
bool  throw_if_errors,
const ConfigStore extra_opts = {} 
)

A routine for verifying the MRRG. Prints out a success message, unless told not to. Can throw if errors are found. Returns true if no errors found extra_opts is passed to MRRG::verify

Definition at line 473 of file MRRG.cpp.