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

Writes each match to an output stream. More...

#include <MR_stream.hh>

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

Public Member Functions

 MR_stream (std::ostream &out)
 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_stream ()
 

Protected Attributes

size_t numberOfMatches
 the number of matches reported so far More...
 
std::ostream & out
 the stream to write to More...
 

Detailed Description

     A sgm::Match_Reporter implementation that writes the matched pairs of
     pattern and target graph nodes to stream.
Author
Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 18 of file MR_stream.hh.

Constructor & Destructor Documentation

sgm::MR_stream::MR_stream ( std::ostream &  out)
inline

Definition at line 62 of file MR_stream.hh.

sgm::MR_stream::~MR_stream ( )
inlinevirtual

Definition at line 68 of file MR_stream.hh.

Member Function Documentation

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

Writes a match to stream.

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_stream.hh.

void sgm::MR_stream::resetHits ( void  )
inline

Definition at line 90 of file MR_stream.hh.

Field Documentation

size_t sgm::MR_stream::numberOfMatches
protected

Definition at line 26 of file MR_stream.hh.

std::ostream& sgm::MR_stream::out
protected

Definition at line 23 of file MR_stream.hh.


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