#include <atomTypes.h>
Public Member Functions |
|
Constructors and Destructors
|
|
AtomTypes () | |
Default constructor. |
|
AtomTypes (const AtomTypes &atom_types) | |
Copy constructor. |
|
virtual | ~AtomTypes () |
Destructor. |
|
virtual bool | extractSection (Parameters ¶meters, const String §ion_name="AtomTypes") |
Parameter extraction. |
|
Atom::Type | getType (const String &name) const |
Returns the numeric type for a given
string. |
|
bool | hasType (const String &name) const |
Queries whether a given atom type is
defined. |
|
String | getTypeName (Atom::Type type) const |
Returns the name for a given
index. |
|
Size | getNumberOfTypes () const |
Assignment
|
|
virtual void | clear () |
Clear method. |
|
AtomTypes & | operator= (const AtomTypes &atom_types) |
Assignment operator. |
|
Predicates
|
|
bool | operator== (const AtomTypes &atom_types) const |
Equality operator. |
|
Protected Attributes |
|
StringHashMap< Atom::Type > | type_map_ |
vector< String > | names_ |
Molecular Mechanics Parameter: class describing the atom type section of a parameter file.
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.