BALL
1.4.79
|
#include <BALL/MOLMEC/PARAMETER/templates.h>
Public Member Functions | |
Constructors and Destructors | |
Templates () | |
Templates (const Templates &templates, bool deep=true) | |
virtual | ~Templates () |
virtual void | clear () |
virtual bool | extractSection (Parameters ¶meters, const String §ion_name) |
float | getCharge (const String &name) const |
String | getTypeName (const String &name) const |
bool | has (const String &name) const |
void | assign (System &system, bool overwrite_existing_typenames=true, bool overwrite_non_zero_charges=true) const |
void | assignCharges (System &system, bool overwrite_non_zero_charges=true) const |
void | assignTypeNames (System &system, bool overwrite_existing_typenames=true) const |
Assignment | |
Templates & | operator= (const Templates &templates) |
void | setMaximumUnassignedAtoms (Size nr) |
Size | getMaximumUnassignedAtoms () const |
Size | getNumberOfUnassignedAtoms () const |
Get the number of atoms, for which the assignment failed. More... | |
HashSet< const Atom * > & | getUnassignedAtoms () |
Get the atoms, for which the assignment failed. More... | |
Public Member Functions inherited from BALL::ParameterSection | |
ParameterSection () | |
ParameterSection (const ParameterSection ¶meter_section) | |
virtual | ~ParameterSection () |
bool | extractSection (Parameters ¶meters, const String §ion_name) |
const String & | getSectionName () const |
const String & | getValue (const String &key, const String &variable) const |
bool | has (const String &key, const String &variable) const |
bool | has (const String &key) const |
bool | hasVariable (const String &variable) const |
Position | getColumnIndex (const String &variable) const |
Size | getNumberOfVariables () const |
Size | getNumberOfKeys () const |
const String & | getValue (Position key_index, Position variable_index) const |
const String & | getKey (Position key_index) const |
const ParameterSection & | operator= (const ParameterSection §ion) |
virtual bool | isValid () const |
bool | operator== (const ParameterSection ¶meter_section) const |
Protected Attributes | |
StringHashMap< float > | charges_ |
StringHashMap< String > | type_names_ |
HashSet< const Atom * > | unassigned_atoms_ |
Size | max_number_unassigned_atoms_ |
Protected Attributes inherited from BALL::ParameterSection | |
String | section_name_ |
String | format_line_ |
StringHashMap< Index > | section_entries_ |
StringHashMap< Index > | variable_names_ |
std::vector< String > | entries_ |
std::vector< String > | keys_ |
Size | number_of_variables_ |
std::vector< float > | version_ |
bool | valid_ |
Additional Inherited Members | |
Public Types inherited from BALL::ParameterSection | |
enum | { MAX_FIELDS = 20 } |
Public Attributes inherited from BALL::ParameterSection | |
Options | options |
Static Public Attributes inherited from BALL::ParameterSection | |
static const String | UNDEFINED |
Force Field Residue Template Class.
Definition at line 31 of file templates.h.
BALL::Templates::Templates | ( | ) |
Default constructor.
|
virtual |
Destructor.
void BALL::Templates::assign | ( | System & | system, |
bool | overwrite_existing_typenames = true , |
||
bool | overwrite_non_zero_charges = true |
||
) | const |
Assign charges and type names
void BALL::Templates::assignCharges | ( | System & | system, |
bool | overwrite_non_zero_charges = true |
||
) | const |
Assign charges and type names
void BALL::Templates::assignTypeNames | ( | System & | system, |
bool | overwrite_existing_typenames = true |
||
) | const |
Assign type names
|
virtual |
Clear method.
Reimplemented from BALL::ParameterSection.
|
virtual |
Parameter extractionReads 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. The section is typically entitled ChargesAndTypeNames.
Returns the numeric type for a given string.
Size BALL::Templates::getMaximumUnassignedAtoms | ( | ) | const |
Get the number of atoms, for which the assignment can fail, until the assign() methods aborts and return false.
Size BALL::Templates::getNumberOfUnassignedAtoms | ( | ) | const |
Get the number of atoms, for which the assignment failed.
Get the atoms, for which the assignment failed.
Queries whether a given template atom is defined
Assignment operator. Copy the contents of templates
into this
residue template object.
templates | the residue template object to be copied |
void BALL::Templates::setMaximumUnassignedAtoms | ( | Size | nr | ) |
Set the number of atoms, for which the assignment can fail, until the assign() methods aborts and return false. By default, there is no limit set.
|
protected |
Definition at line 128 of file templates.h.
|
protected |
Definition at line 138 of file templates.h.
|
protected |
Definition at line 132 of file templates.h.
Definition at line 135 of file templates.h.