Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

CosineTorsion Class Reference
[Force Field Parameters]

Cosine Torsion. More...

#include <cosineTorsion.h>

Inheritance diagram for CosineTorsion:

ParameterSection List of all members.

Public Types

enum  { UNKNOWN }

Public Member Functions

Constructors and Destructors
 CosineTorsion ()
 Default constructor.
 CosineTorsion (const CosineTorsion &cosine_torsion)
 Copy constructor.
virtual ~CosineTorsion () throw ()
 Destructor.
virtual void clear () throw ()
 Clear method.
Accessors
virtual bool extractSection (ForceFieldParameters &parameters, const String &section_name)
 Reads a parameter section from an INI file.
virtual bool extractSection (Parameters &parameters, const String &section_name)
 Reads a parameter section from an INI file.
bool hasParameters (Atom::Type I, Atom::Type J, Atom::Type K, Atom::Type L) const
 Queries whether a parameter set is defined for the given atom types.
CosineTorsion::Values getParameters (Atom::Type I, Atom::Type J, Atom::Type K, Atom::Type L) const
 Returns the parameters for a given atom type combination.
bool assignParameters (CosineTorsion::Values &parameters, Atom::Type I, Atom::Type J, Atom::Type K, Atom::Type L) const
 Assign the parameters for a given atom type combination.
Assignment
CosineTorsionoperator= (const CosineTorsion &cosine_torsion)
 Assignment operator.
Predicates
bool operator== (const CosineTorsion &cosine_torsion) const
 Equality operator.

Protected Attributes

Size number_of_atom_types_
vector< Values > torsions_
HashMap< Size, Sizetorsion_hash_map_

Detailed Description

Cosine Torsion.

Molecular Mechanics Parameter: class describing the parameter section required for torsions using a cosine type potential function.


Constructor & Destructor Documentation

CosineTorsion::CosineTorsion  ) 
 

Default constructor.

virtual CosineTorsion::~CosineTorsion  )  throw () [virtual]
 

Destructor.


Member Function Documentation

bool CosineTorsion::assignParameters CosineTorsion::Values &  parameters,
Atom::Type  I,
Atom::Type  J,
Atom::Type  K,
Atom::Type  L
const
 

Assign the parameters for a given atom type combination.

If no parameters are defined for this combination, false is returned and nothing is changed.

virtual void CosineTorsion::clear  )  throw () [virtual]
 

Clear method.

Reimplemented from ParameterSection.

virtual bool CosineTorsion::extractSection Parameters parameters,
const String section_name
[virtual]
 

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 to the data.

Parameters:
parameters the parameters defining the inifile to be read from
section_name the name of the section to be read (without the squared brackets)
Returns:
bool - true if the section could be read, false otherwise

Reimplemented from ParameterSection.

virtual bool CosineTorsion::extractSection ForceFieldParameters parameters,
const String section_name
[virtual]
 

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.

CosineTorsion::Values CosineTorsion::getParameters Atom::Type  I,
Atom::Type  J,
Atom::Type  K,
Atom::Type  L
const
 

Returns the parameters for a given atom type combination.

bool CosineTorsion::hasParameters Atom::Type  I,
Atom::Type  J,
Atom::Type  K,
Atom::Type  L
const
 

Queries whether a parameter set is defined for the given atom types.