Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Member Functions | Data Fields
sgm::SGM_vf2::NodeComparator Class Reference

#include <SGM_vf2.hh>

Inheritance diagram for sgm::SGM_vf2::NodeComparator:
Inheritance graph
[legend]

Public Member Functions

virtual bool compatible (void *pa, void *pb)
 
virtual bool compatibleLabel (const Label &a, const Label &b)
 
 NodeComparator (const Label &pWildcard, const sgm::Pattern_Interface &pattern, const sgm::Graph_Interface &target)
 

Data Fields

const sgm::Pattern_Interfacepattern
 access to the pattern currently matched More...
 
const Label pWildcard
 the label defining the wildcard to use More...
 
const sgm::Graph_Interfacetarget
 access to the target graph processed More...
 

Detailed Description

Comparator class for the node data used in the internal VF-2 data structures

Definition at line 34 of file SGM_vf2.hh.

Constructor & Destructor Documentation

sgm::SGM_vf2::NodeComparator::NodeComparator ( const Label pWildcard,
const sgm::Pattern_Interface pattern,
const sgm::Graph_Interface target 
)

construction

Parameters
pWildcardaccess to the wildcard label
patternthe pattern currently matched
targetthe target graph currently processed

Member Function Documentation

virtual bool sgm::SGM_vf2::NodeComparator::compatible ( void *  pa,
void *  pb 
)
virtual

comparison of the two pointers and objects.

Parameters
pafirst label pointer, assumed to be the pattern
pbsecond label pointer, assumed to be the target
Returns
true if the node data is compatible for matching

Implements sgm::VF2_MatchingHandler::LabelComparator.

virtual bool sgm::VF2_MatchingHandler::LabelComparator::compatibleLabel ( const Label a,
const Label b 
)
virtualinherited

comparison of the two Label objects.

Parameters
afirst label
bsecond label
Returns
true if a and b are both Label != 0 and either of them is a wildcard or both are equal

Field Documentation

const sgm::Pattern_Interface& sgm::SGM_vf2::NodeComparator::pattern

Definition at line 39 of file SGM_vf2.hh.

const Label sgm::VF2_MatchingHandler::LabelComparator::pWildcard
inherited

Definition at line 109 of file VF2_MatchingHandler.hh.

const sgm::Graph_Interface& sgm::SGM_vf2::NodeComparator::target

Definition at line 41 of file SGM_vf2.hh.


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