OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
minimal_compound_lib.hh
Go to the documentation of this file.
1 
2 #ifndef OST_CONOP_MINIMAL_COMPOUND_LIB_HH
3 #define OST_CONOP_MINIMAL_COMPOUND_LIB_HH
4 
5 #include "compound_lib_base.hh"
6 
7 namespace ost { namespace conop {
8 
10 typedef boost::shared_ptr<MinimalCompoundLib> MinimalCompoundLibPtr;
11 
12 // a minimal compound lib containing the definitions of the 20 standard
13 // amino acids and standard nucleotides
15 public:
18  {}
19  virtual CompoundPtr FindCompound(const String& id,
20  Compound::Dialect dialect) const;
21 private:
22  static CompoundMap InitCompounds();
23  // since this information is never going to change, it is shared
24  // between instances of minimal compound lib.
25  static CompoundMap compounds_;
26 };
27 
28 
29 }}
30 #endif
std::string String
Definition: base.hh:54
#define DLLEXPORT_OST_CONOP
std::map< String, CompoundPtr > CompoundMap
Definition: compound.hh:293
boost::shared_ptr< MinimalCompoundLib > MinimalCompoundLibPtr
boost::shared_ptr< Compound > CompoundPtr
Definition: compound.hh:131