|  | OpenMS
    2.6.0
    | 
Digestion enzyme database (base class) More...
#include <OpenMS/CHEMISTRY/DigestionEnzymeDB.h>
| Public Member Functions | |
| Constructors and Destructors | |
| virtual | ~DigestionEnzymeDB () | 
| destructor  More... | |
| 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)  More... | |
| Predicates | |
| bool | hasEnzyme (const String &name) const | 
| returns true if the db contains a enzyme with the given name (supports synonym names)  More... | |
| bool | hasRegEx (const String &cleavage_regex) const | 
| returns true if the db contains a enzyme with the given regex  More... | |
| bool | hasEnzyme (const DigestionEnzymeType *enzyme) const | 
| returns true if the db contains the enzyme of the given pointer  More... | |
| Typedefs | |
| typedef std::set< const DigestionEnzymeType * >::const_iterator | ConstEnzymeIterator | 
| typedef std::set< const DigestionEnzymeType * >::iterator | EnzymeIterator | 
| static InstanceType * | getInstance () | 
| this member function serves as a replacement of the constructor  More... | |
| Iterators | |
| ConstEnzymeIterator | beginEnzyme () const | 
| ConstEnzymeIterator | endEnzyme () const | 
| DigestionEnzymeDB (const String &db_file="") | |
| DigestionEnzymeDB (const DigestionEnzymeDB &enzymes_db)=delete | |
| copy constructor  More... | |
| Assignment | |
| Map< String, const DigestionEnzymeType * > | enzyme_names_ | 
| index by names  More... | |
| Map< String, const DigestionEnzymeType * > | enzyme_regex_ | 
| index by regex  More... | |
| std::set< const DigestionEnzymeType * > | const_enzymes_ | 
| set of enzymes  More... | |
| DigestionEnzymeDB & | operator= (const DigestionEnzymeDB &enzymes_db)=delete | 
| assignment operator  More... | |
| void | readEnzymesFromFile_ (const String &filename) | 
| reads enzymes from the given file  More... | |
| const DigestionEnzymeType * | parseEnzyme_ (Map< String, String > &values) const | 
| parses an enzyme, given the key/value pairs from an XML file  More... | |
| void | addEnzyme_ (const DigestionEnzymeType *enzyme) | 
| add to internal data; also update indices for search by name and regex  More... | |
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<const DigestionEnzymeType*>::const_iterator ConstEnzymeIterator | 
| typedef std::set<const DigestionEnzymeType*>::iterator EnzymeIterator | 
| 
 | inlinevirtual | 
destructor
| 
 | inlineprotected | 
| 
 | protecteddelete | 
copy constructor
| 
 | inlineprotected | 
add to internal data; also update indices for search by name and regex
Referenced by DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::readEnzymesFromFile_().
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
returns all the enzyme names (does NOT include synonym names)
Referenced by NucleicAcidSearchEngine::registerOptionsAndFlags_().
| 
 | inline | 
returns a pointer to the enzyme with name (supports synonym names)
| Exception::ElementNotFound | if enzyme is unknown | 
Referenced by NucleicAcidSearchEngine::main_().
| 
 | inline | 
returns a pointer to the enzyme with cleavage regex
| Exception::IllegalArgument | if enzyme regex is unregistered. | 
| 
 | inlinestatic | 
this member function serves as a replacement of the constructor
| 
 | inline | 
returns true if the db contains the enzyme of the given pointer
| 
 | inline | 
returns true if the db contains a enzyme with the given name (supports synonym names)
| 
 | inline | 
returns true if the db contains a enzyme with the given regex
| 
 | protecteddelete | 
assignment operator
parses an enzyme, given the key/value pairs from an XML file
Referenced by DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::readEnzymesFromFile_().
| 
 | inlineprotected | 
reads enzymes from the given file
Referenced by DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::DigestionEnzymeDB().
| 
 | protected | 
set of enzymes
Referenced by DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::addEnzyme_(), DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::beginEnzyme(), DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::endEnzyme(), DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::getAllNames(), and DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::hasEnzyme().
index by names
Referenced by DigestionEnzymeDB< DigestionEnzymeRNA, RNaseDB >::addEnzyme_().
 1.8.16
 1.8.16