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::vertex_impl< VD, AdjList > Class Template Reference

Vertex for adjacency list for the graph. More...

Public Member Functions

 vertex_impl (vertex_descriptor const &vd, property_type const &)
 Creates a vertex for the graph with the given descriptor and property. More...
 
 vertex_impl (vertex_descriptor const &vd)
 
property_type & property (void) noexcept
 
property_type const & property (void) const noexcept
 
vertex_descriptor const & descriptor (void) const noexcept
 Returns the descriptor of this vertex. More...
 
edgelist_type & edgelist (void) noexcept
 Returns the edge-list of this vertex.
 
void edgelist (edgelist_type const *const edgelist)
 Sets the edge-list of this vertex.
 
edgelist_type const & edgelist (void) const noexcept
 Returns the edge-list of this vertex.
 
edgelist_type & edges (void) noexcept
 Returns the edge-list of this vertex.
 
void clear (void)
 Clears the edge-list of this vertex.
 

Public Types

typedef VD vertex_descriptor
 
typedef AdjList edgelist_type
 

Protected Attributes

VD m_vd
 The descriptor of this vertex.
 
edgelist_type m_edgelist
 The edge-list of this vertex.
 

Properties

 __pad0__:no_property property_type
 

Friends

template<typename Traits >
class adjacency_list_graph
 

Detailed Description

template<typename VD, typename AdjList>
class stapl::sequential::vertex_impl< VD, AdjList >

Vertex for adjacency list for the graph.

It contains a descriptor and an adjacency list of edges.

Template Parameters
VDVertex descriptor type for the graph.
AdjListType of the edgelist for storing edges.

Constructor & Destructor Documentation

◆ vertex_impl()

template<typename VD , typename AdjList >
stapl::sequential::vertex_impl< VD, AdjList >::vertex_impl ( vertex_descriptor const &  vd,
property_type const &   
)

Creates a vertex for the graph with the given descriptor and property.

Parameters
vdThe descriptor of this vertex.
pThe property of this vertex (no_property).

Member Function Documentation

◆ descriptor()

template<typename VD , typename AdjList >
vertex_descriptor const& stapl::sequential::vertex_impl< VD, AdjList >::descriptor ( void  ) const
noexcept

Returns the descriptor of this vertex.

The vertex descriptor can't be changed after the vertex is created.


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