Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
core::scoring::TenANeighborNode Class Reference

#include <TenANeighborGraph.hh>

Inheritance diagram for core::scoring::TenANeighborNode:
Inheritance graph
[legend]

Public Types

typedef utility::graph::Node parent
 

Public Member Functions

 ~TenANeighborNode () override
 
 TenANeighborNode (utility::graph::Graph *, Size node_id)
 
void copy_from (Node const *source) override
 
Size count_static_memory () const override
 
Size count_dynamic_memory () const override
 
void neighbor_mass (Real mass)
 set the neighbor mass for a vertex More...
 
Real neighbor_mass () const
 return the neighbor mass for a vertex More...
 
Real sum_of_neighbors_masses () const
 
void add_neighbors_mass (Real neighbors_mass)
 To be called by TenANeighborEdge only called at the time of edge addition. More...
 
void subtract_neighbors_mass (Real neighbors_mass)
 To be called by TenANeighborEdge only called at the time of edge deletion. More...
 

Private Member Functions

void update_neighbor_mass_sum () const
 

Private Attributes

Real neighbor_mass_
 
Real sum_of_neighbors_masses_
 
Size since_last_sonm_update_
 

Static Private Attributes

static Size const TIME_TO_UPDATE = 1024
 

Member Typedef Documentation

typedef utility::graph::Node core::scoring::TenANeighborNode::parent

Constructor & Destructor Documentation

core::scoring::TenANeighborNode::~TenANeighborNode ( )
overridedefault
core::scoring::TenANeighborNode::TenANeighborNode ( utility::graph::Graph *  owner,
Size  node_id 
)

Referenced by count_static_memory().

Member Function Documentation

void core::scoring::TenANeighborNode::add_neighbors_mass ( Real  neighbors_mass)
inline

To be called by TenANeighborEdge only called at the time of edge addition.

References since_last_sonm_update_, and sum_of_neighbors_masses_.

Referenced by core::scoring::TenANeighborEdge::TenANeighborEdge().

void core::scoring::TenANeighborNode::copy_from ( Node const *  source)
override
Size core::scoring::TenANeighborNode::count_dynamic_memory ( ) const
override
Size core::scoring::TenANeighborNode::count_static_memory ( ) const
override

References TenANeighborNode().

void core::scoring::TenANeighborNode::neighbor_mass ( Real  mass)

set the neighbor mass for a vertex

triggers update of the neighbor mass sums for this nodes' neighbors

References core::pose::mass(), neighbor_mass_, and update_neighbor_mass_sum().

Real core::scoring::TenANeighborNode::neighbor_mass ( ) const
inline

return the neighbor mass for a vertex

References neighbor_mass_.

Referenced by core::scoring::TenANeighborEdge::~TenANeighborEdge().

void core::scoring::TenANeighborNode::subtract_neighbors_mass ( Real  neighbors_mass)
inline

To be called by TenANeighborEdge only called at the time of edge deletion.

References since_last_sonm_update_, and sum_of_neighbors_masses_.

Real core::scoring::TenANeighborNode::sum_of_neighbors_masses ( ) const
inline
void core::scoring::TenANeighborNode::update_neighbor_mass_sum ( ) const
private

Member Data Documentation

Real core::scoring::TenANeighborNode::neighbor_mass_
private

Referenced by copy_from(), and neighbor_mass().

Size core::scoring::TenANeighborNode::since_last_sonm_update_
mutableprivate
Real core::scoring::TenANeighborNode::sum_of_neighbors_masses_
mutableprivate
Size const core::scoring::TenANeighborNode::TIME_TO_UPDATE = 1024
staticprivate

Referenced by sum_of_neighbors_masses().


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