#include <BALL/MOLMEC/PARAMETER/atomTypes.h>
Public Member Functions | |
Constructors and Destructors | |
| AtomTypes () | |
| AtomTypes (const AtomTypes &atom_types) | |
| virtual | ~AtomTypes () |
| virtual bool | extractSection (Parameters ¶meters, const String §ion_name="AtomTypes") |
| Atom::Type | getType (const String &name) const |
| bool | hasType (const String &name) const |
| String | getTypeName (Atom::Type type) const |
| Size | getNumberOfTypes () const |
Assignment | |
| virtual void | clear () |
| AtomTypes & | operator= (const AtomTypes &atom_types) |
Predicates | |
| bool | operator== (const AtomTypes &atom_types) const |
Protected Attributes | |
| StringHashMap< Atom::Type > | type_map_ |
| vector< String > | names_ |
Force Field Atom Type Class.
Molecular Mechanics Parameter: class describing the atom type section of a parameter file.
| BALL::AtomTypes::AtomTypes | ( | ) |
Default constructor.
| BALL::AtomTypes::AtomTypes | ( | const AtomTypes & | atom_types | ) |
Copy constructor.
| virtual BALL::AtomTypes::~AtomTypes | ( | ) | [virtual] |
Destructor.
| virtual void BALL::AtomTypes::clear | ( | ) | [virtual] |
Clear method
Reimplemented from BALL::ParameterSection.
| virtual bool BALL::AtomTypes::extractSection | ( | Parameters & | parameters, | |
| const String & | section_name = "AtomTypes" | |||
| ) | [virtual] |
Parameter extraction Reads a parameter section from an INI file. This method reads the section given in section_name from ini_file, interprets (if given) a format line, reads the data from this section according to the format, and builds some datastructures for fast and easy acces this data.
Reimplemented from BALL::ParameterSection.
| Size BALL::AtomTypes::getNumberOfTypes | ( | ) | const |
| Atom::Type BALL::AtomTypes::getType | ( | const String & | name | ) | const |
Returns the numeric type for a given string.
| String BALL::AtomTypes::getTypeName | ( | Atom::Type | type | ) | const |
Returns the name for a given index
Queries whether a given atom type is defined
Assignment operator.
| atom_types | the atom types object to be copied |
vector<String> BALL::AtomTypes::names_ [protected] |
StringHashMap<Atom::Type> BALL::AtomTypes::type_map_ [protected] |