Lines Matching refs:p_SubGraph
128 SubGraph *p_SubGraph;
130 parseNode( node, p_SubGraph, 1 ); // NB Subgraph pointed to will change in recursive fn.
132 if (findSubGraph( m_RootRule, p_SubGraph )) {
133 m_pGraph->ExpandRules (p_SubGraph);
134 p_SubGraph->RemoveInternalConnections ();
136 //printSubgraph( *p_SubGraph );
142 bool GRXMLDoc::parseNode( XMLNode &node, SubGraph *&p_SubGraph, const unsigned int level )
165 beginNode( node, p_SubGraph, level );
168 p_LocalSubGraph = p_SubGraph;
172 parseNode ( *child, p_SubGraph, level+1 );
175 p_SubGraph = p_LocalSubGraph;
178 endNode( node, p_SubGraph, level );
184 bool GRXMLDoc::beginNode( XMLNode &node, SubGraph *&p_SubGraph, const unsigned int level )
197 processCDATA( node, p_SubGraph );
228 beginParseRuleNode( node, p_SubGraph );
234 beginRuleRef( node, p_SubGraph );
239 beginOneOf( node, p_SubGraph );
244 beginItem( node, p_SubGraph );
249 beginTag( node, p_SubGraph );
254 beginCount( node, p_SubGraph );
271 processCDATA( node, p_SubGraph );
277 bool GRXMLDoc::endNode( XMLNode &node, SubGraph *&p_SubGraph, const unsigned int level )
309 endParseRuleNode( node, p_SubGraph );
314 endRuleRef( node, p_SubGraph );
319 endOneOf( node, p_SubGraph );
324 endItem(node, p_SubGraph );
329 endTag( node, p_SubGraph );
334 endCount( node, p_SubGraph );
407 bool GRXMLDoc::beginParseRuleNode( XMLNode &node, SubGraph *&p_SubGraph)
432 p_SubGraph = p_ExistingSubgraph;
442 p_SubGraph = newGraph;
454 m_pGraph->BeginItem( p_SubGraph );
461 bool GRXMLDoc::endParseRuleNode( XMLNode &node, SubGraph *&p_SubGraph )
466 //m_pGraph->EndRule(&p_SubGraph);
474 m_pGraph->addSubGraph ( p_SubGraph );
478 m_pGraph->EndItem( p_SubGraph );
484 bool GRXMLDoc::processCDATA( XMLNode &node, SubGraph *&p_SubGraph )
540 m_pGraph->AddLabel( p_SubGraph, index );
555 bool GRXMLDoc::beginItem( XMLNode &node, SubGraph *&p_SubGraph )
572 m_pGraph->BeginCount( p_SubGraph, minCnt, maxCnt );
576 m_pGraph->BeginItemRepeat ( p_SubGraph, minCnt, -1);
580 m_pGraph->BeginItem( p_SubGraph );
586 bool GRXMLDoc::endItem( XMLNode &node, SubGraph *&p_SubGraph )
592 m_pGraph->EndItem( p_SubGraph );
597 bool GRXMLDoc::beginRuleRef( XMLNode &node, SubGraph *&p_SubGraph )
638 m_pGraph->BeginRule( p_SubGraph );
639 m_pGraph->AddRuleRef( p_SubGraph, index );
640 m_pGraph->EndRule( p_SubGraph );
646 bool GRXMLDoc::endRuleRef(XMLNode &grmNode, SubGraph *&p_SubGraph )
657 bool GRXMLDoc::beginOneOf(XMLNode &grmNode, SubGraph *&p_SubGraph)
660 m_pGraph->BeginOneOf (p_SubGraph);
665 bool GRXMLDoc::endOneOf(XMLNode &grmNode, SubGraph *&p_SubGraph)
668 m_pGraph->EndOneOf (p_SubGraph);
673 bool GRXMLDoc::beginTag( XMLNode &node, SubGraph *&p_SubGraph )
687 m_pGraph->AddTag ( p_SubGraph, index );
694 bool GRXMLDoc::endTag( XMLNode &node, SubGraph *&p_SubGraph )
701 bool GRXMLDoc::beginCount( XMLNode &node, SubGraph *&p_SubGraph )
724 m_pGraph->BeginOptional( p_SubGraph );
728 m_pGraph->BeginCount( p_SubGraph, minCnt, maxCnt );
732 m_pGraph->BeginItemRepeat ( p_SubGraph, minCnt, -1);
735 m_pGraph->BeginOptional ( p_SubGraph );
742 bool GRXMLDoc::endCount( XMLNode &node, SubGraph *&p_SubGraph )
745 m_pGraph->EndCount( p_SubGraph );
819 bool GRXMLDoc::addRuleToList(std::string const & ruleName, SubGraph *&p_SubGraph)
833 p_SubGraph = new SubGraph( (char *) ruleName.c_str(), index );
835 bool success = m_SubgraphList.insert( ruleName, p_SubGraph );
854 SubGraph *p_SubGraph;
859 if (m_SubgraphList.getValue( ruleName, &p_SubGraph ) ) {
860 delete p_SubGraph;
873 bool GRXMLDoc::findSubGraph(std::string & s, SubGraph *&p_SubGraph)
875 return m_SubgraphList.getValue(s, &p_SubGraph);
893 bool GRXMLDoc::findSubGraphIndex( SubGraph *p_SubGraph, std::string &s )
895 return m_SubgraphList.getIndex( p_SubGraph, &s );
956 SubGraph *p_SubGraph;
960 if ( findSubGraph( rule, p_SubGraph ) ) {
962 printSubgraph( *p_SubGraph );
964 if ( findSubGraph( rule, p_SubGraph ) ) {
965 printSubgraph( *p_SubGraph );
973 void GRXMLDoc::printSubgraph( SubGraph &p_SubGraph )
975 p_SubGraph.PrintWithLabels( *this );
1133 SubGraph *p_SubGraph;
1136 if ( !findSubGraph( m_RootRule, p_SubGraph ) ) {
1144 m_pGraph->AddRuleRef( p_SemGraph, p_SubGraph->getRuleId());