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

#include <DoubleLazyInteractionGraph.hh>

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

Public Member Functions

 DoubleLazyNode (InteractionGraphBase *owner, int node_id, int num_states)
 main constructor, no default or copy constructors More...
 
 ~DoubleLazyNode () 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...
 
EdgeBasefind_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...
 
EdgeBaseget_incident_edge (int index)
 
int get_index_of_adjacent_node (int index) const
 
NodeBase const * get_adjacent_node (int index) const
 
NodeBaseget_adjacent_node (int index)
 

Protected Member Functions

core::PackerEnergy get_curr_pd_energy_total () const
 
core::PackerEnergy get_alt_pd_energy_total () const
 
void set_alternate_state (int alt)
 
int get_alternate_state () const
 
void calc_deltaEpd (int alternate_state)
 
bool considering_alternate_state () const
 
- Protected Member Functions inherited from core::pack::interaction_graph::OnTheFlyNode
OnTheFlyEdgeget_incident_otf_edge (int edge)
 
OnTheFlyEdge const * get_incident_otf_edge (int edge) const
 
OnTheFlyNodeget_adjacent_otf_node (int index)
 
OnTheFlyNode const * get_adjacent_otf_node (int index) const
 
OnTheFlyInteractionGraphget_on_the_fly_owner ()
 
OnTheFlyInteractionGraph const * get_on_the_fly_owner () const
 
conformation::Residue const & get_rotamer (int state) const
 
BoundingSphere const & sc_bounding_sphere (int state) const
 
BoundingSphere const & bb_bounding_sphere () const
 
- Protected Member Functions inherited from core::pack::interaction_graph::NodeBase
void update_edge_vector ()
 converts edge-list to edge-vector representation More...
 
bool get_edge_vector_up_to_date () const
 
InteractionGraphBase const * get_owner () const
 
InteractionGraphBaseget_owner ()
 

Private Member Functions

void update_internal_vectors ()
 
DoubleLazyEdge const * get_incident_dlazy_edge (int index) const
 Pointer Downcasts. More...
 
DoubleLazyEdgeget_incident_dlazy_edge (int index)
 
DoubleLazyNode const * get_adjacent_dlazy_node (int index) const
 
DoubleLazyNodeget_adjacent_dlazy_node (int index)
 
DoubleLazyInteractionGraph const * get_dlazy_ig_owner () const
 
DoubleLazyInteractionGraphget_dlazy_ig_owner ()
 
 DoubleLazyNode ()
 
 DoubleLazyNode (DoubleLazyNode const &)
 
DoubleLazyNodeoperator= (DoubleLazyNode const &)
 

Private Attributes

std::vector< int > neighbors_curr_state_
 
std::vector< SparseMatrixIndexneighbors_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::PackerEnergycurr_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::PackerEnergyalternate_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, RealBoundingSphere
 

Constructor & Destructor Documentation

core::pack::interaction_graph::DoubleLazyNode::DoubleLazyNode ( InteractionGraphBase owner,
int  node_id,
int  num_states 
)

main constructor, no default or copy constructors

Parameters
par Global Read:
Global Write:
Remarks
References:
Author
apl
core::pack::interaction_graph::DoubleLazyNode::~DoubleLazyNode ( )
overridedefault
core::pack::interaction_graph::DoubleLazyNode::DoubleLazyNode ( )
private

Referenced by count_static_memory().

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

Member Function Documentation

int core::pack::interaction_graph::DoubleLazyNode::aatype_for_state ( int  state) const
virtual
void core::pack::interaction_graph::DoubleLazyNode::acknowledge_neighbors_partial_state_substitution ( int  edge_to_altered_neighbor,
int  other_node_new_state,
SparseMatrixIndex const &  other_node_new_state_sparse_info 
)
void core::pack::interaction_graph::DoubleLazyNode::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 
)
inline
void core::pack::interaction_graph::DoubleLazyNode::assign_state ( int  new_state)
void core::pack::interaction_graph::DoubleLazyNode::assign_zero_state ( )
overridevirtual
void core::pack::interaction_graph::DoubleLazyNode::calc_deltaEpd ( int  alternate_state)
protected
void core::pack::interaction_graph::DoubleLazyNode::commit_considered_substitution ( )
void core::pack::interaction_graph::DoubleLazyNode::complete_state_assignment ( )
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::compute_pair_energy_for_current_state ( int  edge_making_energy_request)
Parameters
par Global Read:
Global Write:
Remarks
References:
Author
apl

References core::pack::interaction_graph::OnTheFlyNode::compute_rotamer_pair_energy(), current_state_, and neighbors_curr_state_.

bool core::pack::interaction_graph::DoubleLazyNode::considering_alternate_state ( ) const
inlineprotected
unsigned int core::pack::interaction_graph::DoubleLazyNode::count_dynamic_memory ( ) const
overridevirtual
unsigned int core::pack::interaction_graph::DoubleLazyNode::count_static_memory ( ) const
overridevirtual
Parameters
par Global Read:
Global Write:
Remarks
References:
Author
apl

Implements core::pack::interaction_graph::OnTheFlyNode.

References DoubleLazyNode().

DoubleLazyNode const * core::pack::interaction_graph::DoubleLazyNode::get_adjacent_dlazy_node ( int  index) const
inlineprivate
DoubleLazyNode * core::pack::interaction_graph::DoubleLazyNode::get_adjacent_dlazy_node ( int  index)
inlineprivate
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::get_alt_pd_energy_total ( ) const
inlineprotected
int core::pack::interaction_graph::DoubleLazyNode::get_alternate_state ( ) const
inlineprotected

References alternate_state_.

core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::get_curr_pd_energy_total ( ) const
inlineprotected
int core::pack::interaction_graph::DoubleLazyNode::get_current_state ( ) const
inline
DoubleLazyInteractionGraph const * core::pack::interaction_graph::DoubleLazyNode::get_dlazy_ig_owner ( ) const
inlineprivate
DoubleLazyInteractionGraph * core::pack::interaction_graph::DoubleLazyNode::get_dlazy_ig_owner ( )
inlineprivate
DoubleLazyEdge const * core::pack::interaction_graph::DoubleLazyNode::get_incident_dlazy_edge ( int  index) const
inlineprivate
DoubleLazyEdge * core::pack::interaction_graph::DoubleLazyNode::get_incident_dlazy_edge ( int  index)
inlineprivate
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::get_one_body_energy_current_state ( ) const
inline
SparseMatrixIndex const & core::pack::interaction_graph::DoubleLazyNode::get_sparse_mat_info_for_curr_state ( ) const
inline
virtual core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::get_totalE ( ) const
inlinevirtual
DoubleLazyNode& core::pack::interaction_graph::DoubleLazyNode::operator= ( DoubleLazyNode const &  )
private
void core::pack::interaction_graph::DoubleLazyNode::partial_assign_state ( int  new_state)
void core::pack::interaction_graph::DoubleLazyNode::prepare_for_simulated_annealing ( )
overridevirtual
void core::pack::interaction_graph::DoubleLazyNode::print ( ) const
overridevirtual
void core::pack::interaction_graph::DoubleLazyNode::print_internal_energies ( ) const
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::project_deltaE_for_substitution ( int  alternate_state,
core::PackerEnergy prev_node_energy 
)
inline
Parameters
par Global Read:
Global Write:
Remarks
References:
Author
apl

Referenced by calc_deltaEpd().

void core::pack::interaction_graph::DoubleLazyNode::set_alternate_state ( int  alt)
inlineprotected

References alternate_state_.

bool core::pack::interaction_graph::DoubleLazyNode::state_unassigned ( ) const
inlineoverridevirtual
void core::pack::interaction_graph::DoubleLazyNode::update_internal_energy_sums ( )
void core::pack::interaction_graph::DoubleLazyNode::update_internal_vectors ( )
private

Member Data Documentation

SparseMatrixIndex core::pack::interaction_graph::DoubleLazyNode::alt_state_sparse_mat_info_
private
int core::pack::interaction_graph::DoubleLazyNode::alternate_state_
private
bool core::pack::interaction_graph::DoubleLazyNode::alternate_state_is_being_considered_
private
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::alternate_state_one_body_energy_
private
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::alternate_state_total_energy_
private
std::vector< core::PackerEnergy > core::pack::interaction_graph::DoubleLazyNode::alternate_state_two_body_energies_
private
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::curr_state_one_body_energy_
private
SparseMatrixIndex core::pack::interaction_graph::DoubleLazyNode::curr_state_sparse_mat_info_
private
core::PackerEnergy core::pack::interaction_graph::DoubleLazyNode::curr_state_total_energy_
private
std::vector< core::PackerEnergy > core::pack::interaction_graph::DoubleLazyNode::curr_state_two_body_energies_
private
int core::pack::interaction_graph::DoubleLazyNode::current_state_
private
std::vector< int > core::pack::interaction_graph::DoubleLazyNode::neighbors_curr_state_
private
std::vector< SparseMatrixIndex > core::pack::interaction_graph::DoubleLazyNode::neighbors_curr_state_sparse_info_
private
bool core::pack::interaction_graph::DoubleLazyNode::procrastinated_
private

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