![]() |
Rosetta
2021.16
|
#include <LazyInteractionGraph.hh>

Public Member Functions | |
| LazyNode (InteractionGraphBase *owner, int node_id, int num_states) | |
| main constructor, no default or copy constructors More... | |
| ~LazyNode () override | |
| void | prepare_for_simulated_annealing () override |
| void | print () const override |
| bool | state_unassigned () const override |
| virtual core::PackerEnergy | get_totalE () const |
| void | assign_zero_state () override |
| void | assign_state (int new_state) |
| void | partial_assign_state (int new_state) |
| void | complete_state_assignment () |
| int | get_current_state () const |
| core::PackerEnergy | get_one_body_energy_current_state () const |
| core::PackerEnergy | project_deltaE_for_substitution (int alternate_state, core::PackerEnergy &prev_node_energy) |
| void | commit_considered_substitution () |
| core::PackerEnergy | compute_pair_energy_for_current_state (int edge_making_energy_request) |
| void | acknowledge_neighbors_state_substitution (int edge_to_altered_neighbor, core::PackerEnergy new_edge_energy, int other_node_new_state, SparseMatrixIndex const &other_node_new_state_sparse_info) |
| void | acknowledge_neighbors_partial_state_substitution (int edge_to_altered_neighbor, int other_node_new_, SparseMatrixIndex const &other_node_new_state_sparse_info) |
| SparseMatrixIndex const & | get_sparse_mat_info_for_curr_state () const |
| void | print_internal_energies () const |
| void | update_internal_energy_sums () |
| unsigned int | count_static_memory () const override |
| unsigned int | count_dynamic_memory () const override |
| memory accounting scheme More... | |
| virtual int | aatype_for_state (int state) const |
Public Member Functions inherited from core::pack::interaction_graph::OnTheFlyNode | |
| OnTheFlyNode (InteractionGraphBase *owner, int node_id, int num_states) | |
| main constructor, no default or copy constructors More... | |
| ~OnTheFlyNode () override | |
| void | set_rotamers (rotamer_set::RotamerSetCOP rotamers) |
| void | zero_one_body_energies () override |
| void | add_to_one_body_energies (ObjexxFCL::FArray1< core::PackerEnergy > &energy1b) override |
| void | update_one_body_energy (int state, core::PackerEnergy energy) override |
| virtual void | set_one_body_energy (int state, core::PackerEnergy energy) |
| void | add_to_one_body_energy (int state, core::PackerEnergy energy) override |
| virtual void | zero_one_body_energy (int state) |
| int | get_num_aa_types () const |
| utility::vector1< int > & | get_num_states_for_aa_types () |
| utility::vector1< int > const & | get_num_states_for_aa_types () const |
| int | get_num_states_for_aa_type (int aa_type) |
| SparseMatrixIndex const & | get_sparse_mat_info_for_state (int state) const |
| int | get_state_offset_for_aatype (int aatype) const |
| core::PackerEnergy | get_one_body_energy (int state) const |
| bool | distinguish_backbone_and_sidechain () const |
| void | distinguish_backbone_and_sidechain (bool setting) |
| unsigned int | count_dynamic_memory () const override |
| core::PackerEnergy | compute_rotamer_pair_energy (int edge_making_energy_request, int state_this, int state_other) const |
Public Member Functions inherited from core::pack::interaction_graph::FixedBBNode | |
| ~FixedBBNode () override | |
| FixedBBNode (InteractionGraphBase *owner, int node_id, int num_states) | |
Public Member Functions inherited from core::pack::interaction_graph::NodeBase | |
| virtual | ~NodeBase () |
| virtual destructor More... | |
| NodeBase (InteractionGraphBase *, int node_id, int num_states) | |
| Main constructor, no default constructor nor copy constructor. More... | |
| int | get_num_states () const |
| returns the number of states for this node More... | |
| std::list< EdgeBase * >::iterator | add_edge (EdgeBase *edge_ptr) |
| adds edge pointer to edge list; returns an iterator to the new list element More... | |
| void | drop_edge (std::list< EdgeBase * >::iterator edge_iterator) |
| removes an edge iterator from the node's edge list More... | |
| void | drop_all_edges () |
| deletes all edges incident upon this node More... | |
| EdgeBase * | find_edge (int other_node_index) const |
| a slow (linear) search for an edge. The edge is identified by the index of the node to which the edge connects this node. Returns NULL when there is no such connecting edge. More... | |
| void | depth_first_connected_component_counting () |
| performs a depth first traversal of the graph. Each node informs the graph that the traversal resulted in arriving at the node. More... | |
| std::list< EdgeBase * > ::const_iterator | edge_list_begin () |
| std::list< EdgeBase * > ::const_iterator | edge_list_end () |
| int | get_node_index () const |
| int | get_num_incident_edges () const |
| int | get_num_edges_to_smaller_indexed_nodes () const |
| int | get_num_edges_to_larger_indexed_nodes () const |
| EdgeBase const * | get_incident_edge (int index) const |
| These functions are public for the sake of writing good unit tests. More... | |
| EdgeBase * | get_incident_edge (int index) |
| int | get_index_of_adjacent_node (int index) const |
| NodeBase const * | get_adjacent_node (int index) const |
| NodeBase * | get_adjacent_node (int index) |
Private Member Functions | |
| void | update_internal_vectors () |
| LazyEdge const * | get_incident_lazy_edge (int index) const |
| Pointer Downcasts. More... | |
| LazyEdge * | get_incident_lazy_edge (int index) |
| LazyNode const * | get_adjacent_lazy_node (int index) const |
| LazyNode * | get_adjacent_lazy_node (int index) |
| LazyInteractionGraph const * | get_lazy_ig_owner () const |
| LazyInteractionGraph * | get_lazy_ig_owner () |
| LazyNode () | |
| LazyNode (LazyNode const &) | |
| LazyNode & | operator= (LazyNode const &) |
Private Attributes | |
| ObjexxFCL::FArray3D_int | aa_offsets_for_edges_ |
| ObjexxFCL::FArray2D_int | num_states_for_aa_type_for_higher_indexed_neighbor_ |
| std::vector < ObjexxFCL::FArray1A < core::PackerEnergy > > | edge_matrix_ptrs_ |
| std::vector< int > | neighbors_curr_state_ |
| std::vector< SparseMatrixIndex > | neighbors_curr_state_sparse_info_ |
| int | current_state_ |
| SparseMatrixIndex | curr_state_sparse_mat_info_ |
| core::PackerEnergy | curr_state_one_body_energy_ |
| core::PackerEnergy | curr_state_total_energy_ |
| std::vector< core::PackerEnergy > | curr_state_two_body_energies_ |
| int | alternate_state_ |
| SparseMatrixIndex | alt_state_sparse_mat_info_ |
| core::PackerEnergy | alternate_state_one_body_energy_ |
| core::PackerEnergy | alternate_state_total_energy_ |
| std::vector< core::PackerEnergy > | alternate_state_two_body_energies_ |
| bool | alternate_state_is_being_considered_ |
| bool | procrastinated_ |
Additional Inherited Members | |
Public Types inherited from core::pack::interaction_graph::OnTheFlyNode | |
| typedef std::pair< Vector, Real > | BoundingSphere |
| core::pack::interaction_graph::LazyNode::LazyNode | ( | InteractionGraphBase * | owner, |
| int | node_id, | ||
| int | num_states | ||
| ) |
main constructor, no default or copy constructors
| par Global Read: |
|
overridedefault |
| par Global Read: |
|
private |
Referenced by count_static_memory().
|
private |
|
virtual |
| void core::pack::interaction_graph::LazyNode::acknowledge_neighbors_partial_state_substitution | ( | int | edge_to_altered_neighbor, |
| int | other_node_new_state, | ||
| SparseMatrixIndex const & | other_node_new_state_sparse_info | ||
| ) |
| par Global Read: |
References curr_state_total_energy_, curr_state_two_body_energies_, neighbors_curr_state_, and neighbors_curr_state_sparse_info_.
Referenced by core::pack::interaction_graph::LazyEdge::acknowledge_partial_state_change().
|
inline |
| par Global Read: |
References curr_state_total_energy_, curr_state_two_body_energies_, neighbors_curr_state_, and neighbors_curr_state_sparse_info_.
Referenced by core::pack::interaction_graph::LazyEdge::acknowledge_state_change(), core::pack::interaction_graph::LazyEdge::acknowledge_state_zeroed(), and core::pack::interaction_graph::LazyEdge::acknowledge_substitution().
| void core::pack::interaction_graph::LazyNode::assign_state | ( | int | new_state | ) |
| par Global Read: |
References core::pack::interaction_graph::LazyEdge::acknowledge_state_change(), alternate_state_is_being_considered_, assign_zero_state(), curr_state_one_body_energy_, curr_state_sparse_mat_info_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), core::pack::interaction_graph::NodeBase::get_num_states(), core::pack::interaction_graph::OnTheFlyNode::get_one_body_energy(), and core::pack::interaction_graph::OnTheFlyNode::get_sparse_mat_info_for_state().
Referenced by core::pack::interaction_graph::LazyInteractionGraph::set_state_for_node().
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::NodeBase.
References core::pack::interaction_graph::LazyEdge::acknowledge_state_zeroed(), alternate_state_, alternate_state_is_being_considered_, curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
Referenced by assign_state(), core::pack::interaction_graph::LazyInteractionGraph::blanket_assign_state_0(), and partial_assign_state().
|
protected |
References project_deltaE_for_substitution().
| void core::pack::interaction_graph::LazyNode::commit_considered_substitution | ( | ) |
| par Global Read: |
References core::pack::interaction_graph::LazyEdge::acknowledge_substitution(), alt_state_sparse_mat_info_, alternate_state_, alternate_state_is_being_considered_, alternate_state_one_body_energy_, alternate_state_total_energy_, alternate_state_two_body_energies_, curr_state_one_body_energy_, curr_state_sparse_mat_info_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
Referenced by core::pack::interaction_graph::LazyInteractionGraph::commit_considered_substitution().
| void core::pack::interaction_graph::LazyNode::complete_state_assignment | ( | ) |
| par Global Read: |
References curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), and core::pack::interaction_graph::OnTheFlyNode::get_one_body_energy().
Referenced by core::pack::interaction_graph::LazyInteractionGraph::set_network_state().
| core::PackerEnergy core::pack::interaction_graph::LazyNode::compute_pair_energy_for_current_state | ( | int | edge_making_energy_request | ) |
| par Global Read: |
References core::pack::interaction_graph::OnTheFlyNode::compute_rotamer_pair_energy(), current_state_, and neighbors_curr_state_.
|
inlineprotected |
References alternate_state_is_being_considered_.
|
overridevirtual |
memory accounting scheme
Reimplemented from core::pack::interaction_graph::NodeBase.
References aa_offsets_for_edges_, alternate_state_two_body_energies_, core::pack::interaction_graph::OnTheFlyNode::count_dynamic_memory(), curr_state_two_body_energies_, edge_matrix_ptrs_, neighbors_curr_state_, neighbors_curr_state_sparse_info_, and num_states_for_aa_type_for_higher_indexed_neighbor_.
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::OnTheFlyNode.
References LazyNode().
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
References alternate_state_total_energy_.
|
inlineprotected |
References alternate_state_.
|
inlineprotected |
References curr_state_total_energy_.
|
inline |
|
inlineprivate |
Pointer Downcasts.
References core::pack::interaction_graph::NodeBase::get_incident_edge().
Referenced by assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), partial_assign_state(), update_internal_energy_sums(), and update_internal_vectors().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
| par Global Read: |
References current_state_, and core::pack::interaction_graph::OnTheFlyNode::get_sparse_mat_info_for_state().
Referenced by core::pack::interaction_graph::LazyEdge::get_energy_following_partial_state_assignment().
|
inlinevirtual |
References curr_state_total_energy_.
| void core::pack::interaction_graph::LazyNode::partial_assign_state | ( | int | new_state | ) |
| par Global Read: |
References core::pack::interaction_graph::LazyEdge::acknowledge_partial_state_change(), alternate_state_is_being_considered_, assign_zero_state(), curr_state_sparse_mat_info_, current_state_, get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), and core::pack::interaction_graph::OnTheFlyNode::get_sparse_mat_info_for_state().
Referenced by core::pack::interaction_graph::LazyInteractionGraph::set_network_state().
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::NodeBase.
References core::pack::interaction_graph::NodeBase::get_edge_vector_up_to_date(), and update_internal_vectors().
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::NodeBase.
References alternate_state_is_being_considered_, alternate_state_one_body_energy_, alternate_state_two_body_energies_, curr_state_one_body_energy_, curr_state_sparse_mat_info_, curr_state_two_body_energies_, current_state_, core::pack::interaction_graph::SparseMatrixIndex::get_aa_type(), core::pack::interaction_graph::NodeBase::get_index_of_adjacent_node(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), core::pack::interaction_graph::NodeBase::get_num_states(), and core::pack::interaction_graph::SparseMatrixIndex::get_state_ind_for_this_aa_type().
Referenced by core::pack::interaction_graph::LazyInteractionGraph::print_current_state_assignment().
| void core::pack::interaction_graph::LazyNode::print_internal_energies | ( | ) | const |
| par Global Read: |
References curr_state_one_body_energy_, curr_state_sparse_mat_info_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, core::pack::interaction_graph::SparseMatrixIndex::get_aa_type(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), and core::pack::interaction_graph::SparseMatrixIndex::get_state_ind_for_this_aa_type().
|
inline |
| par Global Read: |
References core::pack::interaction_graph::LazyEdge::NOT_YET_COMPUTED_ENERGY, core::pack::interaction_graph::LazyEdge::store_interaction_energy_first_node(), and core::pack::interaction_graph::LazyEdge::store_interaction_energy_second_node().
Referenced by calc_deltaEpd().
|
inlineprotected |
References alternate_state_.
|
inlineoverridevirtual |
Implements core::pack::interaction_graph::NodeBase.
References current_state_.
| void core::pack::interaction_graph::LazyNode::update_internal_energy_sums | ( | ) |
| par Global Read: |
References curr_state_one_body_energy_, curr_state_total_energy_, core::pack::interaction_graph::LazyEdge::get_current_two_body_energy(), core::pack::interaction_graph::NodeBase::get_edge_vector_up_to_date(), get_incident_lazy_edge(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
|
private |
| par Global Read: |
References aa_offsets_for_edges_, alternate_state_two_body_energies_, curr_state_two_body_energies_, edge_matrix_ptrs_, core::pack::interaction_graph::LazyEdge::get_edge_table_ptr(), get_incident_lazy_edge(), core::pack::interaction_graph::NodeBase::get_index_of_adjacent_node(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::OnTheFlyNode::get_num_aa_types(), core::pack::interaction_graph::NodeBase::get_num_edges_to_larger_indexed_nodes(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), core::pack::interaction_graph::LazyEdge::get_offsets_for_aatypes(), core::pack::interaction_graph::LazyEdge::get_second_node_num_states_per_aa(), core::pack::interaction_graph::LazyEdge::get_two_body_table_size(), neighbors_curr_state_, neighbors_curr_state_sparse_info_, num_states_for_aa_type_for_higher_indexed_neighbor_, and core::pack::interaction_graph::NodeBase::update_edge_vector().
Referenced by prepare_for_simulated_annealing().
|
private |
Referenced by count_dynamic_memory(), and update_internal_vectors().
|
private |
Referenced by commit_considered_substitution().
|
private |
Referenced by assign_zero_state(), commit_considered_substitution(), get_alternate_state(), and set_alternate_state().
|
private |
|
private |
Referenced by commit_considered_substitution(), and print().
|
private |
Referenced by commit_considered_substitution(), and get_alt_pd_energy_total().
|
private |
Referenced by commit_considered_substitution(), count_dynamic_memory(), print(), and update_internal_vectors().
|
private |
|
private |
Referenced by assign_state(), commit_considered_substitution(), partial_assign_state(), print(), and print_internal_energies().
|
private |
Referenced by acknowledge_neighbors_partial_state_substitution(), acknowledge_neighbors_state_substitution(), assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), get_curr_pd_energy_total(), get_totalE(), print_internal_energies(), and update_internal_energy_sums().
|
private |
Referenced by acknowledge_neighbors_partial_state_substitution(), acknowledge_neighbors_state_substitution(), assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), count_dynamic_memory(), print(), print_internal_energies(), and update_internal_vectors().
|
private |
|
private |
Referenced by count_dynamic_memory(), and update_internal_vectors().
|
private |
|
private |
|
private |
Referenced by count_dynamic_memory(), and update_internal_vectors().
|
private |
1.8.7