![]() |
OpenMS
|
Digestion enzyme database (base class) More...
#include <OpenMS/CHEMISTRY/DigestionEnzymeDB.h>
Public Member Functions | |
Constructors and Destructors | |
| virtual | ~DigestionEnzymeDB () |
| destructor | |
Accessors | |
| const DigestionEnzymeType * | getEnzyme (const String &name) const |
| const DigestionEnzymeType * | getEnzymeByRegEx (const String &cleavage_regex) const |
| void | getAllNames (std::vector< String > &all_names) const |
| returns all the enzyme names (does NOT include synonym names) | |
Predicates | |
| bool | hasEnzyme (const String &name) const |
| returns true if the db contains a enzyme with the given name (supports synonym names) | |
| bool | hasRegEx (const String &cleavage_regex) const |
| returns true if the db contains a enzyme with the given regex | |
| bool | hasEnzyme (const DigestionEnzymeType *enzyme) const |
| returns true if the db contains the enzyme of the given pointer | |
Typedefs | |
| typedef std::set< constDigestionEnzymeType * >::const_iterator | ConstEnzymeIterator |
| typedef std::set< constDigestionEnzymeType * >::iterator | EnzymeIterator |
| static InstanceType * | getInstance () |
| this member function serves as a replacement of the constructor | |
Assignment | |
| std::map< String, const DigestionEnzymeType * > | enzyme_names_ |
| index by names | |
| std::map< String, const DigestionEnzymeType * > | enzyme_regex_ |
| index by regex | |
| std::set< const DigestionEnzymeType * > | const_enzymes_ |
| set of enzymes | |
| DigestionEnzymeDB & | operator= (const DigestionEnzymeDB &enzymes_db)=delete |
| assignment operator | |
| void | addEnzyme_ (const DigestionEnzymeType *enzyme) |
| void | loadFromProviders_ (std::vector< std::unique_ptr< DigestionEnzymeDataProvider< DigestionEnzymeType > > > &providers) |
Iterators | |
| ConstEnzymeIterator | beginEnzyme () const |
| ConstEnzymeIterator | endEnzyme () const |
| DigestionEnzymeDB ()=default | |
| DigestionEnzymeDB (const DigestionEnzymeDB &enzymes_db)=delete | |
| copy constructor | |
Digestion enzyme database (base class)
Template parameters: DigestionEnzymeType should be a subclass of DigestionEnzyme. InstanceType should be a subclass of DigestionEnzymeDB ("Curiously Recurring Template Pattern", see https://stackoverflow.com/a/34519373).
| typedef std::set<constDigestionEnzymeType*>::const_iterator ConstEnzymeIterator |
| typedef std::set<constDigestionEnzymeType*>::iterator EnzymeIterator |
|
inlinevirtual |
destructor
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::const_enzymes_.
|
protecteddefault |
|
protecteddelete |
copy constructor
|
inlineprotected |
add to internal data; also update indices for search by name and regex. If an enzyme with the same name already exists, it is replaced.
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::const_enzymes_, DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_names_, DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_regex_, and String::toLower().
Referenced by DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::loadFromProviders_().
|
inline |
|
inline |
|
inline |
returns all the enzyme names (does NOT include synonym names)
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::const_enzymes_.
|
inline |
returns a pointer to the enzyme with name (supports synonym names)
| Exception::ElementNotFound | if enzyme is unknown |
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_names_.
|
inline |
returns a pointer to the enzyme with cleavage regex
| Exception::IllegalArgument | if enzyme regex is unregistered. |
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_regex_, and DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::hasRegEx().
|
inlinestatic |
this member function serves as a replacement of the constructor
|
inline |
returns true if the db contains the enzyme of the given pointer
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::const_enzymes_.
|
inline |
returns true if the db contains a enzyme with the given name (supports synonym names)
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_names_.
|
inline |
returns true if the db contains a enzyme with the given regex
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::enzyme_regex_.
Referenced by DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::getEnzymeByRegEx().
|
inlineprotected |
Load enzymes from a list of data providers and add them to the database. Each provider's loadEnzymes() is called in order; enzymes with duplicate names from later providers replace earlier ones (allowing user overrides).
References DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::addEnzyme_().
|
protecteddelete |
assignment operator
|
protected |
set of enzymes
Referenced by DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::addEnzyme_(), DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::beginEnzyme(), DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::endEnzyme(), DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::getAllNames(), DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::hasEnzyme(), and DigestionEnzymeDB< DigestionEnzymeType, InstanceType >::~DigestionEnzymeDB().
|
protected |
|
protected |