Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Member Functions | Protected Attributes
sgm::MR_SymmBreak Class Reference

Symmetry breaking among matches. More...

#include <MR_SymmBreak.hh>

Inheritance diagram for sgm::MR_SymmBreak:
Inheritance graph
[legend]

Public Member Functions

 MR_SymmBreak (const Pattern_Automorphism &symmCheck, Match_Reporter &forward)
 
 MR_SymmBreak (const MR_SymmBreak &toCopy)
 
MR_SymmBreakoperator= (const MR_SymmBreak &toCopy)
 
virtual void reportHit (const Pattern_Interface &pattern, const Graph_Interface &target, const Match &match)
 
virtual ~MR_SymmBreak ()
 Destruction. More...
 

Protected Attributes

Match_Reporterforward
 the reporter to forward all non-symmetric matches to More...
 
const Pattern_AutomorphismsymmCheck
 the Pattern_Automorphism used to check for symmetries More...
 

Detailed Description

    An sgm::Match_Reporter implementation that wraps another
    Match_Reporter and utilizes an sgm::Pattern_Automorphism to determine
    if a reported match is a symmetric solution or not. If not the match 
    is forwarded to the provided second reporter.
Author
Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 19 of file MR_SymmBreak.hh.

Constructor & Destructor Documentation

sgm::MR_SymmBreak::MR_SymmBreak ( const Pattern_Automorphism symmCheck,
Match_Reporter forward 
)
inline

Construction

Parameters
symmCheckthe automorphism checker to apply to the pattern and match reported.
forwardthe reporter to forward all non-symmetric matches to

Definition at line 76 of file MR_SymmBreak.hh.

sgm::MR_SymmBreak::MR_SymmBreak ( const MR_SymmBreak toCopy)
inline

Copy construction

Parameters
toCopythe object to make this a copy of

Definition at line 84 of file MR_SymmBreak.hh.

sgm::MR_SymmBreak::~MR_SymmBreak ( )
inlinevirtual

Definition at line 91 of file MR_SymmBreak.hh.

Member Function Documentation

MR_SymmBreak & sgm::MR_SymmBreak::operator= ( const MR_SymmBreak toCopy)
inline

Definition at line 100 of file MR_SymmBreak.hh.

void sgm::MR_SymmBreak::reportHit ( const Pattern_Interface pattern,
const Graph_Interface target,
const Match match 
)
inlinevirtual

Checks if the match is symmetric and if not forwards the match to the other provided reporter.

Parameters
patternthe pattern graph that was searched for
targetthe graph the pattern was found within
matchcontains the indices of the matched pattern nodes in the target graph. match[i] corresponds to the mapping of the ith vertex in the pattern graph.

Implements sgm::Match_Reporter.

Definition at line 115 of file MR_SymmBreak.hh.

Field Documentation

Match_Reporter* sgm::MR_SymmBreak::forward
protected

Definition at line 26 of file MR_SymmBreak.hh.

const Pattern_Automorphism* sgm::MR_SymmBreak::symmCheck
protected

Definition at line 24 of file MR_SymmBreak.hh.


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