OpenMS
2.4.0
|
Representation of modification definition. More...
#include <OpenMS/CHEMISTRY/ModificationDefinition.h>
Public Member Functions | |
Constructor and Destructors | |
ModificationDefinition () | |
default constructor More... | |
ModificationDefinition (const ModificationDefinition &rhs) | |
copy constructor More... | |
ModificationDefinition (const String &mod, bool fixed=true, UInt max_occur=0) | |
detailed constructor specifying the modification by name More... | |
ModificationDefinition (const ResidueModification &mod, bool fixed=true, UInt max_occur=0) | |
direct constructor from a residue modification More... | |
virtual | ~ModificationDefinition () |
destructor More... | |
Accessors | |
void | setFixedModification (bool fixed) |
sets whether this modification definition is fixed or variable (modification must occur vs. can occur) More... | |
bool | isFixedModification () const |
returns if the modification if fixed true, else false More... | |
void | setMaxOccurrences (UInt num) |
set the maximal number of occurrences per peptide (unbounded if 0) More... | |
UInt | getMaxOccurrences () const |
returns the maximal number of occurrences per peptide More... | |
String | getModificationName () const |
returns the name of the modification More... | |
void | setModification (const String &modification) |
sets the modification, allowed are unique names provided by ModificationsDB More... | |
const ResidueModification & | getModification () const |
Returns the modification. More... | |
Assignment | |
ModificationDefinition & | operator= (const ModificationDefinition &element) |
assignment operator More... | |
Predicates | |
bool | operator== (const ModificationDefinition &rhs) const |
equality operator More... | |
bool | operator!= (const ModificationDefinition &rhs) const |
inequality operator More... | |
bool | operator< (const OpenMS::ModificationDefinition &) const |
less than operator for e.g. usage in maps; only mod FullIds are compared! More... | |
Protected Attributes | |
const ResidueModification * | mod_ |
the modification More... | |
bool | fixed_modification_ |
fixed (true) or variable (false) More... | |
UInt | max_occurrences_ |
maximal number of occurrences per peptide More... | |
Representation of modification definition.
This class defines a modification type e.g. a input parameter of a search engine. The modification is defined using an unique name of the modification present in the modifications DB instance.
default constructor
ModificationDefinition | ( | const ModificationDefinition & | rhs | ) |
copy constructor
|
explicit |
detailed constructor specifying the modification by name
|
explicit |
direct constructor from a residue modification
|
virtual |
destructor
UInt getMaxOccurrences | ( | ) | const |
returns the maximal number of occurrences per peptide
const ResidueModification& getModification | ( | ) | const |
Returns the modification.
Exception::InvalidValue | if no modification was set |
String getModificationName | ( | ) | const |
returns the name of the modification
bool isFixedModification | ( | ) | const |
returns if the modification if fixed true, else false
bool operator!= | ( | const ModificationDefinition & | rhs | ) | const |
inequality operator
bool operator< | ( | const OpenMS::ModificationDefinition & | ) | const |
less than operator for e.g. usage in maps; only mod FullIds are compared!
ModificationDefinition& operator= | ( | const ModificationDefinition & | element | ) |
assignment operator
bool operator== | ( | const ModificationDefinition & | rhs | ) | const |
equality operator
void setFixedModification | ( | bool | fixed | ) |
sets whether this modification definition is fixed or variable (modification must occur vs. can occur)
void setMaxOccurrences | ( | UInt | num | ) |
set the maximal number of occurrences per peptide (unbounded if 0)
void setModification | ( | const String & | modification | ) |
sets the modification, allowed are unique names provided by ModificationsDB
|
protected |
fixed (true) or variable (false)
|
protected |
maximal number of occurrences per peptide
|
protected |
the modification