Aleph-w  1.9
General library for algorithms and data structures
GTArcCommon< ArcInfo > Class Template Reference

#include <graph-dry.H>

Public Types

using Item_Type = ArcInfo
 
using Arc_Type = ArcInfo
 

Public Member Functions

 GTArcCommon (const ArcInfo &info)
 data contained in arc
 
 GTArcCommon (ArcInfo &&info)
 
 GTArcCommon (void *src, void *tgt, const ArcInfo &data)
 
 GTArcCommon (void *src, void *tgt, ArcInfo &&data=ArcInfo())
 
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
 
ArcInfo & get_info () noexcept
 Return a modifiable reference to the arc data.
 
const ArcInfo & get_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

void * src_node = nullptr
 
void * tgt_node = nullptr
 Please don't use.
 
Graph_Attr attrs
 Please don't use. More...
 
ArcInfo arc_info
 

Detailed Description

template<typename ArcInfo>
class GTArcCommon< ArcInfo >

Common methods for the arc of a graph.

This class defines common attributes and methods for arcs graphs. All graph arcs inherit the data and function members of this class. Although this class exports data members, it is not recommended to directly access them. Instead use the macros ARC_BITS, ARC_COUNTER and ARC_COOKIE, which define access to the three attributes.

See also
ARC_BITS ARC_COUNTER ARC_COOKIE IS_ARC_VISITED ARC_COLOR
Warning
This class is not intended to be used explicitly by the user. Its use is internal to the graphs implementations.

Member Data Documentation

◆ attrs

template<typename ArcInfo>
Graph_Attr GTArcCommon< ArcInfo >::attrs

Please don't use.

Arc control attributes.

See also
Graph_Attr

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

Leandro Rabindranath León