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

#include <tpl_net.H>

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

Public Types

using Base = Net_Arc< Empty_Class, typename Net::Flow_Type >
 
- Public Types inherited from Aleph::Net_Arc< Empty_Class, Net::Flow_Type >
using Base = Graph_Aarc< Empty_Class >
 
using Flow_Type = Net::Flow_Type
 
- Public Types inherited from GTArcCommon< ArcInfo >
using Item_Type = ArcInfo
 
using Arc_Type = ArcInfo
 

Public Member Functions

 __Res_Arc ()
 Default constructor.
 
 __Res_Arc (const Empty_Class &info)
 Constructor from arc info.
 
 __Res_Arc (Empty_Class &&info)
 Move constructor from arc info

 
bool is_residual () const
 Return true if this is a residual arc.
 
- Public Member Functions inherited from Aleph::Net_Arc< Empty_Class, Net::Flow_Type >
bool check_arc () const noexcept
 Return true if flow satisfies 0 <= flow <= cap.
 
 Net_Arc (const Empty_Class &info)
 Construct from arc info.
 
 Net_Arc (const Net_Arc &arc)
 Copy constructor.
 
 Net_Arc ()
 Default constructor.
 
Net_Arcoperator= (const Net_Arc &arc)
 Copy assignment.
 
- Public Member Functions inherited from Aleph::Graph_Aarc< Arc_Info >
 Graph_Aarc (const Arc_Info &info)
 
 Graph_Aarc (Arc_Info &&info=Arc_Info())
 
 Graph_Aarc (const Graph_Aarc &arc)
 
Graph_Aarcoperator= (const Graph_Aarc &arc)
 
 Graph_Aarc (void *src, void *tgt, const Arc_Info &data)
 
 Graph_Aarc (void *src, void *tgt, Arc_Info &&data=Arc_Info())
 
- Public Member Functions inherited from GTArcCommon< ArcInfo >
 GTArcCommon () noexcept=default
 data contained in arc
 
 GTArcCommon (const ArcInfo &info)
 Construct from info value (copy)
 
 GTArcCommon (ArcInfo &&info)
 Construct from info value (move)
 
 GTArcCommon (void *src, void *tgt, const ArcInfo &data)
 Construct with endpoints and info (copy)
 
 GTArcCommon (void *src, void *tgt, ArcInfo &&data=ArcInfo())
 Construct with endpoints and info (move)
 
 GTArcCommon (const GTArcCommon &other)
 Copy constructor.
 
 GTArcCommon (GTArcCommon &&other) noexcept
 Move constructor.
 
GTArcCommonoperator= (const GTArcCommon &other)
 Copy assignment operator.
 
GTArcCommonoperator= (GTArcCommon &&other) noexcept
 Move assignment operator.
 
unsigned int state () const noexcept
 Return the state of arc.
 
void set_state (unsigned int s) noexcept
 Set the state of arc to value s
 
ArcInfoget_info () noexcept
 Return a modifiable reference to the arc data.
 
const ArcInfoget_info () const noexcept
 Return a constant reference to the arc data.
 
void * get_connected_node (void *node) noexcept
 
void * get_img_node (void *node) noexcept
 

Public Attributes

Net::Arcimg = nullptr
 
__Res_Arcdup = nullptr
 
- Public Attributes inherited from Aleph::Net_Arc< Empty_Class, Net::Flow_Type >
Flow_Type cap
 Capacity value.
 
Flow_Type flow
 Flow value.
 
- Public Attributes inherited from GTArcCommon< ArcInfo >
void * src_node = nullptr
 
void * tgt_node = nullptr
 Please don't use.
 
Graph_Attr attrs
 Please don't use.
 
ArcInfo arc_info
 

Additional Inherited Members

Detailed Description

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

Definition at line 1362 of file tpl_net.H.

Member Typedef Documentation

◆ Base

Definition at line 1364 of file tpl_net.H.

Constructor & Destructor Documentation

◆ __Res_Arc() [1/3]

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

Default constructor.

Definition at line 1370 of file tpl_net.H.

◆ __Res_Arc() [2/3]

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

Constructor from arc info.

Definition at line 1373 of file tpl_net.H.

◆ __Res_Arc() [3/3]

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

Move constructor from arc info

Definition at line 1376 of file tpl_net.H.

Member Function Documentation

◆ is_residual()

template<class Net >
bool Aleph::__Res_Arc< Net >::is_residual ( ) const
inline

Return true if this is a residual arc.

Definition at line 1379 of file tpl_net.H.

References Aleph::__Res_Arc< Net >::img.

Member Data Documentation

◆ dup

template<class Net >
__Res_Arc* Aleph::__Res_Arc< Net >::dup = nullptr

Definition at line 1367 of file tpl_net.H.

◆ img

template<class Net >
Net::Arc* Aleph::__Res_Arc< Net >::img = nullptr

Definition at line 1366 of file tpl_net.H.

Referenced by Aleph::__Res_Arc< Net >::is_residual().


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