#include <atom_classifier.h>
Public Types | |
typedef Atom | Query_type |
typedef std::string | Key_type |
typedef NT | Value_type |
Public Member Functions | |
Radius_of_atom (const NT &radius, const unsigned &index) | |
NT | value () const |
Radius_of_atom (std::stringstream &ss, unsigned index) | |
Static Public Member Functions | |
template<class Dictionary , class Vector_properties > | |
static unsigned | default_loader (Dictionary &dict, Vector_properties &vect) |
static std::string | make_key (const Atom &atom) |
template<class Dictionary > | |
static unsigned | add_classification (std::stringstream &ss, Dictionary &dict) |
static void | handle_extra (std::stringstream &) |
static int & | index_of_default () |
A property class associating a radius to an atom.
NT | is the number type used for the radius. |
Atom | is the atom type. |
typedef std::string ESBTL::Radius_of_atom< NT, Atom >::Key_type |
The type of the hash key
typedef Atom ESBTL::Radius_of_atom< NT, Atom >::Query_type |
The type on which the queries are made,
typedef NT ESBTL::Radius_of_atom< NT, Atom >::Value_type |
The number type of the property stored, here the radius.
ESBTL::Radius_of_atom< NT, Atom >::Radius_of_atom | ( | const NT & | radius, |
const unsigned & | index | ||
) | [inline] |
Constructor
radius | is the radius associated to this property class. |
index | is the index of the property. |
ESBTL::Radius_of_atom< NT, Atom >::Radius_of_atom | ( | std::stringstream & | ss, |
unsigned | index | ||
) | [inline] |
Constructor
ss | is a string stream containing information about the property. ss must contains the radius associated to index (ex: 1.4). |
index | is the index of the property. |
static unsigned ESBTL::Radius_of_atom< NT, Atom >::add_classification | ( | std::stringstream & | ss, |
Dictionary & | dict | ||
) | [inline, static] |
Function adding the classification of an atom type.
Dictionary | an associative container, mapping a Query_type to the index of a property. |
ss | is a string stream containing the classification of an atom type. ss must contains in this order the residue name, the atom name and the index of the property (ex: ALA N 5) |
dict | is the container mapping atoms to the index of a property. |
static unsigned ESBTL::Radius_of_atom< NT, Atom >::default_loader | ( | Dictionary & | dict, |
Vector_properties & | vect | ||
) | [inline, static] |
Function filling default radius of atoms. Current implementation uses radii from Tsai J, Taylor R, Chothia C, Gerstein M. J Mol Biol. 1999 Jul 2;290(1):253-66.
Dictionary | an associative container, mapping a Query_type to the index of a property. |
Vector_properties | is a vector storing the properties. |
dict | is the container mapping atoms to the index of a property. |
vect | is a vector storing properties. |
static void ESBTL::Radius_of_atom< NT, Atom >::handle_extra | ( | std::stringstream & | ) | [inline, static] |
Unused function in that class (but definition needed by the classifier).
ss | a string stream. |
static int& ESBTL::Radius_of_atom< NT, Atom >::index_of_default | ( | ) | [inline, static] |
Function indicating the index of the property assigned to an unknown atom type. By default this value is -1, which indicate to the classifier that unknown atoms are not expected.
static std::string ESBTL::Radius_of_atom< NT, Atom >::make_key | ( | const Atom & | atom | ) | [inline, static] |
Function defining a unique identifier of an atom type.
atom | is an atom. |
NT ESBTL::Radius_of_atom< NT, Atom >::value | ( | ) | const [inline] |