Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Types | Public Member Functions | Protected Attributes
sgm::MR_StoringT< STL_PUSHBACK_CONTAINER > Class Template Reference

Stores each match in an STL container. More...

#include <MR_Storing.hh>

Inheritance diagram for sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >:
Inheritance graph
[legend]

Public Types

typedef STL_PUSHBACK_CONTAINER Storage
 

Public Member Functions

 MR_StoringT (STL_PUSHBACK_CONTAINER &storage)
 
virtual void reportHit (const Pattern_Interface &pattern, const Graph_Interface &target, const Match &match)
 
virtual ~MR_StoringT ()
 

Protected Attributes

Storagestorage
 where to store the matches in using its "push_back" method More...
 

Detailed Description

template<class STL_PUSHBACK_CONTAINER>
class sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >

     A sgm::Match_Reporter implementation that stores each match mapping
     within a provided STL container.

     STL_PUSHBACK_CONTAINER should allow for "push_back(Match)".
Author
Martin Mann (c) 2009 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 19 of file MR_Storing.hh.

Member Typedef Documentation

template<class STL_PUSHBACK_CONTAINER >
typedef STL_PUSHBACK_CONTAINER sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >::Storage

Definition at line 23 of file MR_Storing.hh.

Constructor & Destructor Documentation

template<class STL_PUSHBACK_CONTAINER >
sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >::MR_StoringT ( STL_PUSHBACK_CONTAINER &  storage)
inline

Construction

Parameters
storagethe STL_PUSHBACK_CONTAINER to write to

Definition at line 65 of file MR_Storing.hh.

template<class STL_PUSHBACK_CONTAINER >
sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >::~MR_StoringT ( )
inlinevirtual

Definition at line 72 of file MR_Storing.hh.

Member Function Documentation

template<class STL_PUSHBACK_CONTAINER >
void sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >::reportHit ( const Pattern_Interface pattern,
const Graph_Interface target,
const Match match 
)
inlinevirtual

Adds the match to the STL container without further processing.

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 79 of file MR_Storing.hh.

Field Documentation

template<class STL_PUSHBACK_CONTAINER >
Storage& sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >::storage
protected

Definition at line 28 of file MR_Storing.hh.


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