Rosetta 3.5
|
#include <UpstreamHitCacher.hh>
Public Types | |
typedef utility::fixedsizearray1< Size, 2 > | ScaffoldRotamerPair |
typedef utility::OrderedTuple < ScaffoldRotamerPair > | ScaffoldRotamerTuple |
Public Member Functions | |
UpstreamHitCacher (MatcherCOP matcher) | |
virtual | ~UpstreamHitCacher () |
void | set_cache_size (Size n_rotamers_to_cache) |
core::conformation::ResidueCOP | upstream_conformation_for_hit (Size geometric_constraint_id, Hit const &hit) |
virtual void | process_hit (Hit const &hit, core::conformation::Residue const &upstream_conformation) |
The method by which the UpstreamHitCacher communicates with the UpstreamBuilders. CAUTION: this class should not be handed to an UpstreamBuilder directly. It should only hand itself to an UpstreamBuilder. Ask the UpstreamHitCacher for a particular hit, and it will call recover_rotamer() on the upstream builder; it's doing bookkeeping in the background and that bookkeeping is important for the success of this function. More... | |
![]() | |
virtual | ~UpstreamResidueProcessor () |
Private Member Functions | |
void | resize_arrays () |
Allocate space in the arrays dependent on n_geometric_constraints_ and n_confs_to_cache_. More... | |
Size | already_in_queue (Size cst_id, ScaffoldRotamerTuple const &rotid) const |
Returns 0 if the scaffold/rotamer pair is not already in the queue, and the non-zero index in the queue if it is. More... | |
Size | fetch (Size cst_id, ScaffoldRotamerTuple const &rotid) |
Construct the rotamer for the requested scaffold/rotamer pair and put it into the queue, evicting the previous queue resident if necessary. More... | |
typedef utility::fixedsizearray1< Size, 2 > protocols::match::output::UpstreamHitCacher::ScaffoldRotamerPair |
typedef utility::OrderedTuple< ScaffoldRotamerPair > protocols::match::output::UpstreamHitCacher::ScaffoldRotamerTuple |
protocols::match::output::UpstreamHitCacher::UpstreamHitCacher | ( | MatcherCOP | matcher) |
References resize_arrays().
|
virtual |
|
private |
Returns 0 if the scaffold/rotamer pair is not already in the queue, and the non-zero index in the queue if it is.
References core::sequence::end, and index_for_rotamer_.
Referenced by upstream_conformation_for_hit().
|
private |
Construct the rotamer for the requested scaffold/rotamer pair and put it into the queue, evicting the previous queue resident if necessary.
References protocols::match::Hit::first(), matcher_, queue_head_, protocols::match::Hit::scaffold_build_id(), and which_cst_being_processed_.
Referenced by upstream_conformation_for_hit().
|
virtual |
The method by which the UpstreamHitCacher communicates with the UpstreamBuilders. CAUTION: this class should not be handed to an UpstreamBuilder directly. It should only hand itself to an UpstreamBuilder. Ask the UpstreamHitCacher for a particular hit, and it will call recover_rotamer() on the upstream builder; it's doing bookkeeping in the background and that bookkeeping is important for the success of this function.
Implements protocols::match::upstream::UpstreamResidueProcessor.
References core::sequence::end, index_for_rotamer_, n_confs_to_cache_, queue_head_, protocols::match::Hit::scaffold_build_id(), scafrot_pair_for_conf_, protocols::match::Hit::upstream_conf_id(), upstream_confs_, and which_cst_being_processed_.
|
private |
Allocate space in the arrays dependent on n_geometric_constraints_ and n_confs_to_cache_.
References index_for_rotamer_, n_confs_to_cache_, n_geometric_constraints_, queue_head_, scafrot_pair_for_conf_, and upstream_confs_.
Referenced by set_cache_size(), and UpstreamHitCacher().
void protocols::match::output::UpstreamHitCacher::set_cache_size | ( | Size | n_rotamers_to_cache) |
References n_confs_to_cache_, and resize_arrays().
core::conformation::ResidueCOP protocols::match::output::UpstreamHitCacher::upstream_conformation_for_hit | ( | Size | geometric_constraint_id, |
Hit const & | hit | ||
) |
|
private |
Referenced by already_in_queue(), process_hit(), and resize_arrays().
|
private |
Referenced by fetch().
|
private |
Referenced by process_hit(), resize_arrays(), and set_cache_size().
|
private |
Referenced by resize_arrays().
|
private |
Referenced by fetch(), process_hit(), and resize_arrays().
|
private |
Referenced by process_hit(), and resize_arrays().
|
private |
Referenced by process_hit(), resize_arrays(), and upstream_conformation_for_hit().
|
private |
Referenced by fetch(), and process_hit().