|
Rosetta 3.5
|
A singleton class which reads in database SASA radii files and provides accessors for those values to the RotamerDots class. More...
#include <RotamerDots.hh>

Public Member Functions | |
| utility::vector1< Real > * | get_ROSETTA_SASA_radii () |
| return a pointer to the standard Rosetta SASA radii More... | |
| utility::vector1< Real > * | get_NACCESS_SASA_radii () |
| return a pointer to the SASA radii used by NACCESS More... | |
| utility::vector1< Real > * | get_NACCESS_SASA_radii_with_expanded_polars (Real polar_expansion_radius=1.0) |
| return a pointer to the SASA radii used by NACCESS, with polar atom radii expanded More... | |
Static Public Member Functions | |
| static RotamerDotsRadiusData * | get_instance () |
| static function to get the instance of (pointer to) this singleton class More... | |
Private Member Functions | |
| RotamerDotsRadiusData () | |
| private constructor More... | |
Private Attributes | |
| utility::vector1< Real > | ROSETTA_SASA_radii_ |
| utility::vector1< Real > | NACCESS_SASA_radii_ |
| utility::vector1< Real > | NACCESS_SASA_radii_with_expanded_polars |
Static Private Attributes | |
| static RotamerDotsRadiusData * | instance_ |
| static data member holding pointer to the singleton class itself More... | |
A singleton class which reads in database SASA radii files and provides accessors for those values to the RotamerDots class.
Let's say we have to create RotamerDots objects for two different sets of SASA radii. When those objects are constructed a pointer to the right set of radii will have to be set. Definitely don't want to copy/store the radii to each instance. If I make it a pointer to this class, then it would only work for one set of radii. So at RotamerDots construct time we have to ask this class to give us a pointer to the set of radii that are requested. Then only one instance of this class exists, and all RotamerDots objects have pointers set to the radii they care about. What would this change in the RotamerDots API? The get_radius() function would dereference the pointer and index into the vector to get the right radius. This structure is similar to how the ChemicalManager works. But, in that class, the functions return AtomTypeSet objects.
Definition at line 291 of file RotamerDots.hh.
|
private |
private constructor
private constructor to guarantee the singleton
Definition at line 1624 of file RotamerDots.cc.
|
static |
static function to get the instance of (pointer to) this singleton class
Definition at line 1616 of file RotamerDots.cc.
Referenced by core::pack::interaction_graph::RotamerDots::RotamerDots().
| utility::vector1< Real > * core::pack::interaction_graph::RotamerDotsRadiusData::get_NACCESS_SASA_radii | ( | ) |
return a pointer to the SASA radii used by NACCESS
Definition at line 1657 of file RotamerDots.cc.
References core::chemical::ChemicalManager::atom_type_set(), core::chemical::AtomTypeSet::extra_parameter_index(), core::chemical::FA_STANDARD, core::chemical::ChemicalManager::get_instance(), core::chemical::AtomTypeSet::n_atomtypes(), and TR_RDRD().
Referenced by core::pack::interaction_graph::RotamerDots::RotamerDots().
| utility::vector1< Real > * core::pack::interaction_graph::RotamerDotsRadiusData::get_NACCESS_SASA_radii_with_expanded_polars | ( | Real | polar_expansion_radius = 1.0) |
return a pointer to the SASA radii used by NACCESS, with polar atom radii expanded
Definition at line 1684 of file RotamerDots.cc.
References core::io::serialization::at(), core::chemical::ChemicalManager::atom_type_set(), core::chemical::AtomType::element(), core::chemical::FA_STANDARD, core::chemical::ChemicalManager::get_instance(), and TR_RDRD().
Referenced by core::pack::interaction_graph::RotamerDots::RotamerDots().
| utility::vector1< Real > * core::pack::interaction_graph::RotamerDotsRadiusData::get_ROSETTA_SASA_radii | ( | ) |
return a pointer to the standard Rosetta SASA radii
Definition at line 1627 of file RotamerDots.cc.
References core::chemical::ChemicalManager::atom_type_set(), core::chemical::AtomTypeSet::extra_parameter_index(), core::chemical::FA_STANDARD, core::chemical::ChemicalManager::get_instance(), core::chemical::AtomTypeSet::n_atomtypes(), and TR_RDRD().
|
staticprivate |
static data member holding pointer to the singleton class itself
set initial value as no instance
Definition at line 310 of file RotamerDots.hh.
|
private |
Definition at line 313 of file RotamerDots.hh.
|
private |
Definition at line 314 of file RotamerDots.hh.
|
private |
Definition at line 312 of file RotamerDots.hh.
1.8.4