|
Rosetta 3.5
|
#include <SimpleInteractionGraph.hh>


Public Member Functions | |
| SimpleEdge (graph::Graph *owner, Size res1, Size res2) | |
| virtual | ~SimpleEdge () |
| virtual void | copy_from (graph::Edge const *) |
| copy-from for use in Graph::operator= and copy ctors More... | |
| virtual platform::Size | count_static_memory () const |
| how much memory is statically allocated by this edge More... | |
| virtual platform::Size | count_dynamic_memory () const |
| how much memory is dynamically allocated by this edge – must be recursively invoked by a derived class. More... | |
| void | compute_energy (bool use_current_node1, bool use_current_node2) |
| Real | get_current_energy () const |
| Real | get_proposed_energy () const |
| void | update_current_energy () |
| void | update_proposed_energy () |
| void | commit_change () |
Public Member Functions inherited from core::graph::Edge | |
| virtual | ~Edge () |
| destructor More... | |
| Edge (Graph *owner, platform::Size first_node_ind, platform::Size second_node_ind) | |
| Main edge constructor. This should only be invoked by create_new_edge, which itself is only called by add_edge. The ONLY way an edge should be added to a graph is through add_edge. NOTE: edges should be only be deleted by a call to the Graph's delete_edge method, and this method absolutely must be implemented by derived Graph classes. More... | |
| platform::Size | get_other_ind (platform::Size node_index) const |
| returns the index of the one node given the index of the other. node_index must be one of the two nodes that this edge is incident upon. More... | |
| Node const * | get_other_node (platform::Size node_index) const |
| returns a const pointer to one node given the index of the other. node_index must be one of the two nodes that this edge is incident upon. More... | |
| Node * | get_other_node (platform::Size node_index) |
| returns a non-const pointer to one node given the index of the other. node_index must be one of the two nodes that this edge is incident upon. More... | |
| platform::Size | get_first_node_ind () const |
| returns the index of the lower node More... | |
| platform::Size | get_second_node_ind () const |
| returns the index of the upper node More... | |
| void | set_pos_in_owners_list (EdgeListIter edge_iterator) |
| called only by class Graph, this function gives the Edge the data it needs to later delete itself from its owner's edge list in constant time. More... | |
| bool | same_edge (platform::Size node1, platform::Size node2) const |
| Is this the same edge as another edge (node1,node2)? Note: this graph does not work for multi-graphs. Edges must be unique. More... | |
| bool | is_loop () const |
| Is this edge a loop? In Pseudographs, loop edges are incident twice on a single vertex. More... | |
Private Member Functions | |
| SimpleInteractionGraph * | get_simple_ig_owner () |
| SimpleInteractionGraph const * | get_simple_ig_owner () const |
| Real | get_bb_E (conformation::Residue const &r1, conformation::Residue const &r2) |
| Size | get_bb_index (conformation::Residue const &r) const |
| These functions are to carefully gate access to the c-style, index-from-zero arrays. More... | |
| bool | bb_bb_boundaries (Size ind1, Size ind2) const |
| bool | bb_bbE_calced (Size ind1, Size ind2) const |
| void | set_bb_bbE_calced (Size ind1, Size ind2) |
| void | set_bb_bbE (Size ind1, Size ind2, Real val) |
| Real | bb_bbE (Size ind1, Size ind2) const |
Private Attributes | |
| bool | short_range_energies_exist_ |
| bool | long_range_energies_exist_ |
| Real | current_energy_ |
| Real | proposed_energy_ |
| bool | bb_bbE_calced_ [3][3] |
| Real | bb_bbE_ [3][3] |
Additional Inherited Members | |
Public Types inherited from core::graph::Edge | |
| typedef EdgeListIterator | EdgeListIter |
Protected Member Functions inherited from core::graph::Edge | |
| platform::Size | get_node_index (platform::Size index) const |
| get the node index for one of the two nodes this edge is incident upon uses c-style index-from-0. More... | |
| Node const * | get_node (platform::Size index) const |
| get a const * to one node that this edge is incident upon uses c-style index-from-0 for these two nodes More... | |
| Node * | get_node (platform::Size index) |
| get a non-const * to one node that this edge is incident upon uses c-style index-from-0 for these two nodes More... | |
| Graph const * | get_owner () const |
| get a const * to the owning graph More... | |
| Graph * | get_owner () |
| get a non-const * to the owning graph More... | |
Definition at line 165 of file SimpleInteractionGraph.hh.
| core::pack::interaction_graph::SimpleEdge::SimpleEdge | ( | graph::Graph * | owner, |
| Size | res1, | ||
| Size | res2 | ||
| ) |
Definition at line 327 of file SimpleInteractionGraph.cc.
References bb_bbE_, and bb_bbE_calced_.
|
virtual |
Definition at line 342 of file SimpleInteractionGraph.cc.
|
private |
Definition at line 491 of file SimpleInteractionGraph.cc.
Referenced by bb_bbE(), bb_bbE_calced(), set_bb_bbE(), and set_bb_bbE_calced().
Definition at line 519 of file SimpleInteractionGraph.cc.
References bb_bb_boundaries(), and bb_bbE_.
Referenced by get_bb_E().
|
private |
Definition at line 497 of file SimpleInteractionGraph.cc.
References bb_bb_boundaries(), and bb_bbE_calced_.
Referenced by get_bb_E().
| void core::pack::interaction_graph::SimpleEdge::commit_change | ( | ) |
Definition at line 379 of file SimpleInteractionGraph.cc.
References current_energy_, and proposed_energy_.
Referenced by core::pack::interaction_graph::SimpleNode::commit_change_no_res_pointer_update().
| void core::pack::interaction_graph::SimpleEdge::compute_energy | ( | bool | use_current_node1, |
| bool | use_current_node2 | ||
| ) |
Definition at line 385 of file SimpleInteractionGraph.cc.
References core::pack::interaction_graph::SimpleNode::alt_sc_centroid(), core::pack::interaction_graph::SimpleNode::alt_sc_radius(), core::pack::interaction_graph::SimpleNode::bb_centroid(), core::pack::interaction_graph::SimpleNode::bb_radius(), core::scoring::ScoreFunction::cd_2b_types(), core::scoring::ScoreFunction::ci_2b_types(), core::pack::interaction_graph::SimpleNode::curr_sc_centroid(), core::pack::interaction_graph::SimpleNode::curr_sc_radius(), current_energy_, core::scoring::EMapVector::dot(), core::scoring::eval_bbsc_sr2b_energies(), core::scoring::eval_scsc_sr2b_energies(), core::pack::interaction_graph::SimpleNode::get_alternate(), get_bb_E(), core::pack::interaction_graph::SimpleNode::get_current(), core::graph::Edge::get_node(), core::graph::Edge::get_owner(), core::pack::interaction_graph::SimpleInteractionGraph::pose(), proposed_energy_, core::pack::interaction_graph::SimpleInteractionGraph::scorefunction(), and core::scoring::ScoreFunction::weights().
Referenced by core::pack::interaction_graph::SimpleInteractionGraph::initialize(), update_current_energy(), and update_proposed_energy().
|
inlinevirtual |
copy-from for use in Graph::operator= and copy ctors
derived classes should recursively call the copy_from method to ensure all parent class data is copied. It just so happens that this method does nothing, but that could change and the derived class should include a call to this function for that reason.
Reimplemented from core::graph::Edge.
Definition at line 173 of file SimpleInteractionGraph.hh.
|
inlinevirtual |
how much memory is dynamically allocated by this edge – must be recursively invoked by a derived class.
memory accounting scheme
This method should be called recursively by derived classes – that is, each class should recurse to its parent.
Reimplemented from core::graph::Edge.
Definition at line 176 of file SimpleInteractionGraph.hh.
|
inlinevirtual |
how much memory is statically allocated by this edge
memory accouting scheme
This is called non-recursively on the most-derived class
Reimplemented from core::graph::Edge.
Definition at line 175 of file SimpleInteractionGraph.hh.
|
private |
Definition at line 458 of file SimpleInteractionGraph.cc.
References bb_bbE(), bb_bbE_calced(), core::scoring::ScoreFunction::cd_2b_types(), core::scoring::ScoreFunction::ci_2b_types(), core::scoring::EMapVector::dot(), core::scoring::ScoreFunction::eval_cd_2b_bb_bb(), core::scoring::ScoreFunction::eval_ci_2b_bb_bb(), get_bb_index(), core::graph::Edge::get_owner(), core::pack::interaction_graph::SimpleInteractionGraph::pose(), core::pack::interaction_graph::SimpleInteractionGraph::scorefunction(), set_bb_bbE(), set_bb_bbE_calced(), and core::scoring::ScoreFunction::weights().
Referenced by compute_energy().
|
private |
These functions are to carefully gate access to the c-style, index-from-zero arrays.
Definition at line 480 of file SimpleInteractionGraph.cc.
References core::conformation::Residue::aa(), core::chemical::aa_gly, and core::chemical::aa_pro.
Referenced by get_bb_E().
| Real core::pack::interaction_graph::SimpleEdge::get_current_energy | ( | ) | const |
Definition at line 345 of file SimpleInteractionGraph.cc.
References current_energy_.
Referenced by core::pack::interaction_graph::SimpleInteractionGraph::consider_substitution().
| Real core::pack::interaction_graph::SimpleEdge::get_proposed_energy | ( | ) | const |
Definition at line 351 of file SimpleInteractionGraph.cc.
References proposed_energy_.
Referenced by core::pack::interaction_graph::SimpleInteractionGraph::consider_substitution().
|
inlineprivate |
Real curr_scsc_E_; Real curr_bbsc_E_; Real curr_scbb_E_;
Real alt_scsc_E_; Real alt_bbsc_E_; Real alt_scbb_E_;
Definition at line 327 of file SimpleInteractionGraph.hh.
References core::graph::Edge::get_owner().
|
inlineprivate |
Definition at line 333 of file SimpleInteractionGraph.hh.
References core::graph::Edge::get_owner().
|
private |
Definition at line 511 of file SimpleInteractionGraph.cc.
References bb_bb_boundaries(), and bb_bbE_.
Referenced by get_bb_E().
Definition at line 504 of file SimpleInteractionGraph.cc.
References bb_bb_boundaries(), and bb_bbE_calced_.
Referenced by get_bb_E().
| void core::pack::interaction_graph::SimpleEdge::update_current_energy | ( | ) |
Definition at line 357 of file SimpleInteractionGraph.cc.
References compute_energy().
Referenced by core::pack::interaction_graph::SimpleNode::set_current().
| void core::pack::interaction_graph::SimpleEdge::update_proposed_energy | ( | ) |
Definition at line 363 of file SimpleInteractionGraph.cc.
References compute_energy(), core::graph::Edge::get_node(), and core::pack::interaction_graph::SimpleNode::moved().
Referenced by core::pack::interaction_graph::SimpleNode::set_alternate(), and core::pack::interaction_graph::SimpleNode::update_energies_after_passive_change().
|
private |
Definition at line 244 of file SimpleInteractionGraph.hh.
Referenced by bb_bbE(), set_bb_bbE(), and SimpleEdge().
|
private |
Definition at line 243 of file SimpleInteractionGraph.hh.
Referenced by bb_bbE_calced(), set_bb_bbE_calced(), and SimpleEdge().
|
private |
Definition at line 240 of file SimpleInteractionGraph.hh.
Referenced by commit_change(), compute_energy(), and get_current_energy().
|
private |
Definition at line 238 of file SimpleInteractionGraph.hh.
|
private |
Definition at line 241 of file SimpleInteractionGraph.hh.
Referenced by commit_change(), compute_energy(), and get_proposed_energy().
|
private |
Definition at line 237 of file SimpleInteractionGraph.hh.
1.8.4