C++ main module for gpm Package
1.0
|
This class describes a graph which is a list of nodes & ports. More...
#include <GPM_Graph.h>
Public Member Functions | |
const tGraph & | getGraphImplement () const |
get the graph implementation More... | |
tGraph & | getGraphImplement () |
get the graph implementation More... | |
virtual SP::GPM_GraphElement | newInstance (const tString &className) const |
create a new instance of token More... | |
virtual SP::GPM_Node | newNode () const |
create a node More... | |
virtual void | copy (const GPM_Graph &graph) |
void copy More... | |
tVertexIID | addVertex (SP::GPM_Vertex vertex) |
add vertex vertex with id More... | |
tVertexIID | addNode () |
add vertex More... | |
tVertexIID | addNode (const int &id) |
add vertex with id More... | |
void | removeVertex (const tVertexIID &iid) |
remove vertex with internal id: iid WARNING: the vertexIID of all the nodes may changed ! More... | |
int | getVerticesNumber () const |
the the vertices numbers More... | |
SP::GPM_Vertex | getVertex (const tVertexIID &iid) const |
get vertex with internal id More... | |
int | getVertexId (const tVertexIID &iid) const |
get the id of vertex with internal id More... | |
tVertexIID | getVertexIID (const int &id) const |
get the internal id of vertex with id (for convenience use) More... | |
void | getVertices (vector< tVertexIID > &vertexIIDs) const |
get the internal id of all vertices More... | |
void | getVertices (SV::GPM_Vertex &vertexIIDs) const |
get the internal id of all vertices More... | |
void | getConnectedVertices (const tVertexIID &iid, vector< tVertexIID > &vertexIIDs) const |
get the internal id vertices connected to vertex with internal iid More... | |
int | getDegree (const tVertexIID &id) const |
get the edges number connected to vertex with id More... | |
virtual SP::GPM_Edge | newEdge () const |
get the edge internal id More... | |
virtual SP::GPM_Edge | newEdge (const int &id) const |
create a node More... | |
virtual SP::GPM_Edge | newEdge (SP::GPM_Vertex source, SP::GPM_Vertex target) const |
create a node More... | |
tBoolean | addEdgeFromIds (const int &source, const int &target, tEdgeIID &iid) |
add ad edge from vertex ids (convenience method) More... | |
tBoolean | addEdgeFromIds (const int &source, const int &target) |
add vertex from vertex ids (convenience method) More... | |
virtual tBoolean | addEdge (const tVertexIID &from, const tVertexIID &to, SP::GPM_Edge edge, tEdgeIID &iid) |
add an edge with name label between vertices from & to More... | |
virtual SP::GPM_Edge | addEdge (const tVertexIID &from, const tVertexIID &to) |
add an edge with name label between vertices from & to More... | |
virtual tBoolean | addEdge (const tVertexIID &from, const tVertexIID &to, tEdgeIID &eiid) |
add an edge with name label between vertices from & to More... | |
tBoolean | removeEdge (const tEdgeIID &edgeId) |
remove edge with id WARNING: the edgeIID of all the edges may changed ! More... | |
tBoolean | removeEdges (const tVertexIID &vertexIID) |
remove all edges from vertex with internal id WARNING: the edgeIID of all the edges may changed ! More... | |
tBoolean | removeEdges (const tVertexIID &form, const tVertexIID &to) |
remove all edges from vertices from & to WARNING: the edgeIID of all the edges may changed ! More... | |
int | getEdgesNumber () const |
get the edges number More... | |
void | getEdges (vector< tEdgeIID > &ids) const |
get the index of edges of the graph More... | |
void | getEdges (SV::GPM_Edge &edges) const |
get the index of edges of the graph More... | |
void | getEdges (const tVertexIID &v, vector< tEdgeIID > &edges) const |
get the edges from vertex v More... | |
tBoolean | getEdge (const tVertexIID &e1, const tVertexIID &e2, tEdgeIID &iid) const |
get edge between vertices e1 & e2 More... | |
tBoolean | getEdgeFromIds (const int &e1, const int &e2, tEdgeIID &iid) const |
get edge between vertices e1 & e2 (convenience method) More... | |
tBoolean | getEdgeFromIds (const int &e1, const int &e2) const |
get edge between vertices e1 & e2 (convenience method) More... | |
SP::GPM_Edge | getEdge (const tEdgeIID &id) |
get edge with id for writing More... | |
SPC::GPM_Edge | getEdge (const tEdgeIID &id) const |
get edge with id for reading More... | |
const GPM_Edge * | getEdge (const tVertexIID &e1, const tVertexIID &e2) const |
get edge between vertices e1 & e2 More... | |
GPM_Edge * | getEdge (const tVertexIID &e1, const tVertexIID &e2) |
get edge between vertices e1 & e2 More... | |
void | getEdgeVertices (const tEdgeIID &id, tVertexIID &source, tVertexIID &target) const |
get vertices of edges More... | |
int | getEdgeId (const tEdgeIID &iid) const |
get id of edge with internal id iid More... | |
tBoolean | getEdgeIID (const int &id, tEdgeIID &iid) const |
get the internal id of edge with id (for convenience use) More... | |
void | clear () |
clear the graph More... | |
void | close () |
close the graph More... | |
tBoolean | merge (const tVertexIID &from, const tVertexIID &to, CORE_Out &io) |
merge two vertex More... | |
void | addSubGraph (const GPM_Graph &graph, map< tVertexIID, tVertexIID > &connections) |
add sub graph More... | |
void | executeTriggerActions (CORE_Out &io) |
execute trigger actions More... | |
tBoolean | saveToFile (const tString &fileName) const |
save graph to txt file More... | |
tBoolean | loadFromFile (const tString &fileName, CORE_Out &io) |
load graph from txt file More... | |
virtual tBoolean | exportToCurveFile (const tString &fileName, const tString &title, const tString &XLabel, const tString &YLabel) const |
export to a curve file More... | |
void | printGroupId (CORE_Out &io) const |
print the group id More... | |
void | updateGroupId () |
update the group Id of all elements of graph More... | |
virtual tBoolean | isMappingValid (const SV::GPM_Vertex &smallGraphVertices, const vector< tVertexIID > &mapping, CORE_Out &io) const |
return true if the mapping is valid More... | |
tBoolean | isIsomorph (const GPM_Graph &g, vector< tVertexIID > &verticesMap, CORE_Out &io) const |
return true if graph is isomorph More... | |
tBoolean | isIsomorph (SPC::GPM_Graph g, vector< tVertexIID > &verticesMap, CORE_Out &io) const |
return true if graph is isomorph More... | |
tBoolean | isIsomorph (SPC::GPM_Graph g, CORE_Out &io) const |
return true if graph is isomorph More... | |
tBoolean | isIsomorph (const GPM_Graph &g, CORE_Out &io) const |
return true if graph is isomorph More... | |
void | getPatterns (const GPM_Graph &pattern, const tBoolean &isUpToAutomorphism, const tFlag &upToAutomorphismType, vector< vector< tVertexIID > > &homomorphisms, CORE_Out &io) const |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller More... | |
void | getPatterns (SPC::GPM_Graph pattern, const tBoolean &isUpToAutomorphism, const tFlag &upToAutomorphismType, vector< vector< tVertexIID > > &homomorphisms, CORE_Out &io) const |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller More... | |
void | getPatterns (const GPM_Graph &pattern, vector< vector< tVertexIID > > &homomorphisms, CORE_Out &io) const |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller More... | |
void | getPatterns (SPC::GPM_Graph pattern, vector< vector< tVertexIID > > &homomorphisms, CORE_Out &io) const |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller More... | |
virtual tString | toString () const |
set the graph to string More... | |
int | generateVertexId () |
generate a vertex id More... | |
int | generateEdgeId () |
generate a edge id More... | |
void | getSharedPointer (SP::CORE_Object &p) |
get the shared pointer of this class into p More... | |
void | getSharedPointer (SPC::CORE_Object &p) const |
get the shared pointer of this class into p More... | |
tString | getClassName () const |
return the class name of the object More... | |
tString | getIdentityString () const |
return the identity string of the object of the form className_at_address More... | |
tString | getPointerAddress () const |
return the identity string of the object More... | |
template<class T > | |
tBoolean | isInstanceOf () const |
return true if the object is an instance of T More... | |
virtual void | print () |
print the class More... | |
virtual ostream & | print (ostream &out) const |
print the class More... | |
virtual void | print (const tString &message) |
print the class More... | |
virtual void | print (const tInteger &str) |
print More... | |
virtual void | print (const tRelativeInteger &str) |
print More... | |
virtual void | print (const tReal &str) |
print More... | |
virtual void | print (const int &str) |
print More... | |
Static Public Member Functions | |
static SP::GPM_Graph | New () |
create a graphs More... | |
static void | turnBodyTextToLine (tString &bdy) |
static void | turnBodyLineToText (tString &bdy) |
static tString | getClassName (const tString &identityString) |
return the class name of the object using only the identity string More... | |
template<class T > | |
static tString | getTypeName () |
get type name More... | |
static tBoolean | is64Architecture () |
return true if the machine is a 64 bits machine More... | |
static tBoolean | is32Architecture () |
return true if the machine is a 32 bits machine More... | |
static tString | pointer2String (const void *obj) |
return the string represantation of a pointer More... | |
static void | setOutput (ostream &out) |
set output More... | |
static ostream & | getOutput () |
get output More... | |
static void | printObjectsInMemory () |
print object in memory More... | |
static ostream & | print (ostream &out, const tString &message) |
print the class More... | |
static void | outputPrint (const tString &message) |
Static Public Attributes | |
static const tVertexIID | NULL_VERTEX =boost::graph_traits<tGraph>::null_vertex() |
static const tFlag | UP_TO_AUTOMORPHISM_ALL =0 |
static const tFlag | UP_TO_AUTOMORPHISM_NODE =1 |
static const tFlag | UP_TO_AUTOMORPHISM_PORT =2 |
static tBoolean | mIsMemoryTesting =false |
indicator to store all classes created and deleted only for debuging version More... | |
Protected Member Functions | |
GPM_Graph (void) | |
create an object More... | |
virtual | ~GPM_Graph (void) |
destroy an object. More... | |
tBoolean | addEdge_ (const tVertexIID &from, const tVertexIID &to, SP::GPM_Edge edge, tEdgeIID &iid) |
add edge without verifications if edge or vertices exists More... | |
void | setThis (SP::CORE_Object p) |
set this weak shared pointer called toDoAfterThis setting method More... | |
virtual void | setType (tString type) |
set the type of the object More... | |
virtual void | toDoAfterThisSetting () |
method called after setThis() method this method can oly be called once. More... | |
This class describes a graph which is a list of nodes & ports.
|
protected |
create an object
References CORE_Object::setType().
Referenced by New().
|
protectedvirtual |
|
virtual |
add an edge with name label between vertices from & to
References addEdge_(), EdgeProperties::edge, generateEdgeId(), getVertex(), null, and tBoolean.
Referenced by addEdge(), addEdgeFromIds(), GPMG_DrawPanel::addEdgeToNode(), GPM_PortGraph::addPortEdgeFromIds(), addSubGraph(), copy(), GPM_PortGraph::generateQuadGraph(), and merge().
|
inlinevirtual |
add an edge with name label between vertices from & to
References addEdge(), generateEdgeId(), and newEdge().
|
inlinevirtual |
add an edge with name label between vertices from & to
References addEdge(), generateEdgeId(), newEdge(), and tBoolean.
|
protected |
add edge without verifications if edge or vertices exists
References EdgeProperties::edge.
Referenced by addEdge().
|
inline |
add ad edge from vertex ids (convenience method)
References addEdge(), addNode(), generateEdgeId(), getVertexIID(), and newEdge().
Referenced by GPMG_DrawPanel::addEdge(), and addEdgeFromIds().
|
inline |
add vertex from vertex ids (convenience method)
References addEdgeFromIds().
|
inline |
add vertex
OUT | iid: return the internal id of vertex |
References addVertex(), generateVertexId(), and newNode().
Referenced by addEdgeFromIds(), GPMG_DrawPanel::addNode(), GPM_PortGraph::addPortEdgeFromIds(), copy(), and GPM_PortGraph::generateQuadGraph().
|
inline |
add vertex with id
IN | id: id of the vertex |
OUT | iid: return the internal id of vertex |
References addVertex(), and newNode().
void GPM_Graph::addSubGraph | ( | const GPM_Graph & | graph, |
map< tVertexIID, tVertexIID > & | connections | ||
) |
add sub graph
graph:adding | graph |
connections | is the association between vertex of the sub graph to the corresponding vertex in graph This |
References addEdge(), addVertex(), GPM_Vertex::copy(), GPM_GraphElement::copy(), generateEdgeId(), generateVertexId(), getEdge(), getEdges(), getVertex(), and getVertices().
tVertexIID GPM_Graph::addVertex | ( | SP::GPM_Vertex | vertex | ) |
add vertex vertex with id
IN | vertex: vertex to add |
OUT | iid: return the internal id of vertex |
References generateVertexId(), VertexProperties::groupId, and VertexProperties::vertex.
Referenced by addNode(), GPM_PortGraph::addPort(), GPM_PortGraph::addPortEdgeFromIds(), addSubGraph(), copy(), and GPM_PortGraph::generateQuadGraph().
void GPM_Graph::clear | ( | ) |
clear the graph
Referenced by copy(), GPM_PortGraph::generateQuadGraph(), and ~GPM_Graph().
void GPM_Graph::close | ( | ) |
close the graph
|
virtual |
void copy
References addEdge(), addNode(), addVertex(), clear(), GPM_Vertex::copy(), GPM_GraphElement::copy(), getEdges(), GPM_Edge::getSource(), GPM_Edge::getTarget(), getVertexIID(), getVertices(), GPM_Edge::NewInstance(), GPM_GraphElement::NewInstance(), null, and NULL_VERTEX.
void GPM_Graph::executeTriggerActions | ( | CORE_Out & | io | ) |
execute trigger actions
References CORE_Out::DEBUG_MSG, CORE_Out::println(), removeEdge(), removeVertex(), and CORE_Integer::toString().
|
virtual |
export to a curve file
Reimplemented in GPM_PortGraph.
References GPM_Vertex::getCoordinates(), getEdges(), and null.
int GPM_Graph::generateEdgeId | ( | ) |
generate a edge id
Referenced by addEdge(), addEdgeFromIds(), and addSubGraph().
int GPM_Graph::generateVertexId | ( | ) |
generate a vertex id
Referenced by addNode(), addSubGraph(), and addVertex().
return the class name of the object using only the identity string
Referenced by CORE_Object::printObjectsInMemory().
|
inherited |
return the class name of the object
References tString.
Referenced by CORE_Object::getIdentityString().
void GPM_Graph::getConnectedVertices | ( | const tVertexIID & | iid, |
vector< tVertexIID > & | vertexIIDs | ||
) | const |
get the internal id vertices connected to vertex with internal iid
References NULL_VERTEX.
Referenced by GPM_PortGraph::findSegments(), GPM_PortGraph::getConnectedNodesToPort(), and GPMG_DrawPanel::getPopupMenu().
int GPM_Graph::getDegree | ( | const tVertexIID & | id | ) | const |
get the edges number connected to vertex with id
References NULL_VERTEX.
tBoolean GPM_Graph::getEdge | ( | const tVertexIID & | e1, |
const tVertexIID & | e2, | ||
tEdgeIID & | iid | ||
) | const |
get edge between vertices e1 & e2
References NULL_VERTEX.
Referenced by GPMG_DrawPanel::addEdge(), GPMG_DrawPanel::addEdgeToNode(), GPM_PatternFunction::addPEdgeToKeep(), GPM_PatternFunction::addPEdgeToRemove(), addSubGraph(), GPM_Rule::buildEnvironment(), getEdge(), getEdgeFromIds(), getEdgeId(), merge(), GPM_ModelFunction::readRulesFromFile(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updateTransformerGraphStates(), and GPMG_VertexWindow::updateValues().
SP::GPM_Edge GPM_Graph::getEdge | ( | const tEdgeIID & | id | ) |
get edge with id for writing
SPC::GPM_Edge GPM_Graph::getEdge | ( | const tEdgeIID & | id | ) | const |
get edge with id for reading
const GPM_Edge * GPM_Graph::getEdge | ( | const tVertexIID & | e1, |
const tVertexIID & | e2 | ||
) | const |
GPM_Edge * GPM_Graph::getEdge | ( | const tVertexIID & | e1, |
const tVertexIID & | e2 | ||
) |
get edge between vertices e1 & e2 (convenience method)
References getEdge(), and getVertexIID().
|
inline |
get edge between vertices e1 & e2 (convenience method)
References getEdge(), and getVertexIID().
int GPM_Graph::getEdgeId | ( | const tEdgeIID & | iid | ) | const |
get the internal id of edge with id (for convenience use)
Referenced by GPMG_DrawPanel::deleteEdge(), GPMG_RuleGraphDrawPanel::getPopupMenu(), and GPM_ModelFunction::readRulesFromFile().
void GPM_Graph::getEdges | ( | vector< tEdgeIID > & | ids | ) | const |
get the index of edges of the graph
Referenced by addSubGraph(), GPM_Rule::buildEnvironment(), GPM_PortGraph::buildEnvironments(), GPM_ModelGraph::clearRules(), GPMG_DrawPanel::computeEdgesScale(), copy(), exportToCurveFile(), GPM_PortGraph::findSegments(), GPM_ModelGraph::getRulesNumber(), GPM_ModelGraph::orderTriggerRules(), GPM_ModelFunction::saveRulesToFile(), GPMG_RuleGraphDrawPanel::showRule(), GPM_ModelFunction::toString(), GPM_PortGraph::updateGraphElementsEnvironment(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelGraph::updateRules(), GPM_ModelFunction::updateTransformerGraphStates(), and GPMG_VertexWindow::updateValues().
void GPM_Graph::getEdges | ( | SV::GPM_Edge & | edges | ) | const |
get the index of edges of the graph
void GPM_Graph::getEdges | ( | const tVertexIID & | v, |
vector< tEdgeIID > & | edges | ||
) | const |
get the edges from vertex v
References NULL_VERTEX.
int GPM_Graph::getEdgesNumber | ( | ) | const |
get the edges number
void GPM_Graph::getEdgeVertices | ( | const tEdgeIID & | id, |
tVertexIID & | source, | ||
tVertexIID & | target | ||
) | const |
get vertices of edges
Referenced by GPM_PortGraph::findSegments(), GPM_ModelFunction::readRulesFromFile(), and toString().
|
inline |
get the graph implementation
Referenced by getPatterns(), GPM_PortGraph::isEdgeValid(), isIsomorph(), GPM_PortGraph::isValid(), and GPM_PrintCallback::operator()().
|
inline |
get the graph implementation
|
inlineinherited |
return the identity string of the object of the form className_at_address
References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.
Referenced by CORE_Object::toString().
|
inlinestaticinherited |
get output
void GPM_Graph::getPatterns | ( | const GPM_Graph & | pattern, |
const tBoolean & | isUpToAutomorphism, | ||
const tFlag & | upToAutomorphismType, | ||
vector< vector< tVertexIID > > & | homomorphisms, | ||
CORE_Out & | io | ||
) | const |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller
References getGraphImplement(), and VertexProperties::groupId.
Referenced by GPM_PortGraph::findMesh(), and getPatterns().
|
inline |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller
References getPatterns(), and null.
|
inline |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller
References getPatterns().
|
inline |
get all the patterns in graph this thanks to homomorphism mappings pattern must be smaller
References getPatterns().
|
inlineinherited |
return the identity string of the object
References CORE_Object::pointer2String().
|
inlineinherited |
get the shared pointer of this class into p
Referenced by MATH_ParentExpression::addArgument(), GPMG_EnvironmentPanel::componentClicked(), GPM_GraphElement::copy(), CORE_Map< Key, Value >::getSharedPointer(), CORE_Array< T >::getSharedPointer(), CORE_Vector< T >::getSharedPointer(), CORE_Matrix< T >::getSharedPointer(), CORE_Object::printObjectsInMemory(), MATH_ParentExpression::setArgument(), GPMG_EnvironmentPanel::setEnvironment(), GPM_GraphElement::setGraph(), GPMG_GraphElementWindow::setGraphElement(), GPMG_ShowGraphDrawPanel::showGraph(), and GPMG_RuleGraphDrawPanel::showRule().
|
inlineinherited |
get the shared pointer of this class into p
|
inlinestaticinherited |
get type name
References tString.
SP::GPM_Vertex GPM_Graph::getVertex | ( | const tVertexIID & | iid | ) | const |
get vertex with internal id
References NULL_VERTEX.
Referenced by addEdge(), GPMG_DrawPanel::addEdgeToNode(), GPMG_DrawPanel::addNode(), GPMG_DrawPanel::addPort(), GPM_PatternFunction::addPTEdgeToAdd(), addSubGraph(), GPM_Rule::buildEnvironment(), GPM_PortGraph::exportToCurveFile(), GPM_PortGraph::findSegments(), GPM_PortGraph::generateQuadGraph(), GPM_ConwayGraph::getCell(), GPM_PortGraph::getConnectedNodesToPort(), GPMG_DrawPanel::getCoordinates(), GPMG_DrawPanel::getPopupMenu(), merge(), GPM_ModelFunction::readRulesFromFile(), GPM_Snow3DFunction::updatePatternGraphStates(), GPM_ConwayFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePatternGraphStates(), GPM_Snow3DFunction::updateTransformerGraphStates(), GPM_Snow2DFunction::updateTransformerGraphStates(), and GPM_ModelFunction::updateTransformerGraphStates().
int GPM_Graph::getVertexId | ( | const tVertexIID & | iid | ) | const |
get the id of vertex with internal id
References NULL_VERTEX.
Referenced by GPM_ModelFunction::readRulesFromFile().
tVertexIID GPM_Graph::getVertexIID | ( | const int & | id | ) | const |
get the internal id of vertex with id (for convenience use)
References NULL_VERTEX.
Referenced by addEdgeFromIds(), GPMG_DrawPanel::addEdgeToNode(), GPM_PortGraph::addPortEdgeFromIds(), GPM_PatternFunction::addPTEdgeToAdd(), GPM_Rule::buildEnvironment(), copy(), GPMG_DrawPanel::deleteVertex(), GPMG_DrawPanel::getCoordinates(), getEdgeFromIds(), GPMG_RuleGraphDrawPanel::getPopupMenu(), GPMG_DrawPanel::getPopupMenu(), GPM_PortGraph::isEdgeValid(), GPM_PatternFunction::isValid(), GPM_ModelFunction::readRulesFromFile(), toString(), GPM_ModelFunction::updatePatternGraphStates(), GPM_Snow2DFunction::updateTransformerGraphStates(), GPM_ModelFunction::updateTransformerGraphStates(), and GPMG_VertexWindow::updateValues().
void GPM_Graph::getVertices | ( | vector< tVertexIID > & | vertexIIDs | ) | const |
get the internal id of all vertices
Referenced by addSubGraph(), GPM_Rule::buildEnvironment(), GPM_PortGraph::buildEnvironments(), GPM_ModelGraph::clearRules(), GPMG_DrawPanel::computeNodesScale(), GPMG_DrawPanel::computePortsScale(), GPMG_RuleGraphDrawPanel::computeVertexBounds(), copy(), GPM_ModelGraph::getRulesNumber(), GPM_PrintCallback::GPM_PrintCallback(), GPM_PortGraph::initGroupNames(), GPM_ConwayGraph::loadFromImageFile(), GPM_ModelGraph::orderTriggerRules(), GPM_ModelFunction::saveRulesToFile(), GPM_ConwayGraph::saveToImageFile(), GPMG_RuleGraphDrawPanel::showRule(), GPM_ModelFunction::toString(), GPM_PortGraph::updateGraphElementsEnvironment(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelGraph::updateRules(), and GPM_ModelFunction::updateTransformerGraphStates().
void GPM_Graph::getVertices | ( | SV::GPM_Vertex & | vertexIIDs | ) | const |
get the internal id of all vertices
int GPM_Graph::getVerticesNumber | ( | ) | const |
the the vertices numbers
Referenced by isIsomorph(), and GPM_PrintCallback::operator()().
|
inlinestaticinherited |
return true if the machine is a 32 bits machine
References CORE_Object::is64Architecture().
|
staticinherited |
return true if the machine is a 64 bits machine
Referenced by CORE_Object::is32Architecture().
|
inlineinherited |
return true if the object is an instance of T
References null.
Referenced by MATH_BinaryOperator::insertInTree(), MATH_UnaryOperator::insertInTree(), and MATH_EndBlock::insertInTree().
tBoolean GPM_Graph::isIsomorph | ( | const GPM_Graph & | g, |
vector< tVertexIID > & | verticesMap, | ||
CORE_Out & | io | ||
) | const |
return true if graph is isomorph
g | : graph to test the isomorphism whith g |
verticesMap | : return the mapping from this to g |
io | output device |
References getGraphImplement(), getVerticesNumber(), vertexInvarientFunction::New(), and tBoolean.
Referenced by isIsomorph().
|
inline |
return true if graph is isomorph
g | : graph to test the isomorphism whith g |
verticesMap | : return the mapping from this to g |
io | output device |
References isIsomorph(), and null.
return true if graph is isomorph
g | : graph to test the isomorphism whith g |
io | output device |
References isIsomorph().
return true if graph is isomorph
g | : graph to test the isomorphism whith g |
io | output device |
References isIsomorph().
|
inlinevirtual |
return true if the mapping is valid
Reimplemented in GPM_PortGraph.
Referenced by GPM_PortGraph::isMappingValid(), and GPM_PrintCallback::operator()().
load graph from txt file
References tBoolean, and tString.
Referenced by GPM_PortGraph::loadGraph().
tBoolean GPM_Graph::merge | ( | const tVertexIID & | from, |
const tVertexIID & | to, | ||
CORE_Out & | io | ||
) |
merge two vertex
from | the vertex to merge: it will be removed |
to | the new vertex |
References addEdge(), CORE_Out::ERROR_MSG, getEdge(), getVertex(), CORE_Out::println(), removeVertex(), tBoolean, and CORE_Integer::toString().
|
inlinestatic |
create a graphs
References GPM_Graph().
Referenced by GPM_ClassFactory::NewInstance().
|
inlinevirtual |
get the edge internal id
update the edge internal ids after removing
create an edge
Reimplemented in GPM_ModelGraph.
References GPM_Edge::New().
Referenced by GPMG_RuleGraphDrawPanel::addEdge(), addEdge(), addEdgeFromIds(), GPM_PatternFunction::addPTEdgeToAdd(), GPM_PortGraph::generateQuadGraph(), and newInstance().
|
inlinevirtual |
create a node
Reimplemented in GPM_ModelGraph.
References GPM_Edge::New().
|
inlinevirtual |
create a node
Reimplemented in GPM_ModelGraph.
References GPM_Edge::New().
|
virtual |
create a new instance of token
Reimplemented in GPM_PortGraph.
References newEdge(), newNode(), CORE_String::toLower(), and tString.
Referenced by GPM_PortGraph::newInstance().
|
inlinevirtual |
create a node
Reimplemented in GPM_ModelGraph.
References GPM_Node::New().
Referenced by addNode(), and newInstance().
|
staticinherited |
print on output
References null, and CORE_Object::print().
Referenced by CORE_Exception::CORE_Exception().
|
staticinherited |
return the string represantation of a pointer
References tString.
Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().
|
inlinevirtualinherited |
print the class
References CORE_Object::toString().
Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().
|
inlinevirtualinherited |
print the class
References CORE_Object::print(), and CORE_Object::toString().
|
virtualinherited |
print the class
Reimplemented in CORE_Out.
References null, and CORE_Object::print().
|
virtualinherited |
References null.
|
virtualinherited |
References null.
|
inlinestaticinherited |
print the class
void GPM_Graph::printGroupId | ( | CORE_Out & | io | ) | const |
print the group id
References CORE_Out::DEBUG_MSG, VertexProperties::groupId, and CORE_Out::println().
|
staticinherited |
print object in memory
References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.
Referenced by main().
remove edge with id WARNING: the edgeIID of all the edges may changed !
Referenced by GPMG_DrawPanel::deleteEdge(), and executeTriggerActions().
tBoolean GPM_Graph::removeEdges | ( | const tVertexIID & | vertexIID | ) |
remove all edges from vertex with internal id WARNING: the edgeIID of all the edges may changed !
tBoolean GPM_Graph::removeEdges | ( | const tVertexIID & | form, |
const tVertexIID & | to | ||
) |
remove all edges from vertices from & to WARNING: the edgeIID of all the edges may changed !
References NULL_VERTEX.
void GPM_Graph::removeVertex | ( | const tVertexIID & | iid | ) |
remove vertex with internal id: iid WARNING: the vertexIID of all the nodes may changed !
References NULL_VERTEX.
Referenced by GPMG_DrawPanel::deleteVertex(), executeTriggerActions(), and merge().
save graph to txt file
Referenced by GPMG_Project::saveData(), and GPM_PortGraph::saveGraph().
|
inlinestaticinherited |
set output
|
inlineprotectedinherited |
set this weak shared pointer called toDoAfterThis setting method
References CORE_Object::toDoAfterThisSetting().
|
inlineprotectedvirtualinherited |
set the type of the object
Referenced by CORE_CommandLine::CORE_CommandLine(), CORE_IO::CORE_IO(), GPM_2DSnowGraph::GPM_2DSnowGraph(), GPM_BGLTest::GPM_BGLTest(), GPM_ClassFactory::GPM_ClassFactory(), GPM_ConwayFunction::GPM_ConwayFunction(), GPM_ConwayGraph::GPM_ConwayGraph(), GPM_CoreRun::GPM_CoreRun(), GPM_CoreTest::GPM_CoreTest(), GPM_Edge::GPM_Edge(), GPM_ExamplesRun::GPM_ExamplesRun(), GPM_Function::GPM_Function(), GPM_Graph(), GPM_GraphElement::GPM_GraphElement(), GPM_ModelGraph::GPM_ModelGraph(), GPM_Node::GPM_Node(), GPM_Object::GPM_Object(), GPM_PatternFunction::GPM_PatternFunction(), GPM_Port::GPM_Port(), GPM_PortGraph::GPM_PortGraph(), GPM_Snow2DFunction::GPM_Snow2DFunction(), GPM_Snow3DFunction::GPM_Snow3DFunction(), GPM_Vertex::GPM_Vertex(), and MATH_ExpressionRun::MATH_ExpressionRun().
|
inlineprotectedvirtualinherited |
method called after setThis() method this method can oly be called once.
Reimplemented in GPM_2DSnowGraph, GPMG_EnvironmentWindow, GPM_GraphElement, GPM_ModelFunction, GPM_ModelGraph, GPMG_RuleGraphWindow, GPMG_MovieGraphWindow, GPMG_ShowGraphWindow, and GPM_Function.
Referenced by CORE_Object::setThis(), GPM_ModelGraph::toDoAfterThisSetting(), GPM_GraphElement::toDoAfterThisSetting(), and GPM_2DSnowGraph::toDoAfterThisSetting().
|
virtual |
set the graph to string
Reimplemented from CORE_Object.
References getEdgeVertices(), getVertexIID(), CORE_Integer::toString(), and tString.
|
inlinestaticinherited |
brief turn the body from the line to text
References CORE_String::replaceAll().
Referenced by GPMG_Project::loadFromUIClass(), and GPM_ModelFunction::readRulesFromFile().
|
inlinestaticinherited |
brief turn the body from the text to line
References CORE_String::replaceAll().
Referenced by GPM_ModelFunction::saveRulesToFile(), and GPMG_Project::saveToUIClass().
void GPM_Graph::updateGroupId | ( | ) |
update the group Id of all elements of graph
References VertexProperties::groupId, and VertexProperties::vertex.
Referenced by GPM_PortGraph::initGroupNames().
|
staticinherited |
indicator to store all classes created and deleted only for debuging version
Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().
|
static |
Referenced by GPMG_DrawPanel::addEdgeToNode(), GPMG_DrawPanel::addNode(), GPMG_DrawPanel::addPort(), GPM_PortGraph::addPortEdgeFromIds(), copy(), GPMG_DrawPanel::deleteVertex(), GPM_PortGraph::getConnectedNodesToPort(), getConnectedVertices(), GPMG_DrawPanel::getCoordinates(), getDegree(), getEdge(), getEdges(), GPMG_RuleGraphDrawPanel::getPopupMenu(), getVertex(), getVertexId(), getVertexIID(), GPM_ModelFunction::readRulesFromFile(), removeEdges(), and removeVertex().
|
static |
|
static |
|
static |
Referenced by GPM_PrintCallback::operator()().