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_Counting Class Reference

Counts matches. More...

#include <MR_Counting.hh>

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

Public Member Functions

size_t getHits (void) const
 
 MR_Counting ()
 Construction. More...
 
virtual void reportHit (const Pattern_Interface &pattern, const Graph_Interface &target, const Match &match)
 
void resetHits (void)
 Resets the number of matches reported so far to 0. More...
 
virtual ~MR_Counting ()
 

Protected Attributes

size_t numberOfMatches
 the number of matches reported so far More...
 

Detailed Description

     A sgm::Match_Reporter implementation that only counts the number of
     reported matches.
Author
Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 16 of file MR_Counting.hh.

Constructor & Destructor Documentation

sgm::MR_Counting::MR_Counting ( )
inline

Definition at line 62 of file MR_Counting.hh.

sgm::MR_Counting::~MR_Counting ( )
inlinevirtual

Definition at line 68 of file MR_Counting.hh.

Member Function Documentation

size_t sgm::MR_Counting::getHits ( void  ) const
inline

Access to the number of reported matches so far

Returns
number of matches

Definition at line 92 of file MR_Counting.hh.

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

Increases the internal counter, nothing else.

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 74 of file MR_Counting.hh.

void sgm::MR_Counting::resetHits ( void  )
inline

Definition at line 84 of file MR_Counting.hh.

Field Documentation

size_t sgm::MR_Counting::numberOfMatches
protected

Definition at line 21 of file MR_Counting.hh.


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