STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Attributes | Properties | Friends
stapl::sequential::graph_edge< VertexDescriptor > Class Template Reference

The Graph Edge without edge property storage. More...

Public Member Functions

 graph_edge (edge_descriptor_type const &ed)
 
 graph_edge (edge_descriptor_type const &ed, property_type const &)
 Creates an edge for the graph with the given descriptor and property. More...
 
edge_descriptor_type descriptor (void) const noexcept
 
edge_id_type id (void) const noexcept
 
vertex_descriptor source (void) const noexcept
 
vertex_descriptor target (void) const noexcept
 
property_type property (void) const noexcept
 

Public Types

typedef VertexDescriptor vertex_descriptor
 
typedef edge_descriptor_impl< vertex_descriptor > edge_descriptor_type
 
typedef edge_descriptor_type::edge_id_type edge_id_type
 

Protected Attributes

edge_descriptor_type m_ed
 The edge descriptor for this edge.
 

Properties

 __pad0__:no_property property_type
 

Friends

graph_edge reverse (graph_edge const &other)
 Reverses the edge descriptor of an edge. More...
 

Detailed Description

template<typename VertexDescriptor>
class stapl::sequential::graph_edge< VertexDescriptor >

The Graph Edge without edge property storage.

If the graph uses no_property for the edge property type, then the graph edge contains just the edge_descriptor_impl. If the graph is with properties then the edge contains an edge_descriptor and the property.

Constructor & Destructor Documentation

◆ graph_edge()

template<typename VertexDescriptor >
stapl::sequential::graph_edge< VertexDescriptor >::graph_edge ( edge_descriptor_type const &  ed,
property_type const &   
)

Creates an edge for the graph with the given descriptor and property.

Parameters
edThe descriptor of this edge.
pThe property of this edge (no_property).

Friends And Related Function Documentation

◆ reverse

template<typename VertexDescriptor >
graph_edge reverse ( graph_edge< VertexDescriptor > const &  other)
friend

Reverses the edge descriptor of an edge.

Parameters
edThe edge.
Returns
An edge with the same id as the input edge, but with source and target descriptors switched.

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