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

ConformationSet Class Reference
[Docking of molecular structures]

Data structure for conformation results. More...

#include <conformationSet.h>

List of all members.

Public Types

typedef std::pair< Index,
float > 
Conformation
 The conformations are scored as indices into the vector of snapshots with a score.

Public Member Functions

 ConformationSet (const System &system)
void setup (const System &system) throw ()
 Operations.
void add (const float score, const System &conformations) throw ()
const SystemgetSystem () const throw ()
SystemgetSystem () throw ()
void setScoring (std::vector< Conformation > &score) throw ()
 Use score as the new scoring information.
const std::vector< Conformation > & getScoring () const throw ()
 Return the current scoring.
void resetScoring () throw ()
 Reset the scoring vector to the identity permutation with identical scores of 0.
const std::vector< SnapShot > & getUnscoredConformations () const throw ()
 Returns the _unranked_ list of conformations, i.e.
const SnapShotoperator[] (const Index pos) const
 Returns the i-th snapshot using the current scoring information.
bool writeDCDFile (const String &filename, const Size num=0)
 Export the first num results in the order of the current scoring as dcd file with name filename.
bool readDCDFile (const String &filename) throw ()
Size size () const
 Return the number of conformations.

Protected Attributes

std::vector< Conformationsnapshot_order_
 Attributes.
System system_
 The original system on which the SnapShots are based.
vector< SnapShotstructures_
 The SnapShots.


Detailed Description

Data structure for conformation results.


Member Function Documentation

const std::vector<Conformation>& ConformationSet::getScoring  )  const throw ()
 

Return the current scoring.

const std::vector<SnapShot>& ConformationSet::getUnscoredConformations  )  const throw ()
 

Returns the _unranked_ list of conformations, i.e.

the conformations in the order in which they were added.

const SnapShot& ConformationSet::operator[] const Index  pos  )  const
 

Returns the i-th snapshot using the current scoring information.

TODO: Exception handling

void ConformationSet::resetScoring  )  throw ()
 

Reset the scoring vector to the identity permutation with identical scores of 0.

void ConformationSet::setScoring std::vector< Conformation > &  score  )  throw ()
 

Use score as the new scoring information.

Size ConformationSet::size  )  const
 

Return the number of conformations.

bool ConformationSet::writeDCDFile const String filename,
const Size  num = 0
 

Export the first num results in the order of the current scoring as dcd file with name filename.

If num == 0, all results are exported.