BALL
1.4.79
|
#include <BALL/DOCKING/COMMON/conformationSet.h>
Public Types | |
typedef std::pair< Index, float > | Conformation |
Public Member Functions | |
ConformationSet () | |
ConformationSet (const ConformationSet &cs) | |
ConformationSet (const System &system) | |
virtual | ~ConformationSet () |
void | setup (const System &system) |
void | add (const float score, const System &conformation) |
const System & | getSystem () const |
System & | getSystem () |
void | setScoring (std::vector< Conformation > &score) |
const std::vector< Conformation > & | getScoring () const |
void | resetScoring () |
const std::vector< SnapShot > & | getUnscoredConformations () const |
const SnapShot & | operator[] (const Index pos) const |
bool | writeDCDFile (const String &filename, const Size num=0) |
bool | readDCDFile (const String &filename) |
Size | size () const |
void | setParent (ConformationSet *new_parent) |
ConformationSet * | getParent () |
const ConformationSet * | getParent () const |
Protected Attributes | |
std::vector< Conformation > | snapshot_order_ |
System | system_ |
vector< SnapShot > | structures_ |
ConformationSet * | parent_ |
Data structure for conformation results.
Definition at line 32 of file conformationSet.h.
typedef std::pair< Index, float > BALL::ConformationSet::Conformation |
The conformations are scored as indices into the vector of snapshots with a score
Definition at line 39 of file conformationSet.h.
|
inline |
Definition at line 41 of file conformationSet.h.
BALL::ConformationSet::ConformationSet | ( | const ConformationSet & | cs | ) |
BALL::ConformationSet::ConformationSet | ( | const System & | system | ) |
|
inlinevirtual |
Definition at line 47 of file conformationSet.h.
|
inline |
Definition at line 95 of file conformationSet.h.
|
inline |
Definition at line 97 of file conformationSet.h.
const std::vector< Conformation >& BALL::ConformationSet::getScoring | ( | ) | const |
Return the current scoring.
const System& BALL::ConformationSet::getSystem | ( | ) | const |
System& BALL::ConformationSet::getSystem | ( | ) |
const std::vector< SnapShot >& BALL::ConformationSet::getUnscoredConformations | ( | ) | const |
Returns the unranked list of conformations, i.e. the conformations in the order in which they were added.
Returns the i-th snapshot using the current scoring information. TODO: Exception handling
void BALL::ConformationSet::resetScoring | ( | ) |
Reset the scoring vector to the identity permutation with identical scores of 0.
|
inline |
Definition at line 93 of file conformationSet.h.
void BALL::ConformationSet::setScoring | ( | std::vector< Conformation > & | score | ) |
Use score as the new scoring information.
void BALL::ConformationSet::setup | ( | const System & | system | ) |
Operations
Size BALL::ConformationSet::size | ( | ) | const |
Return the number of conformations.
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.
|
protected |
the original ConformationSet on which this set is based
Definition at line 118 of file conformationSet.h.
|
protected |
Attributes
Definition at line 106 of file conformationSet.h.
|
protected |
The SnapShots
Definition at line 114 of file conformationSet.h.
|
protected |
The original system on which the SnapShots are based
Definition at line 110 of file conformationSet.h.