Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::PP_Res_Node< Net > Struct Template Reference

Residual node used by preflow-push algorithms. More...

#include <tpl_net.H>

Inheritance diagram for Aleph::PP_Res_Node< Net >:
[legend]
Collaboration diagram for Aleph::PP_Res_Node< Net >:
[legend]

Public Types

using Base = Net_Node< Empty_Class >
 
- Public Types inherited from GTNodeCommon< Node_Info >
using Item_Type = Node_Info
 
using Node = GTNodeCommon
 Common alias for set types.
 
using Node_Type = Node_Info
 The node.
 

Public Member Functions

 PP_Res_Node ()
 Default constructor.
 
 PP_Res_Node (const Empty_Class &info)
 Constructor from node info.
 
 PP_Res_Node (Empty_Class &&info)
 Move constructor from node info.
 
- Public Member Functions inherited from Aleph::Graph_Anode< Node_Info >
 Graph_Anode ()
 
 Graph_Anode (const Node_Info &info)
 
 Graph_Anode (Node_Info &&info)
 
 Graph_Anode (const Graph_Anode &node)
 
 Graph_Anode (Graph_Anode *p)
 
Graph_Anodeoperator= (const Graph_Anode &node)
 
virtual ~Graph_Anode ()
 
void allocate_more (size_t new_size)
 
void * insert_arc (void *arc)
 
void remove_arc_ne (const void *arc) noexcept
 
void remove_arc (const void *arc)
 
bool compress () noexcept
 
- Public Member Functions inherited from GTNodeCommon< Node_Info >
 GTNodeCommon () noexcept=default
 another alias for set type
 
 GTNodeCommon (const Node_Info &info)
 Copy constructor from info value.
 
 GTNodeCommon (Node_Info &&info)
 Move constructor from info value.
 
 GTNodeCommon (const GTNodeCommon &other)
 Copy constructor.
 
 GTNodeCommon (GTNodeCommon &&other) noexcept
 Move constructor.
 
GTNodeCommonoperator= (const GTNodeCommon &other)
 Copy assignment operator.
 
GTNodeCommonoperator= (GTNodeCommon &&other) noexcept
 Move assignment operator.
 
Node_Info & get_info () noexcept
 Return a modifiable reference to the data contained in the node.
 
const Node_Info & get_info () const noexcept
 Return a constant reference to the data contained in the node.
 
unsigned int state () const noexcept
 Return the state's value.
 
void set_state (unsigned int s) noexcept
 Set the state to value s
 

Public Attributes

Net::Flow_Type in_flow = 0
 
Net::Flow_Type out_flow = 0
 
- Public Attributes inherited from Aleph::Graph_Anode< Node_Info >
void ** arc_array
 
size_t arcs_dim
 
size_t contract_threshold
 
- Public Attributes inherited from GTNodeCommon< Node_Info >
Graph_Attr attrs
 Attributes of node.
 
Node_Info node_info
 
size_t num_arcs
 data associated to the node. Access it with get_info()
 

Additional Inherited Members

Detailed Description

template<class Net>
struct Aleph::PP_Res_Node< Net >

Residual node used by preflow-push algorithms.

Definition at line 1344 of file tpl_net.H.

Member Typedef Documentation

◆ Base

Definition at line 1346 of file tpl_net.H.

Constructor & Destructor Documentation

◆ PP_Res_Node() [1/3]

template<class Net >
Aleph::PP_Res_Node< Net >::PP_Res_Node ( )
inline

Default constructor.

Definition at line 1352 of file tpl_net.H.

◆ PP_Res_Node() [2/3]

template<class Net >
Aleph::PP_Res_Node< Net >::PP_Res_Node ( const Empty_Class info)
inline

Constructor from node info.

Definition at line 1355 of file tpl_net.H.

◆ PP_Res_Node() [3/3]

template<class Net >
Aleph::PP_Res_Node< Net >::PP_Res_Node ( Empty_Class &&  info)
inline

Move constructor from node info.

Definition at line 1358 of file tpl_net.H.

Member Data Documentation

◆ in_flow

template<class Net >
Net::Flow_Type Aleph::PP_Res_Node< Net >::in_flow = 0

Definition at line 1348 of file tpl_net.H.

◆ out_flow

template<class Net >
Net::Flow_Type Aleph::PP_Res_Node< Net >::out_flow = 0

Definition at line 1349 of file tpl_net.H.


The documentation for this struct was generated from the following file: