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

Public Member Functions | |
| LazyEdge (InteractionGraphBase *owner, int first_node_ind, int second_node_ind) | |
| ~LazyEdge () override | |
| void | set_sparse_aa_info (ObjexxFCL::FArray2_bool const &) override |
| void | force_aa_neighbors (int node1aa, int node2aa) override |
| re-allocates two-body energy table after forcing a pair of amino acids to become neighbors that were not initially declared to be neighbors More... | |
| void | force_all_aa_neighbors () override |
| re-allocates two-body energy table after forcing a pair of amino acids to become neighbors that were not initially declared to be neighbors More... | |
| bool | get_sparse_aa_info (int node1aa, int node2aa) const override |
| returns whether two amino acid types are represented as neighbors More... | |
| core::PackerEnergy | get_two_body_energy (int const node1state, int const node2state) const override |
| void | declare_energies_final () override |
| void | prepare_for_simulated_annealing () override |
| core::PackerEnergy | get_current_two_body_energy () const |
| void | acknowledge_state_change (int node_ind, int new_state, SparseMatrixIndex const &new_state_sparse_info, core::PackerEnergy &new_energy) |
| void | acknowledge_state_zeroed (int node_ind) |
| void | acknowledge_partial_state_change (int node_ind, int new_state, SparseMatrixIndex const &new_state_sparse_info) |
| core::PackerEnergy | get_energy_following_partial_state_assignment () |
| void | acknowledge_substitution (int substituted_node_index, core::PackerEnergy const curr_state_energy, int nodes_new_state, SparseMatrixIndex const &nodes_new_state_sparse_info) |
| void | set_edge_weight (Real weight) override |
| core::PackerEnergy & | get_edge_table_ptr () |
| int | get_two_body_table_size () const |
| void | print_current_energy () const |
| bool | build_sc_only_rotamer () |
| ObjexxFCL::FArray2D_int const & | get_offsets_for_aatypes () |
| utility::vector1< int > const & | get_second_node_num_states_per_aa () |
| ObjexxFCL::FArray2D < core::PackerEnergy > | get_aa_submatrix_energies (int node1aa, int node2aa) const |
| unsigned int | count_static_memory () const override |
| unsigned int | count_dynamic_memory () const override |
Public Member Functions inherited from core::pack::interaction_graph::OnTheFlyEdge | |
| ~OnTheFlyEdge () override | |
| OnTheFlyEdge (InteractionGraphBase *owner, int first_node_ind, int second_node_ind) | |
| void | set_ProCorrection_values (int node_not_necessarily_proline, int state, core::PackerEnergy bb_regbb_E, core::PackerEnergy bb_probb_E, core::PackerEnergy sc_regbb_E, core::PackerEnergy sc_probb_E) |
| void | set_GlyCorrection_values (int node_not_necessarily_glycine, int state, core::PackerEnergy bb_regbb_E, core::PackerEnergy bb_glybb_E, core::PackerEnergy sc_regbb_E, core::PackerEnergy sc_glybb_E) |
| core::PackerEnergy | get_proline_correction_for_node (int node_ind, int state) const |
| core::PackerEnergy | get_glycine_correction_for_node (int node_ind, int state) const |
| unsigned int | count_dynamic_memory () const override |
| bool | long_range_interactions_exist () const |
| bool | short_range_interactions_exist () const |
| void | note_long_range_interactions_exist () |
| void | note_short_range_interactions_exist () |
| ResiduePairEvalType | eval_type (int node_index) const |
Public Member Functions inherited from core::pack::interaction_graph::FixedBBEdge | |
| ~FixedBBEdge () override | |
| FixedBBEdge (InteractionGraphBase *owner, int first_node_ind, int second_node_ind) | |
Public Member Functions inherited from core::pack::interaction_graph::EdgeBase | |
| virtual | ~EdgeBase () |
| copy constructor, do not use More... | |
| EdgeBase (InteractionGraphBase *owner, int first_node_ind, int second_node_ind) | |
| main constructor for edge, no default nor copy constructors More... | |
| int | get_other_ind (int callers_index) const |
| returns the index of the other node that the edge is incident upon More... | |
| NodeBase * | get_other_node (int callers_index) const |
| returns a pointer to the other node that the edge is incident upon More... | |
| int | get_first_node_ind () const |
| returns the index of the smaller-indexed node More... | |
| int | get_second_node_ind () const |
| returns the index of the larger-indexed node More... | |
| void | set_pos_in_owners_list (std::list< EdgeBase * >::iterator edge_iterator) |
| edge keeps iterator to its position in it's owner's edge list More... | |
| void | set_pos_in_node_edgevector (int callers_index, int position) |
| edge keeps index it has in node_ind's edge vector More... | |
| bool | same_edge (int node1, int node2) const |
| returns true if this edge connects nodes of index node1 and node2 the order of node1 and node2 is not important More... | |
| Real | edge_weight () const |
| bool | marked_for_deletion () const |
| Has this edge indicated that it can be deleted? More... | |
| InteractionGraphBase const * | get_owner () const |
| InteractionGraphBase * | get_owner () |
Static Public Member Functions | |
| static core::PackerEnergy | get_alternate_state_energy_first_node (int first_node_alt_state, int second_node_orig_state, SparseMatrixIndex const &second_node_orig_state_sparse_info, int first_node_state_offset_minus_1, int second_node_curr_num_states_per_aatype, int aa_neighbor_offset, ObjexxFCL::FArray1< core::PackerEnergy > &edge_energy_table) |
| static core::PackerEnergy | get_alternate_state_energy_second_node (int first_node_orig_state, int second_node_alt_state, SparseMatrixIndex const &first_node_orig_state_sparse_info, SparseMatrixIndex const &second_node_alternate_state_sparse_info, int second_node_alt_state_num_states_per_aatype, int aa_neighbor_offset, ObjexxFCL::FArray1< core::PackerEnergy > &edge_energy_table) |
| static void | store_interaction_energy_first_node (SparseMatrixIndex const &second_node_orig_state_sparse_info, int first_node_state_offset_minus_1, int second_node_curr_num_states_per_aatype, int aa_neighbor_offset, ObjexxFCL::FArray1< core::PackerEnergy > &edge_energy_table, core::PackerEnergy interaction_energy) |
| static void | store_interaction_energy_second_node (SparseMatrixIndex const &first_node_orig_state_sparse_info, SparseMatrixIndex const &second_node_alternate_state_sparse_info, int second_node_alt_state_num_states_per_aatype, int aa_neighbor_offset, ObjexxFCL::FArray1< core::PackerEnergy > &edge_energy_table, core::PackerEnergy interaction_energy) |
Static Public Attributes | |
| static core::PackerEnergy const | NOT_YET_COMPUTED_ENERGY = -1234 |
Protected Member Functions | |
| void | declare_energies_final_no_deletion () |
| void | prepare_for_simulated_annealing_no_deletion () |
| bool | pd_edge_table_all_zeros () const |
Protected Member Functions inherited from core::pack::interaction_graph::OnTheFlyEdge | |
| core::PackerEnergy | get_proline_correction (int which_node, int state) const |
| core::PackerEnergy | get_glycine_correction (int which_node, int state) const |
| OnTheFlyNode const * | get_otf_node (int which_node) const |
| OnTheFlyNode * | get_otf_node (int which_node) |
Protected Member Functions inherited from core::pack::interaction_graph::EdgeBase | |
| void | mark_edge_for_deletion () |
| Mark this edge so that it can be deleted. More... | |
| int | get_node_index (int index) const |
| int | get_num_states_for_node (int index) const |
| NodeBase const * | get_node (int index) const |
| NodeBase * | get_node (int index) |
| int | get_edges_position_in_nodes_edge_vector (int index) const |
| int | which_node (int node_index) const |
| is a node the first or second node this edge is incident upon? More... | |
| void | edge_weight (Real) |
| protected setter of the edge weight. To be called by derived classes after they have completed the conversion from the previous edge weighting to the new edge weighting. More... | |
Private Member Functions | |
| void | get_energy_for_state_pair (int const nodes_states[2], SparseMatrixIndex sparse_matrix_indices[2]) |
| LazyNode const * | get_lazy_node (int index) const |
| LazyNode * | get_lazy_node (int index) |
| LazyInteractionGraph const * | get_lazy_ig_owner () const |
| LazyInteractionGraph * | get_lazy_ig_owner () |
| void | wipe_two_body_energies_for_node_state (int node, int state) |
| LazyEdge () | |
| LazyEdge (LazyEdge const &) | |
| LazyEdge & | operator= (LazyEdge const &) |
| core::pack::interaction_graph::LazyEdge::LazyEdge | ( | InteractionGraphBase * | owner, |
| int | first_node_ind, | ||
| int | second_node_ind | ||
| ) |
| par Global Read: |
|
overridedefault |
| par Global Read: |
|
private |
Referenced by count_static_memory().
|
private |
| void core::pack::interaction_graph::LazyEdge::acknowledge_partial_state_change | ( | int | node_ind, |
| int | new_state, | ||
| SparseMatrixIndex const & | new_state_sparse_info | ||
| ) |
| par Global Read: |
References core::pack::interaction_graph::LazyNode::acknowledge_neighbors_partial_state_substitution(), curr_state_energy_, core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_lazy_node(), core::pack::interaction_graph::EdgeBase::get_node_index(), and partial_state_assignment_.
Referenced by core::pack::interaction_graph::LazyNode::partial_assign_state().
| void core::pack::interaction_graph::LazyEdge::acknowledge_state_change | ( | int | node_ind, |
| int | new_state, | ||
| SparseMatrixIndex const & | new_state_sparse_info, | ||
| core::PackerEnergy & | new_energy | ||
| ) |
| par Global Read: |
References core::pack::interaction_graph::LazyNode::acknowledge_neighbors_state_substitution(), curr_state_energy_, core::pack::interaction_graph::LazyNode::get_current_state(), core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_energy_for_state_pair(), get_lazy_node(), and core::pack::interaction_graph::EdgeBase::get_node_index().
Referenced by core::pack::interaction_graph::LazyNode::assign_state().
| void core::pack::interaction_graph::LazyEdge::acknowledge_state_zeroed | ( | int | node_ind | ) |
| par Global Read: |
References core::pack::interaction_graph::LazyNode::acknowledge_neighbors_state_substitution(), curr_state_energy_, core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_lazy_node(), core::pack::interaction_graph::EdgeBase::get_node_index(), core::pack::interaction_graph::SparseMatrixIndex::set_aa_type(), and core::pack::interaction_graph::SparseMatrixIndex::set_state_ind_for_this_aa_type().
Referenced by core::pack::interaction_graph::LazyNode::assign_zero_state().
|
inline |
| par Global Read: |
References core::pack::interaction_graph::LazyNode::acknowledge_neighbors_state_substitution(), curr_state_energy_, core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_lazy_node(), and core::pack::interaction_graph::EdgeBase::get_node_index().
Referenced by core::pack::interaction_graph::LazyNode::commit_considered_substitution().
|
inline |
|
overridevirtual |
Reimplemented from core::pack::interaction_graph::EdgeBase.
References core::pack::interaction_graph::OnTheFlyEdge::count_dynamic_memory(), core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get_offset_table_size_in_bytes(), core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get_table_size(), and two_body_energies_.
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::OnTheFlyEdge.
References LazyEdge().
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::EdgeBase.
|
inlineprotected |
References prepare_for_simulated_annealing().
|
overridevirtual |
re-allocates two-body energy table after forcing a pair of amino acids to become neighbors that were not initially declared to be neighbors
| node1aa | - [in] - the amino acid type for the node with the smaller index |
| node2aa | - [in] - the amino acid type for the node with the larger index |
Implements core::pack::interaction_graph::FixedBBEdge.
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::blanket_set(), core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::force_aa_neighbors(), NOT_YET_COMPUTED_ENERGY, ran_annealing_since_pair_energy_table_cleared_, and two_body_energies_.
|
overridevirtual |
re-allocates two-body energy table after forcing a pair of amino acids to become neighbors that were not initially declared to be neighbors
| node1aa | - [in] - the amino acid type for the node with the smaller index |
| node2aa | - [in] - the amino acid type for the node with the larger index |
Implements core::pack::interaction_graph::FixedBBEdge.
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::blanket_set(), core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::force_all_aa_neighbors(), NOT_YET_COMPUTED_ENERGY, ran_annealing_since_pair_energy_table_cleared_, and two_body_energies_.
| ObjexxFCL::FArray2D< core::PackerEnergy > core::pack::interaction_graph::LazyEdge::get_aa_submatrix_energies | ( | int | node1aa, |
| int | node2aa | ||
| ) | const |
References core::pack::interaction_graph::OnTheFlyNode::compute_rotamer_pair_energy(), core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get_aa_submatrix_energies(), core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_lazy_node(), core::pack::interaction_graph::OnTheFlyEdge::get_otf_node(), core::pack::interaction_graph::OnTheFlyNode::get_state_offset_for_aatype(), NOT_YET_COMPUTED_ENERGY, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set(), and two_body_energies_.
Referenced by core::pack::interaction_graph::LazyInteractionGraph::get_aa_submatrix_energies_for_edge().
|
inlinestatic |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get().
|
inlinestatic |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get().
| core::PackerEnergy core::pack::interaction_graph::LazyEdge::get_current_two_body_energy | ( | ) | const |
| par Global Read: |
References curr_state_energy_.
Referenced by core::pack::interaction_graph::LazyNode::update_internal_energy_sums().
| core::PackerEnergy & core::pack::interaction_graph::LazyEdge::get_edge_table_ptr | ( | ) |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::getMatrixPointer(), and two_body_energies_.
Referenced by core::pack::interaction_graph::LazyNode::update_internal_vectors().
| core::PackerEnergy core::pack::interaction_graph::LazyEdge::get_energy_following_partial_state_assignment | ( | ) |
| par Global Read: |
References curr_state_energy_, core::pack::interaction_graph::LazyNode::get_current_state(), get_energy_for_state_pair(), get_lazy_node(), core::pack::interaction_graph::LazyNode::get_sparse_mat_info_for_curr_state(), and partial_state_assignment_.
|
private |
| par Global Read: |
References curr_state_energy_, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get(), core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), get_lazy_node(), NOT_YET_COMPUTED_ENERGY, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set(), and two_body_energies_.
Referenced by acknowledge_state_change(), and get_energy_following_partial_state_assignment().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References core::pack::interaction_graph::EdgeBase::get_node().
Referenced by acknowledge_partial_state_change(), acknowledge_state_change(), acknowledge_state_zeroed(), acknowledge_substitution(), get_aa_submatrix_energies(), get_energy_following_partial_state_assignment(), get_energy_for_state_pair(), get_second_node_num_states_per_aa(), and wipe_two_body_energies_for_node_state().
|
inlineprivate |
| ObjexxFCL::FArray2D_int const & core::pack::interaction_graph::LazyEdge::get_offsets_for_aatypes | ( | ) |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::getAANeighborOffsets(), and two_body_energies_.
Referenced by core::pack::interaction_graph::LazyNode::update_internal_vectors().
| utility::vector1< int > const & core::pack::interaction_graph::LazyEdge::get_second_node_num_states_per_aa | ( | ) |
| par Global Read: |
References get_lazy_node(), and core::pack::interaction_graph::OnTheFlyNode::get_num_states_for_aa_types().
Referenced by core::pack::interaction_graph::LazyNode::update_internal_vectors().
|
overridevirtual |
returns whether two amino acid types are represented as neighbors
Implements core::pack::interaction_graph::FixedBBEdge.
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get_sparse_aa_info(), and two_body_energies_.
|
overridevirtual |
Implements core::pack::interaction_graph::FixedBBEdge.
References core::pack::interaction_graph::OnTheFlyNode::compute_rotamer_pair_energy(), protocols::buns::energy, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get(), core::pack::interaction_graph::EdgeBase::get_edges_position_in_nodes_edge_vector(), core::pack::interaction_graph::OnTheFlyEdge::get_otf_node(), core::pack::interaction_graph::OnTheFlyNode::get_sparse_mat_info_for_state(), NOT_YET_COMPUTED_ENERGY, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set(), and two_body_energies_.
| int core::pack::interaction_graph::LazyEdge::get_two_body_table_size | ( | ) | const |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::get_table_size(), and two_body_energies_.
Referenced by core::pack::interaction_graph::LazyNode::update_internal_vectors().
|
inlineprotected |
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::EdgeBase.
References core::pack::interaction_graph::EdgeBase::mark_edge_for_deletion(), ran_annealing_since_pair_energy_table_cleared_, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::size(), and two_body_energies_.
Referenced by declare_energies_final_no_deletion(), and prepare_for_simulated_annealing_no_deletion().
|
inlineprotected |
References prepare_for_simulated_annealing().
| void core::pack::interaction_graph::LazyEdge::print_current_energy | ( | ) | const |
|
overridevirtual |
|
overridevirtual |
| par Global Read: |
Implements core::pack::interaction_graph::FixedBBEdge.
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::blanket_set(), NOT_YET_COMPUTED_ENERGY, ran_annealing_since_pair_energy_table_cleared_, core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set_sparse_aa_info(), and two_body_energies_.
|
inlinestatic |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set().
Referenced by core::pack::interaction_graph::LazyNode::project_deltaE_for_substitution().
|
inlinestatic |
| par Global Read: |
References core::pack::interaction_graph::AminoAcidNeighborSparseMatrix< T >::set().
Referenced by core::pack::interaction_graph::LazyNode::project_deltaE_for_substitution().
|
private |
|
private |
|
static |
Referenced by force_aa_neighbors(), force_all_aa_neighbors(), get_aa_submatrix_energies(), get_energy_for_state_pair(), get_two_body_energy(), core::pack::interaction_graph::LazyNode::project_deltaE_for_substitution(), set_edge_weight(), set_sparse_aa_info(), and wipe_two_body_energies_for_node_state().
|
private |
Referenced by acknowledge_partial_state_change(), and get_energy_following_partial_state_assignment().
|
private |
Referenced by force_aa_neighbors(), force_all_aa_neighbors(), prepare_for_simulated_annealing(), and set_sparse_aa_info().
|
mutableprivate |
Referenced by count_dynamic_memory(), force_aa_neighbors(), force_all_aa_neighbors(), get_aa_submatrix_energies(), get_edge_table_ptr(), get_energy_for_state_pair(), get_offsets_for_aatypes(), get_sparse_aa_info(), get_two_body_energy(), get_two_body_table_size(), prepare_for_simulated_annealing(), set_edge_weight(), set_sparse_aa_info(), and wipe_two_body_energies_for_node_state().
1.8.7