Representation of modification definition.
Definition: ModificationDefinition.h:53
void setFixedModification(bool fixed)
sets whether this modification definition is fixed or variable (modification must occur vs....
UInt max_occurrences_
maximal number of occurrences per peptide
Definition: ModificationDefinition.h:133
ModificationDefinition(const String &mod, bool fixed=true, UInt max_occur=0)
detailed constructor specifying the modification by name
UInt getMaxOccurrences() const
returns the maximal number of occurrences per peptide
bool operator!=(const ModificationDefinition &rhs) const
inequality operator
ModificationDefinition()
default constructor
bool operator<(const OpenMS::ModificationDefinition &) const
less than operator for e.g. usage in maps; only mod FullIds are compared!
bool isFixedModification() const
returns if the modification if fixed true, else false
void setMaxOccurrences(UInt num)
set the maximal number of occurrences per peptide (unbounded if 0)
const ResidueModification & getModification() const
Returns the modification.
String getModificationName() const
returns the name of the modification
bool operator==(const ModificationDefinition &rhs) const
equality operator
virtual ~ModificationDefinition()
destructor
ModificationDefinition & operator=(const ModificationDefinition &element)
assignment operator
bool fixed_modification_
fixed (true) or variable (false)
Definition: ModificationDefinition.h:130
ModificationDefinition(const ModificationDefinition &rhs)
copy constructor
ModificationDefinition(const ResidueModification &mod, bool fixed=true, UInt max_occur=0)
direct constructor from a residue modification
void setModification(const String &modification)
sets the modification, allowed are unique names provided by ModificationsDB
const ResidueModification * mod_
the modification
Definition: ModificationDefinition.h:127
Representation of a modification.
Definition: ResidueModification.h:77
A more convenient string class.
Definition: String.h:61
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47