BALL
1.4.2
|
#include <BALL/STRUCTURE/fragmentDB.h>
Public Member Functions | |
Constructors and Destructors | |
NormalizeNamesProcessor () | |
NormalizeNamesProcessor (FragmentDB &db) | |
virtual | ~NormalizeNamesProcessor () |
Inspectors and Mutators | |
void | setFragmentDB (FragmentDB &db) |
void | setNamingStandard (const String &naming_standard) |
const String & | getNamingStandard () |
bool | matchName (String &res_name, String &atom_name, const NameMap &map) const |
Processor specific methods | |
virtual bool | start () |
virtual bool | finish () |
virtual Processor::Result | operator() (Fragment &fragment) |
Public Member Functions inherited from BALL::UnaryProcessor< Fragment > | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
Private Types | |
enum | CountingMode { ADD, OVERWRITE } |
Private Member Functions | |
String | getSuffix_ (const Fragment *frag) const |
bool | doMatch_ (String &res_name, const String &res_name_suffix, String &atom_name, const NameMap &map) const |
void | countHits_ (HashMap< NameMap *, Index > &maps, const std::list< Fragment * > &frags) |
void | countHits_ (HashMap< NameMap *, Index > &maps, const Fragment *frag, CountingMode mode=OVERWRITE) |
const NameMap * | getBestMap_ (const HashMap< NameMap *, Index > &maps) const |
void | normalizeFragments_ (const NameMap *map, const std::list< Fragment * > &frags) |
void | normalizeFragment_ (const NameMap *map, Fragment *frag) |
Private Attributes | |
String | naming_standard_ |
FragmentDB * | fragment_db_ |
std::list< Fragment * > | fragments_ |
Additional Inherited Members | |
Public Types inherited from BALL::UnaryFunctor< Fragment, Processor::Result > | |
typedef Processor::Result | result_type |
typedef Fragment | argument_type |
typedef Fragment & | argument_reference |
typedef const Fragment & | const_argument_reference |
typedef Fragment * | argument_pointer |
typedef const Fragment * | const_argument_pointer |
Name normalization processor. This class is used to adopt all names in a molecular system to a given naming standard (usually the PDB standard).
Definition at line 254 of file fragmentDB.h.
Enumerator | |
---|---|
ADD | |
OVERWRITE |
Definition at line 318 of file fragmentDB.h.
BALL::FragmentDB::NormalizeNamesProcessor::NormalizeNamesProcessor | ( | ) |
Default constructor
BALL::FragmentDB::NormalizeNamesProcessor::NormalizeNamesProcessor | ( | FragmentDB & | db | ) |
Constructor
|
virtual |
Destructor
|
private |
|
private |
|
private |
|
virtual |
Finish method
Reimplemented from BALL::UnaryProcessor< Fragment >.
|
private |
const String& BALL::FragmentDB::NormalizeNamesProcessor::getNamingStandard | ( | ) |
Retrieve the current naming standard
bool BALL::FragmentDB::NormalizeNamesProcessor::matchName | ( | String & | res_name, |
String & | atom_name, | ||
const NameMap & | map | ||
) | const |
Try to match a name in one of the maps
|
private |
|
private |
|
virtual |
Application method
Reimplemented from BALL::UnaryProcessor< Fragment >.
void BALL::FragmentDB::NormalizeNamesProcessor::setFragmentDB | ( | FragmentDB & | db | ) |
Bind the processor to a fragment database.
void BALL::FragmentDB::NormalizeNamesProcessor::setNamingStandard | ( | const String & | naming_standard | ) |
|
virtual |
Start method
Reimplemented from BALL::UnaryProcessor< Fragment >.
|
private |
Definition at line 329 of file fragmentDB.h.
|
private |
Definition at line 331 of file fragmentDB.h.
|
private |
Definition at line 327 of file fragmentDB.h.