|
Rosetta
|
A run-of-the-mill directed edge to use in JobDigraphs. More...
#include <JobDigraph.hh>

Public Types | |
| typedef utility::graph::DirectedEdge | parent |
Public Member Functions | |
| ~JobDirectedEdge () override | |
| destructor More... | |
| JobDirectedEdge (utility::graph::Digraph *owner, platform::Size tail_node_ind, platform::Size head_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 Digraph's delete_edge method, and this method absolutely must be implemented by derived Digraph classes. More... | |
| void | copy_from (utility::graph::DirectedEdge const *source) override |
| copy-from for use in Digraph::operator= and copy ctors. The source node must be a JobDirectedEdge More... | |
| platform::Size | count_static_memory () const override |
| how much memory is statically allocated by this edge More... | |
| platform::Size | count_dynamic_memory () const override |
| how much memory is dynamically allocated by this edge – must be recursively invoked by a derived class. More... | |
Protected Member Functions | |
| JobDirectedNode const * | get_job_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. 0 is the index of the tail node, 1 is the index of the head node. More... | |
| JobDirectedNode * | get_job_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... | |
| JobDigraph const * | get_job_owner () const |
| get a const * to the owning graph More... | |
| JobDigraph * | get_job_owner () |
| get a non-const * to the owning graph More... | |
Private Member Functions | |
| JobDirectedEdge () | |
| JobDirectedEdge (JobDirectedEdge const &) | |
| JobDirectedEdge & | operator= (JobDirectedEdge &) |
A run-of-the-mill directed edge to use in JobDigraphs.
|
overridedefault |
destructor
| protocols::jd3::JobDirectedEdge::JobDirectedEdge | ( | utility::graph::Digraph * | owner, |
| platform::Size | tail_node_ind, | ||
| platform::Size | head_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 Digraph's delete_edge method, and this method absolutely must be implemented by derived Digraph classes.
main constructor for edge, no default nor copy constructors
| owner | - [in] - owning InteractionDigraph |
| tail_node_ind | - [in] - the index of the tail node |
| head_node_ind | - [in] - the index of the head node |
|
private |
Referenced by count_static_memory().
|
private |
|
override |
copy-from for use in Digraph::operator= and copy ctors. The source node must be a JobDirectedEdge
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.
|
override |
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.
|
override |
how much memory is statically allocated by this edge
memory accouting scheme
This is called non-recursively on the most-derived class
References JobDirectedEdge().
|
inlineprotected |
get a non-const * to one node that this edge is incident upon uses c-style index-from-0 for these two nodes
|
inlineprotected |
get a const * to one node that this edge is incident upon uses c-style index-from-0 for these two nodes. 0 is the index of the tail node, 1 is the index of the head node.
|
inlineprotected |
get a non-const * to the owning graph
|
inlineprotected |
get a const * to the owning graph
|
private |