|
void | add (const Graph &graph, adjMatrix_t &adjMatrix, const std::string &graphId, Solver *userSolver) |
|
bool | compare (int needleEdge, int haystackEdge, const std::map< std::string, std::set< std::set< std::string >>> &swapPorts, const std::map< std::string, std::set< std::map< std::string, std::string >>> &swapPermutations) |
|
bool | compare (int needleEdge, int haystackEdge, const std::map< std::string, std::string > &mapFromPorts, const std::map< std::string, std::set< std::set< std::string >>> &swapPorts, const std::map< std::string, std::set< std::map< std::string, std::string >>> &swapPermutations) const |
|
bool | compare (int needleEdge, int haystackEdge, const std::map< std::string, std::string > &mapFromPorts, const std::map< std::string, std::string > &mapToPorts) const |
|
void | printEdgeTypes () const |
|
Definition at line 656 of file subcircuit.cc.
void SubCircuit::SolverWorker::DiCache::add |
( |
const Graph & |
graph, |
|
|
adjMatrix_t & |
adjMatrix, |
|
|
const std::string & |
graphId, |
|
|
Solver * |
userSolver |
|
) |
| |
|
inline |
Definition at line 662 of file subcircuit.cc.
664 std::map<std::pair<int, int>, DiEdge> edges;
668 adjMatrix.resize(graph.
nodes.size());
670 for (
auto &it : edges) {
676 for (
const auto &it : edges) {
681 adjMatrix[it.first.first][it.first.second] =
edgeTypesMap[it.second];
virtual std::string userAnnotateEdge(const std::string &graphId, const std::string &fromNodeId, void *fromUserData, const std::string &toNodeId, void *toUserData)
std::vector< Node > nodes
std::vector< DiEdge > edgeTypes
static void findEdgesInGraph(const Graph &graph, std::map< std::pair< int, int >, DiEdge > &edges)
std::map< DiEdge, int > edgeTypesMap
bool SubCircuit::SolverWorker::DiCache::compare |
( |
int |
needleEdge, |
|
|
int |
haystackEdge, |
|
|
const std::map< std::string, std::set< std::set< std::string >>> & |
swapPorts, |
|
|
const std::map< std::string, std::set< std::map< std::string, std::string >>> & |
swapPermutations |
|
) |
| |
|
inline |
Definition at line 685 of file subcircuit.cc.
688 std::pair<int, int> key(needleEdge, haystackEdge);
std::map< std::string, std::set< std::map< std::string, std::string > > > swapPermutations
std::map< std::pair< int, int >, bool > compareCache
std::vector< DiEdge > edgeTypes
std::map< std::string, std::set< std::set< std::string > > > swapPorts
bool SubCircuit::SolverWorker::DiCache::compare |
( |
int |
needleEdge, |
|
|
int |
haystackEdge, |
|
|
const std::map< std::string, std::string > & |
mapFromPorts, |
|
|
const std::map< std::string, std::set< std::set< std::string >>> & |
swapPorts, |
|
|
const std::map< std::string, std::set< std::map< std::string, std::string >>> & |
swapPermutations |
|
) |
| const |
|
inline |
Definition at line 694 of file subcircuit.cc.
std::map< std::string, std::set< std::map< std::string, std::string > > > swapPermutations
std::vector< DiEdge > edgeTypes
std::map< std::string, std::set< std::set< std::string > > > swapPorts
bool SubCircuit::SolverWorker::DiCache::compare |
( |
int |
needleEdge, |
|
|
int |
haystackEdge, |
|
|
const std::map< std::string, std::string > & |
mapFromPorts, |
|
|
const std::map< std::string, std::string > & |
mapToPorts |
|
) |
| const |
|
inline |
Definition at line 700 of file subcircuit.cc.
702 return edgeTypes.at(needleEdge).compare(
edgeTypes.at(haystackEdge), mapFromPorts, mapToPorts);
std::vector< DiEdge > edgeTypes
void SubCircuit::SolverWorker::DiCache::printEdgeTypes |
( |
| ) |
const |
|
inline |
Definition at line 705 of file subcircuit.cc.
707 for (
int i = 0; i < int(
edgeTypes.size()); i++)
std::vector< DiEdge > edgeTypes
std::map<std::pair<int, int>, bool> SubCircuit::SolverWorker::DiCache::compareCache |
std::vector<DiEdge> SubCircuit::SolverWorker::DiCache::edgeTypes |
std::map<DiEdge, int> SubCircuit::SolverWorker::DiCache::edgeTypesMap |
The documentation for this struct was generated from the following file: