Rosetta  2020.46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
core::pack::interaction_graph::SymmMinimalistEdge Class Reference

#include <SymmMinimalistInteractionGraph.hh>

Inheritance diagram for core::pack::interaction_graph::SymmMinimalistEdge:
Inheritance graph
[legend]

Public Member Functions

 SymmMinimalistEdge (InteractionGraphBase *owner, int first_node_ind, int second_node_ind)
 
 ~SymmMinimalistEdge () override
 
core::PackerEnergy get_two_body_energy (int const node1state, int const node2state) const 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, core::PackerEnergy &new_energy)
 
void acknowledge_state_zeroed (int node_ind)
 
void acknowledge_partial_state_change (int node_ind, int new_state)
 
core::PackerEnergy get_energy_following_partial_state_assignment ()
 
core::PackerEnergy get_energy_for_alt_state (int changing_node_index)
 
core::PackerEnergy curr_state_energy () const
 
core::PackerEnergy alt_state_energy () const
 
void acknowledge_substitution (int substituted_node_index, core::PackerEnergy const curr_state_energy, int nodes_new_state)
 
int get_two_body_table_size () const
 
void declare_energies_final () override
 
void print_current_energy () const
 
unsigned int count_static_memory () const override
 
unsigned int count_dynamic_memory () const override
 
void set_edge_weight (Real weight) override
 
- Public Member Functions inherited from core::pack::interaction_graph::SymmOnTheFlyEdge
 ~SymmOnTheFlyEdge () override
 
 SymmOnTheFlyEdge (InteractionGraphBase *owner, int first_node_ind, int second_node_ind)
 
void add_ProCorrection_values (int node_not_necessarily_proline, int state, core::PackerEnergy bb_nonprobb_E, core::PackerEnergy bb_probb_E, core::PackerEnergy sc_nonprobb_E, core::PackerEnergy sc_probb_E)
 
void add_GlyCorrection_values (int node_not_necessarily_glycine, int state, core::PackerEnergy bb_nonglybb_E, core::PackerEnergy bb_glybb_E, core::PackerEnergy sc_nonglybb_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
 
void set_residues_adjacent_for_subunit_pair (int which_node, int other_node_subunit)
 
unsigned char residues_adjacent_for_subunit_pair (int which_node, int other_node_subunit, int whichnode_restypegroup, int othernode_restypegroup) const
 
void set_sparse_aa_info (ObjexxFCL::FArray2_bool const &) override
 fullfilling base class virtual member request – however, this funciton does not quite make sense for a symmetric oft ig so this is just stubbed out as a noop. More...
 
bool get_sparse_aa_info (int, int) const override
 fullfilling base class virtual member request – however, this function does not quite make sense for a symmetric otf ig, so this is just stubbed out to return true. More...
 
void force_aa_neighbors (int, int) override
 fullfilling base class virtual member request – however, this funciton does not quite make sense for a symmetric oft ig so this is just stubbed out as a noop. More...
 
void force_all_aa_neighbors () override
 fullfilling base class virtual member request – however, this funciton does not quite make sense for a symmetric oft ig so this is just stubbed out as a noop. More...
 
- 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...
 
NodeBaseget_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
 
InteractionGraphBaseget_owner ()
 

Private Member Functions

SymmMinimalistNode const * get_symmin_node (int index) const
 
SymmMinimalistNodeget_symmin_node (int index)
 
SymmMinimalistInteractionGraph
const * 
get_symmin_ig_owner () const
 
SymmMinimalistInteractionGraphget_symmin_ig_owner ()
 
void handle_bumped_recent_history_state_for_node (int node_substituted, int node_not_substituted, int bumped_recent_history_index)
 
void store_curr_state_energy ()
 
void wipe (int node)
 
 SymmMinimalistEdge ()
 
 SymmMinimalistEdge (SymmMinimalistEdge const &)
 
SymmMinimalistEdgeoperator= (SymmMinimalistEdge const &)
 

Private Attributes

bool store_rpes_ [2]
 
ObjexxFCL::FArray2D
< core::PackerEnergy
stored_rpes_ [2]
 
ObjexxFCL::FArray2D< unsigned
char > 
sparse_aa_neighbors_
 
core::PackerEnergy curr_state_energy_
 
core::PackerEnergy alt_state_energy_
 
bool partial_state_assignment_
 
bool preped_for_sim_annealing_
 

Additional Inherited Members

- Protected Member Functions inherited from core::pack::interaction_graph::SymmOnTheFlyEdge
core::PackerEnergy get_proline_correction (int which_node, int state) const
 
core::PackerEnergy get_glycine_correction (int which_node, int state) const
 
SymmOnTheFlyNode const * get_otf_node (int which_node) const
 
SymmOnTheFlyNodeget_otf_node (int which_node)
 
SymmOnTheFlyInteractionGraph
const * 
get_otf_owner () const
 
SymmOnTheFlyInteractionGraphget_otf_owner ()
 
- 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
 
NodeBaseget_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...
 

Constructor & Destructor Documentation

core::pack::interaction_graph::SymmMinimalistEdge::SymmMinimalistEdge ( InteractionGraphBase owner,
int  first_node_ind,
int  second_node_ind 
)
core::pack::interaction_graph::SymmMinimalistEdge::~SymmMinimalistEdge ( )
overridedefault
core::pack::interaction_graph::SymmMinimalistEdge::SymmMinimalistEdge ( )
private

Referenced by count_static_memory().

core::pack::interaction_graph::SymmMinimalistEdge::SymmMinimalistEdge ( SymmMinimalistEdge const &  )
private

Member Function Documentation

void core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_partial_state_change ( int  node_ind,
int  new_state 
)
void core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_state_change ( int  node_ind,
int  new_state,
core::PackerEnergy new_energy 
)
void core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_state_zeroed ( int  node_ind)
void core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_substitution ( int  substituted_node_index,
core::PackerEnergy const  curr_state_energy,
int  nodes_new_state 
)
inline
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::alt_state_energy ( ) const
inline

References alt_state_energy_.

unsigned int core::pack::interaction_graph::SymmMinimalistEdge::count_dynamic_memory ( ) const
overridevirtual
unsigned int core::pack::interaction_graph::SymmMinimalistEdge::count_static_memory ( ) const
overridevirtual
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::curr_state_energy ( ) const
inline

References curr_state_energy_.

Referenced by acknowledge_substitution().

void core::pack::interaction_graph::SymmMinimalistEdge::declare_energies_final ( )
overridevirtual
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::get_current_two_body_energy ( ) const
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::get_energy_following_partial_state_assignment ( )
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::get_energy_for_alt_state ( int  changing_node_index)
SymmMinimalistInteractionGraph const * core::pack::interaction_graph::SymmMinimalistEdge::get_symmin_ig_owner ( ) const
inlineprivate
SymmMinimalistInteractionGraph * core::pack::interaction_graph::SymmMinimalistEdge::get_symmin_ig_owner ( )
inlineprivate
SymmMinimalistNode const * core::pack::interaction_graph::SymmMinimalistEdge::get_symmin_node ( int  index) const
inlineprivate
SymmMinimalistNode * core::pack::interaction_graph::SymmMinimalistEdge::get_symmin_node ( int  index)
inlineprivate
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::get_two_body_energy ( int const  node1state,
int const  node2state 
) const
overridevirtual
int core::pack::interaction_graph::SymmMinimalistEdge::get_two_body_table_size ( ) const
void core::pack::interaction_graph::SymmMinimalistEdge::handle_bumped_recent_history_state_for_node ( int  node_substituted,
int  node_not_substituted,
int  bumped_recent_history_index 
)
private
SymmMinimalistEdge& core::pack::interaction_graph::SymmMinimalistEdge::operator= ( SymmMinimalistEdge const &  )
private
void core::pack::interaction_graph::SymmMinimalistEdge::prepare_for_simulated_annealing ( )
overridevirtual
void core::pack::interaction_graph::SymmMinimalistEdge::print_current_energy ( ) const
void core::pack::interaction_graph::SymmMinimalistEdge::set_edge_weight ( Real  weight)
overridevirtual

DANGER: this will not update the cached energies on the nodes this edge is incident upon.

Implements core::pack::interaction_graph::EdgeBase.

References core::pack::interaction_graph::EdgeBase::edge_weight().

void core::pack::interaction_graph::SymmMinimalistEdge::store_curr_state_energy ( )
private
void core::pack::interaction_graph::SymmMinimalistEdge::wipe ( int  node)
private

Member Data Documentation

core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::alt_state_energy_
private
core::PackerEnergy core::pack::interaction_graph::SymmMinimalistEdge::curr_state_energy_
private
bool core::pack::interaction_graph::SymmMinimalistEdge::partial_state_assignment_
private
bool core::pack::interaction_graph::SymmMinimalistEdge::preped_for_sim_annealing_
private
ObjexxFCL::FArray2D< unsigned char > core::pack::interaction_graph::SymmMinimalistEdge::sparse_aa_neighbors_
private
bool core::pack::interaction_graph::SymmMinimalistEdge::store_rpes_[2]
private
ObjexxFCL::FArray2D< core::PackerEnergy > core::pack::interaction_graph::SymmMinimalistEdge::stored_rpes_[2]
private

The documentation for this class was generated from the following files: