OpenMS
2.4.0
|
Abstract base class for digestion enzymes. More...
#include <OpenMS/CHEMISTRY/DigestionEnzyme.h>
Public Member Functions | |
virtual bool | setValueFromFile (const String &key, const String &value) |
Set the value of a member variable based on an entry from an input file. More... | |
Constructors | |
DigestionEnzyme (const DigestionEnzyme &enzyme) | |
copy constructor More... | |
DigestionEnzyme (const String &name, const String &cleavage_regex, const std::set< String > &synonyms=std::set< String >(), String regex_description="") | |
detailed constructor More... | |
virtual | ~DigestionEnzyme () |
destructor More... | |
Assignment | |
DigestionEnzyme & | operator= (const DigestionEnzyme &enzyme) |
assignment operator More... | |
void | setName (const String &name) |
sets the name of the enzyme More... | |
String | getName () const |
returns the name of the enzyme More... | |
void | setSynonyms (const std::set< String > &synonyms) |
sets the synonyms More... | |
void | addSynonym (const String &synonym) |
adds a synonym More... | |
const std::set< String > & | getSynonyms () const |
returns the synonyms More... | |
void | setRegEx (const String &cleavage_regex) |
sets the cleavage regex More... | |
String | getRegEx () const |
returns the cleavage regex More... | |
void | setRegExDescription (const String &value) |
sets the regex description More... | |
String | getRegExDescription () const |
returns the regex description More... | |
Predicates | |
bool | operator== (const DigestionEnzyme &enzyme) const |
equality operator More... | |
bool | operator!= (const DigestionEnzyme &enzyme) const |
inequality operator More... | |
bool | operator== (const String &cleavage_regex) const |
equality operator for regex More... | |
bool | operator!= (const String &cleavage_regex) const |
equality operator for regex More... | |
bool | operator< (const DigestionEnzyme &enzyme) const |
order operator More... | |
Protected Member Functions | |
DigestionEnzyme () | |
default constructor More... | |
Protected Attributes | |
String | name_ |
String | cleavage_regex_ |
std::set< String > | synonyms_ |
String | regex_description_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const DigestionEnzyme &enzyme) |
ostream iterator to write the enzyme to a stream More... | |
Abstract base class for digestion enzymes.
DigestionEnzyme | ( | const DigestionEnzyme & | enzyme | ) |
copy constructor
|
explicit |
detailed constructor
|
virtual |
destructor
|
protected |
default constructor
void addSynonym | ( | const String & | synonym | ) |
adds a synonym
String getName | ( | ) | const |
returns the name of the enzyme
String getRegEx | ( | ) | const |
returns the cleavage regex
String getRegExDescription | ( | ) | const |
returns the regex description
const std::set<String>& getSynonyms | ( | ) | const |
returns the synonyms
bool operator!= | ( | const DigestionEnzyme & | enzyme | ) | const |
inequality operator
bool operator!= | ( | const String & | cleavage_regex | ) | const |
equality operator for regex
bool operator< | ( | const DigestionEnzyme & | enzyme | ) | const |
order operator
DigestionEnzyme& operator= | ( | const DigestionEnzyme & | enzyme | ) |
assignment operator
bool operator== | ( | const DigestionEnzyme & | enzyme | ) | const |
equality operator
bool operator== | ( | const String & | cleavage_regex | ) | const |
equality operator for regex
void setName | ( | const String & | name | ) |
sets the name of the enzyme
Accessors
void setRegEx | ( | const String & | cleavage_regex | ) |
sets the cleavage regex
void setRegExDescription | ( | const String & | value | ) |
sets the regex description
void setSynonyms | ( | const std::set< String > & | synonyms | ) |
sets the synonyms
Set the value of a member variable based on an entry from an input file.
Returns whether the key was recognized and the value set successfully.
Reimplemented in DigestionEnzymeProtein, and DigestionEnzymeRNA.
|
friend |
ostream iterator to write the enzyme to a stream
|
protected |
|
protected |
|
protected |
|
protected |