|
Rosetta 3.5
|
#include <IdealBondLengthSet.hh>


Public Member Functions | |
| IdealBondLengthSet () | |
| virtual | ~IdealBondLengthSet () |
| bool | contains_bond_length (std::string const &atom_type_name1, std::string const &atom_type_name2) const |
| Check if an ideal bond length is known for this pair of atom types... More... | |
| bool | contains_bond_length (AtomTypeIndex atom_type_index1, AtomTypeIndex atom_type_index2) const |
| BondLength | get_bond_length (std::string const &atom_type_name1, std::string const &atom_type_name2) const |
| Lookup the element index by the element_symbol string. More... | |
| BondLength | get_bond_length (AtomTypeIndex const atom_type_index1, AtomTypeIndex const atom_type_index2) const |
| void | read_file (std::string const &filename) |
| Load the IdealBondLengthSet from a file. More... | |
| void | print_all_bond_lengths () |
| Print all of the symbols of all of the Elements in the set. Usefull for debuging. More... | |
Private Member Functions | |
| void | add_bond_length (std::string const &atom_type_name1, std::string const &atom_type_name2, BondLength const length) |
| void | add_bond_length (AtomTypeIndex const atom_type_index1, AtomTypeIndex const atom_type_index2, Real const length) |
Private Attributes | |
| std::map< std::pair < AtomTypeIndex, AtomTypeIndex > , BondLength > | bond_lengths_ |
A set of Elements.
This class contains a vector of pointers each of which points to an Element and the vector index is looked up by an element_name string in a map.
Definition at line 52 of file IdealBondLengthSet.hh.
| core::chemical::IdealBondLengthSet::IdealBondLengthSet | ( | ) |
Definition at line 36 of file IdealBondLengthSet.cc.
|
virtual |
Definition at line 40 of file IdealBondLengthSet.cc.
|
private |
Definition at line 89 of file IdealBondLengthSet.cc.
References core::chemical::ChemicalManager::atom_type_set(), contains_bond_length(), core::chemical::FA_STANDARD, core::chemical::ChemicalManager::get_instance(), and core::id::swap().
Referenced by read_file().
|
private |
Definition at line 111 of file IdealBondLengthSet.cc.
References bond_lengths_, and contains_bond_length().
| bool core::chemical::IdealBondLengthSet::contains_bond_length | ( | std::string const & | atom_type_name1, |
| std::string const & | atom_type_name2 | ||
| ) | const |
Check if an ideal bond length is known for this pair of atom types...
Definition at line 42 of file IdealBondLengthSet.cc.
References core::chemical::ChemicalManager::atom_type_set(), core::chemical::FA_STANDARD, and core::chemical::ChemicalManager::get_instance().
Referenced by add_bond_length(), and get_bond_length().
| bool core::chemical::IdealBondLengthSet::contains_bond_length | ( | AtomTypeIndex | atom_type_index1, |
| AtomTypeIndex | atom_type_index2 | ||
| ) | const |
Definition at line 52 of file IdealBondLengthSet.cc.
References bond_lengths_, and core::id::swap().
| BondLength core::chemical::IdealBondLengthSet::get_bond_length | ( | std::string const & | atom_type_name1, |
| std::string const & | atom_type_name2 | ||
| ) | const |
Lookup the element index by the element_symbol string.
Definition at line 64 of file IdealBondLengthSet.cc.
References core::chemical::ChemicalManager::atom_type_set(), contains_bond_length(), core::chemical::FA_STANDARD, core::chemical::ChemicalManager::get_instance(), and core::id::swap().
| BondLength core::chemical::IdealBondLengthSet::get_bond_length | ( | AtomTypeIndex const | atom_type_index1, |
| AtomTypeIndex const | atom_type_index2 | ||
| ) | const |
Definition at line 80 of file IdealBondLengthSet.cc.
References bond_lengths_, and contains_bond_length().
| void core::chemical::IdealBondLengthSet::print_all_bond_lengths | ( | ) |
Print all of the symbols of all of the Elements in the set. Usefull for debuging.
This function iterates over each bond_type pair in the bond_length_ map and prints both keys. It is only used for debugging.
Definition at line 162 of file IdealBondLengthSet.cc.
References bond_lengths_.
| void core::chemical::IdealBondLengthSet::read_file | ( | std::string const & | filename) |
Load the IdealBondLengthSet from a file.
Definition at line 125 of file IdealBondLengthSet.cc.
References add_bond_length().
|
private |
pair of atom type indices and the ideal length between these atom types
Definition at line 92 of file IdealBondLengthSet.hh.
Referenced by add_bond_length(), contains_bond_length(), get_bond_length(), and print_all_bond_lengths().
1.8.4