#include <BALL/STRUCTURE/fragmentDB.h>
Classes | |
struct | Connection |
Public Types | |
Type definitions | |
typedef std::list< Connection > | ConnectionList |
Public Member Functions | |
Constructors and Destructors | |
BuildBondsProcessor () | |
BuildBondsProcessor (const FragmentDB &db) | |
virtual | ~BuildBondsProcessor () |
Processor-related methods | |
virtual bool | finish () |
virtual bool | start () |
virtual Processor::Result | operator() (Fragment &fragment) |
Accessors | |
Size | getNumberOfBondsBuilt () |
Return the number of bonds built during the last application. | |
void | setFragmentDB (const FragmentDB &fragment_db) |
Set the fragment database. | |
Bond building methods | |
Size | buildFragmentBonds (Fragment &fragment) const |
Size | buildFragmentBonds (Fragment &fragment, const Fragment &tplate) const throw (Exception::TooManyBonds) |
Size | buildInterFragmentBonds (Fragment &first, Fragment &second) const throw (Exception::TooManyBonds) |
Protected Member Functions | |
void | storeConnections_ (Fragment &fragment) |
bool | buildConnection_ (Connection &con1, Connection &con2) throw (Exception::TooManyBonds) |
Protected Attributes | |
FragmentDB * | fragment_db_ |
std::list< Fragment * > | fragment_list_ |
Size | bonds_built_ |
ConnectionList | connections_ |
Bond creation processor
typedef std::list<Connection> BALL::FragmentDB::BuildBondsProcessor::ConnectionList |
BALL::FragmentDB::BuildBondsProcessor::BuildBondsProcessor | ( | ) |
BALL::FragmentDB::BuildBondsProcessor::BuildBondsProcessor | ( | const FragmentDB & | db | ) |
virtual BALL::FragmentDB::BuildBondsProcessor::~BuildBondsProcessor | ( | ) | [virtual] |
bool BALL::FragmentDB::BuildBondsProcessor::buildConnection_ | ( | Connection & | con1, | |
Connection & | con2 | |||
) | throw (Exception::TooManyBonds) [protected] |
Build a connection between two atoms, if possible
Size BALL::FragmentDB::BuildBondsProcessor::buildFragmentBonds | ( | Fragment & | fragment, | |
const Fragment & | tplate | |||
) | const throw (Exception::TooManyBonds) |
Build all bonds in a fragment according to a manually supplied template. This method builds all bonds that are contained in manually provided template.
Build all bonds in a fragment. This method builds all bonds that are contained in the template.
Size BALL::FragmentDB::BuildBondsProcessor::buildInterFragmentBonds | ( | Fragment & | first, | |
Fragment & | second | |||
) | const throw (Exception::TooManyBonds) |
Build all possible bonds between two fragments. This method builds all bonds that are allowed by the Connections entries in a resource database.
virtual bool BALL::FragmentDB::BuildBondsProcessor::finish | ( | ) | [virtual] |
finish method
Reimplemented from BALL::UnaryProcessor< Fragment >.
Size BALL::FragmentDB::BuildBondsProcessor::getNumberOfBondsBuilt | ( | ) |
Return the number of bonds built during the last application.
virtual Processor::Result BALL::FragmentDB::BuildBondsProcessor::operator() | ( | Fragment & | ) | [virtual] |
operator ()
Reimplemented from BALL::UnaryProcessor< Fragment >.
void BALL::FragmentDB::BuildBondsProcessor::setFragmentDB | ( | const FragmentDB & | fragment_db | ) |
Set the fragment database.
virtual bool BALL::FragmentDB::BuildBondsProcessor::start | ( | ) | [virtual] |
start method
Reimplemented from BALL::UnaryProcessor< Fragment >.
void BALL::FragmentDB::BuildBondsProcessor::storeConnections_ | ( | Fragment & | fragment | ) | [protected] |
Store connections for a fragment. This method extracts all possible connections for a given fragment and stores them in a list of possible connections. finish will then check that list for possible inter-residue bonds.
A pointer to the fragment database
std::list<Fragment*> BALL::FragmentDB::BuildBondsProcessor::fragment_list_ [protected] |
A list of all fragments. This list is constructed incrementally by the operator () and is used by finish() to create the inter-fragment bonds