|
Rosetta 3.5
|
A set of CSDAtomTypes. More...
#include <CSDAtomTypeSet.hh>


Public Member Functions | |
| CSDAtomTypeSet () | |
| ~CSDAtomTypeSet () | |
| Size | n_atomtypes () const |
| Number of atom types in the set. More... | |
| bool | contains_atom_type (std::string const &atom_type_name) const |
| Check if there is an atom_type associated with an atom_type_name string. More... | |
| int | atom_type_index (std::string const &atom_type_name) const |
| Lookup the atom_type by the atom_type_name string. More... | |
| CSDAtomType const & | operator[] (Size const index) const |
| Lookup an CSDAtomType by 1-based indexing. More... | |
| void | read_file (std::string const &filename) |
| Load the CSDAtomTypeSet from a file. More... | |
| void | print_all_types () |
| Print all of the names of all of the CSDAtomTypes in the set. Useful for debugging. More... | |
Private Attributes | |
| std::map< std::string, int > | atom_type_index_ |
| atom_type_index_ lookup map More... | |
| utility::vector1< CSDAtomType * > | atoms_ |
| a collection of CSDAtomTypes, More... | |
A set of CSDAtomTypes.
This class contains a vector of pointers each of which points to an CSDAtomType and the vector index is looked up by an atom_name string in a map.
Definition at line 41 of file CSDAtomTypeSet.hh.
| core::chemical::CSDAtomTypeSet::CSDAtomTypeSet | ( | ) |
Definition at line 33 of file CSDAtomTypeSet.cc.
| core::chemical::CSDAtomTypeSet::~CSDAtomTypeSet | ( | ) |
Definition at line 39 of file CSDAtomTypeSet.cc.
| int core::chemical::CSDAtomTypeSet::atom_type_index | ( | std::string const & | atom_type_name) | const |
Lookup the atom_type by the atom_type_name string.
Definition at line 98 of file CSDAtomTypeSet.cc.
References atom_type_index_.
| bool core::chemical::CSDAtomTypeSet::contains_atom_type | ( | std::string const & | atom_type_name) | const |
Check if there is an atom_type associated with an atom_type_name string.
| Size core::chemical::CSDAtomTypeSet::n_atomtypes | ( | ) | const |
Number of atom types in the set.
| CSDAtomType const & core::chemical::CSDAtomTypeSet::operator[] | ( | Size const | index) | const |
Lookup an CSDAtomType by 1-based indexing.
Definition at line 109 of file CSDAtomTypeSet.cc.
References atoms_.
| void core::chemical::CSDAtomTypeSet::print_all_types | ( | ) |
Print all of the names of all of the CSDAtomTypes in the set. Useful for debugging.
This function iterates over each element in the atom_type_index_ map and prints both keys. It is only used for debugging.
Definition at line 90 of file CSDAtomTypeSet.cc.
References atom_type_index_.
| void core::chemical::CSDAtomTypeSet::read_file | ( | std::string const & | filename) |
Load the CSDAtomTypeSet from a file.
Initialize an CSDAtomTypeSet from an external file "filename", and set parameters and properties for each CSDAtomType. Refer to minirosetta_database_stock/chemical/mm_atom_type_sets/fa_standard/mm_atom_properties.txt for file format
Definition at line 59 of file CSDAtomTypeSet.cc.
References atom_type_index_, atoms_, and core::chemical::tr().
|
private |
atom_type_index_ lookup map
atom_type_index_ allows lookup of the atom type index by a string
Definition at line 80 of file CSDAtomTypeSet.hh.
Referenced by atom_type_index(), print_all_types(), and read_file().
|
private |
a collection of CSDAtomTypes,
CSDAtomType has data of atom properties, and it can be looked up by atom_type_index.
Definition at line 86 of file CSDAtomTypeSet.hh.
Referenced by operator[](), and read_file().
1.8.4