Go to the documentation of this file.
5 #ifndef BALL_STRUCTURE_FRAGMENTDB_H
6 #define BALL_STRUCTURE_FRAGMENTDB_H
8 #ifndef BALL_DATATYPE_STRINGHASHMAP_H
12 #ifndef BALL_KERNEL_RESIDUE_H
16 #ifndef BALL_KERNEL_MOLECULE_H
20 #ifndef BALL_KERNEL_BOND_H
24 #ifndef BALL_STRUCTURE_RECONSTRUCTFRAGMENTPROCESSOR_H
48 class AddHydrogensProcessor;
49 friend class FragmentDB::AddHydrogensProcessor;
158 const std::vector<Residue*>&
getFragments()
const {
return fragments_;}
318 enum CountingMode { ADD, OVERWRITE };
324 void normalizeFragments_(
const NameMap* map,
const std::list<Fragment*>& frags);
331 std::list<Fragment*> fragments_;
553 std::vector<Residue*> fragments_;
571 #endif // BALL_STRUCTURE_FRAGMENTDB_H
NormalizeNamesProcessor normalize_names
Size buildInterFragmentBonds(Fragment &first, Fragment &second) const
const Fragment * getFragment(const String &fragment_name) const
StringHashMap< String > NameMap
HashMap class based on the STL map (containing serveral convenience functions)
void setFragmentDB(const FragmentDB &fragment_db)
Set the fragment database.
std::list< Connection > ConnectionList
Size buildFragmentBonds(Fragment &fragment) const
#define BALL_CREATE_DEEP(name)
const Residue * getResidue(const String &fragment_name) const
FragmentDB * fragment_db_
NormalizeNamesProcessor(FragmentDB &db)
BuildBondsProcessor(const FragmentDB &db)
void setFilename(const String &filename)
const String & getDefaultNamingStandard() const
Molecule * getMoleculeCopy(const String &fragment_name) const
FragmentDB::Type getFragmentType(const String &fragment_name) const
void setNamingStandard(const String &naming_standard)
Residue * getResidueCopy(const String &fragment_name) const
list< String > getVariantNames(const String &name) const
const StringHashMap< String > & getNamingStandard(const String &std) const
const String & getFilename() const
Fragment * getFragmentCopy(const String &fragment_name) const
NormalizeNamesProcessor()
ReconstructFragmentProcessor add_hydrogens
bool matchName(String &res_name, String &atom_name, const NameMap &map) const
bool buildConnection_(Connection &con1, Connection &con2)
NoFragmentNode(const char *file, int line, const string &filename)
const std::vector< Residue * > & getFragments() const
FragmentDB(const FragmentDB &db, bool deep=true)
virtual ~BuildBondsProcessor()
StringHashMap< NameMap > & getNamingStandards()
const String & getNamingStandard()
std::vector< String > getAvailableNamingStandards() const
std::list< Fragment * > fragment_list_
Size getNumberOfBondsBuilt()
Return the number of bonds built during the last application.
void storeConnections_(Fragment &fragment)
void setFragmentDB(FragmentDB &db)
ConnectionList connections_
virtual ~NormalizeNamesProcessor()
bool has(const String &fragment_name) const
FragmentDB(const String &filename)
BuildBondsProcessor build_bonds
Size buildFragmentBonds(Fragment &fragment, const Fragment &tplate) const
const Fragment * getReferenceFragment(const Fragment &fragment) const