#include <Pattern.hh>
A wrapper class around a given Graph_interface that can serve as a pattern.
- Author
- Martin Mann - 2010 - http://www.bioinf.uni-freiburg.de/~mmann/
Definition at line 188 of file Pattern.hh.
constructs a pattern without additional constraints
- Parameters
-
graph | the graph to represent |
sgm::Pattern::Pattern |
( |
const Graph_Interface & |
graph, |
|
|
const std::string & |
wildcardToUse |
|
) |
| |
constructs a pattern without additional constraints
- Parameters
-
graph | the graph to represent |
wildcardToUse | the wildcard to use for matching |
constructs a pattern with additional constraints
- Parameters
-
graph | the graph to represent |
matchConstraints | the additional constraints to be fulfilled |
constructs a pattern with additional constraints
- Parameters
-
graph | the graph to represent |
matchConstraints | the additional constraints to be fulfilled |
wildcardToUse | the wildcard to use for matching |
sgm::Pattern::Pattern |
( |
const Pattern & |
toCopy | ) |
|
copy construction
- Parameters
-
toCopy | the pattern to make this object a copy of |
virtual sgm::Pattern::~Pattern |
( |
| ) |
|
|
virtual |
Does a deep copy of the given constraint vector
- Parameters
-
toCopy | the ConstraintVec instance to copy |
- Returns
- the deep copy of the given vector of MatchConstraints
virtual const ConstraintVec& sgm::Pattern::getConstraints |
( |
void |
| ) |
const |
|
virtual |
Access to the matching constraints that have to be fulfilled by a match of this pattern graph
- Returns
- the matching constraints to validate
Implements sgm::Pattern_Interface.
virtual const Graph_Interface& sgm::Pattern::getPatternGraph |
( |
void |
| ) |
const |
|
virtual |
virtual const std::string* sgm::Pattern::getUsedWildcard |
( |
void |
| ) |
const |
|
virtual |
Access to the wildcard to be used when matching this pattern onto some other graph.
- Returns
- the wildcard string to be used for edge and node labels, or NULL if no wildcard should be applied
Implements sgm::Pattern_Interface.
virtual bool sgm::Pattern_Interface::operator!= |
( |
const Pattern_Interface & |
toCompare | ) |
const |
|
virtualinherited |
Inequality comparison
- Parameters
-
- Returns
- true if both describe the different patterns
assignment operator
- Parameters
-
toCopy | the instance to make this a copy of |
- Returns
- the altered object (*this)
virtual bool sgm::Pattern_Interface::operator== |
( |
const Pattern_Interface & |
toCompare | ) |
const |
|
virtualinherited |
Equality comparison
- Parameters
-
- Returns
- true if both describe the same pattern
const std::string* sgm::Pattern::usedWildcard |
|
protected |
The documentation for this class was generated from the following file: