14 #ifndef INCLUDED_core_pack_interaction_graph_LinearMemoryInteractionGraph_hh
15 #define INCLUDED_core_pack_interaction_graph_LinearMemoryInteractionGraph_hh
23 #include <ObjexxFCL/FArray3D.hh>
25 #include <utility/vector1.hh>
26 #include <utility/recent_history_queue.hh>
31 namespace interaction_graph {
59 virtual void print()
const;
84 {
return rhq_.head_of_queue(); }
118 int edge_to_altered_neighbor,
120 int other_node_new_state,
122 int other_node_recent_history_index
127 int edge_to_altered_neighbor,
128 int other_node_new_state,
130 int other_state_recent_history_index
197 utility::recent_history_queue
rhq_;
245 ObjexxFCL::FArray2_bool
const &
273 int bumped_recent_history_index,
274 int new_state_recent_history_index,
283 int bumped_recent_history_index,
284 int new_state_recent_history_index
292 int recent_history_id
299 int changing_node_index,
301 int alternate_state_recent_history_index,
302 int other_node_curr_state,
303 int other_node_state_recent_history_index
308 int substituted_node_index,
312 int bumped_recent_history_index,
313 int new_state_recent_history_index,
314 int neighbors_curr_state
350 int node_substituted,
351 int node_not_substituted,
352 int bumped_recent_history_index
357 void wipe(
int node );
527 int substituted_node_index,
531 int bumped_recent_history_index,
532 int new_state_recent_history_index,
533 int neighbors_curr_state
536 int node_substituted = substituted_node_index ==
get_node_index(0) ? 0 : 1;
537 int node_not_substituted = ! node_substituted;
541 node_not_substituted,
542 bumped_recent_history_index );
545 if ( neighbors_curr_state != 0 ) {
547 ( neighbors_curr_state, new_state_recent_history_index ) =
552 acknowledge_neighbors_state_substitution
557 nodes_new_state_sparse_info,
558 new_state_recent_history_index
567 int edge_to_altered_neighbor,
569 int other_node_new_state,
571 int other_node_recent_history_index
576 curr_state_two_body_energies_[ edge_to_altered_neighbor ] = new_edge_energy;
579 other_node_new_state_sparse_info;
581 other_node_recent_history_index;