Go to the documentation of this file.
25 #ifndef _MODIFICATION_HPP_
26 #define _MODIFICATION_HPP_
33 #include <boost/shared_ptr.hpp>
50 double averageDeltaMass);
79 :
public std::vector<Modification>
190 friend class Peptide::Impl;
198 #endif // _MODIFICATION_HPP_
maps peptide/protein sequence indexes (0-based) to a modification list
virtual bool operator<(const ModificationMap &rhs) const
returns true iff the map has fewer modified positions or one of the positions is less than in the rhs...
Modification(const chemistry::Formula &formula)
bool operator<(const Modification &rhs) const
returns true iff this mod has smaller delta masses
virtual iterator upper_bound(const key_type &x)
Returns an iterator for the first entry with a key greater than x.
virtual reverse_iterator rbegin()
Returns a reverse_iterator pointing to the first element stored in the map. First is defined by the m...
virtual size_type erase(const key_type &x)
Deletes the element with the key value x from the map, if one exists. Returns 1 if x existed in the m...
virtual std::pair< iterator, bool > insert(const value_type &x)
If a value_type with the same key as x is not present in the map, then x is inserted into the map....
represents a post-translational modification (PTM) modification formula or masses must be provided at...
double averageDeltaMass() const
returns the sum of the average delta masses of all modifications in the map
bool hasFormula() const
returns true iff the mod was constructed with formula
virtual bool operator==(const ModificationMap &rhs) const
returns true iff the map has the same modifications
BaseType::key_type key_type
Modification(const Modification &)
boost::shared_ptr< Impl > impl_
BaseType::mapped_type mapped_type
ModificationMap & operator=(const ModificationMap &)
BaseType::size_type size_type
virtual void erase(iterator start, iterator finish)
If the iterators start and finish point to the same map and last is reachable from first,...
virtual iterator end()
Returns an iterator pointing to the last element stored in the map; in other words,...
const chemistry::Formula & formula() const
returns the difference formula; throws runtime_error if hasFormula() = false
bool operator<(const ModificationList &rhs) const
returns true iff the list has fewer modifications or one that's lesser than in the rhs list
ModificationList(const Modification &mod)
double monoisotopicDeltaMass() const
returns the sum of the monoisotopic delta masses of all modifications in the list
BaseType::reverse_iterator reverse_iterator
bool operator==(const Modification &rhs) const
returns true iff delta masses are equal
virtual iterator lower_bound(const key_type &x)
Returns a reference to the first entry with a key greater than or equal to x.
KernelTraitsBase< Kernel >::space_type::abscissa_type x
double monoisotopicDeltaMass() const
returns the sum of the monoisotopic delta masses of all modifications in the map
Modification()
constructs a zero-mass modification (provided for MSVC compatibility)
PWIZ_API_DECL Position position(CVID cvid=CVID_Unknown)
returns a Position corresponding to one of the following CVIDs: CVID_Unknown: Position::Anywhere MS_m...
bool operator==(const ModificationList &rhs) const
returns true iff the list has equal modifications
virtual void swap(ModificationMap &)
virtual iterator insert(iterator position, const value_type &x)
If a value_type with the same key as x is not present in the map, then x is inserted into the map....
virtual reverse_iterator rend()
Returns a reverse_iterator pointing to the last element stored in the map; in other words,...
double monoisotopicDeltaMass() const
Modification(double monoisotopicDeltaMass, double averageDeltaMass)
virtual mapped_type & operator[](const key_type &x)
If an element with the key x exists in the map, then a reference to its associated value is returned....
a wrapper for std::map that will behave properly with polymorphism
Modification & operator=(const Modification &)
ModificationList(const std::vector< Modification > &mods)
boost::shared_ptr< Impl > impl_
ModificationMap(const ModificationMap &other)
virtual void clear()
Erases all elements from the self.
virtual iterator find(const key_type &x)
Searches the map for a pair with the key value x and returns an iterator to that pair if it is found....
double averageDeltaMass() const
BaseType::iterator iterator
represents a list of modifications on a single amino acid
virtual void erase(iterator position)
Deletes the map element pointed to by the iterator position.
double averageDeltaMass() const
returns the sum of the average delta masses of all modifications in the list
virtual std::pair< iterator, iterator > equal_range(const key_type &x)
Returns the pair (lower_bound(x), upper_bound(x)).
virtual iterator begin()
Returns an iterator pointing to the first element stored in the map. First is defined by the map's co...
BaseType::value_type value_type