STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::graph_base_container< Traits > Struct Template Reference

Graph's base-container. Inherits all functionality from either graph_base_container_base or graph_base_container_NME class. More...

Public Member Functions

template<typename Domain >
 graph_base_container (Domain const &domain, cid_type const &cid)
 Creates a graph base container with a given size and domain. More...
 
template<typename Domain >
 graph_base_container (Domain const &domain, cid_type const &cid, value_type const &default_value)
 Creates a graph base container with a given size and domain and constructs all elements with a default value for vertex. More...
 
 graph_base_container (graph_base_container const &other)
 

Public Types

typedef graph_base_container< Traits > this_type
 
typedef Traits::domain_type domain_type
 
typedef size_t cid_type
 
typedef graph_multiplicity_base_container_selector< Traits, Traits::m_type >::type base_type
 
typedef base_type::value_type value_type
 

Detailed Description

template<typename Traits>
struct stapl::graph_base_container< Traits >

Graph's base-container. Inherits all functionality from either graph_base_container_base or graph_base_container_NME class.

Template Parameters
Dgraph-attribute specifying Directedness (DIRECTED/UNDIRECTED).
Mgraph-attribute specifying Multiedgedness (MULTIEDGES/NONMULTIEDGES).
VertexPtype of property for the vertex. Must be default assignable, copyable and assignable.
EdgePtype of property for the edge. Must be default assignable, copyable and assignable.
TraitsA traits class that defines customizable components of graph, such as the domain type, vertex type, edge type, edgelist type, storage, etc. E.g. graph_base_container_traits.

Constructor & Destructor Documentation

◆ graph_base_container() [1/2]

template<typename Traits >
template<typename Domain >
stapl::graph_base_container< Traits >::graph_base_container ( Domain const &  domain,
cid_type const &  cid 
)

Creates a graph base container with a given size and domain.

This constructor is used during redistribution, where a default value for the vertex property isn't available.

Parameters
domainProvides the domain of vertex-descriptors stored in this base container.
cidProvides the id of this base-container.

◆ graph_base_container() [2/2]

template<typename Traits >
template<typename Domain >
stapl::graph_base_container< Traits >::graph_base_container ( Domain const &  domain,
cid_type const &  cid,
value_type const &  default_value 
)

Creates a graph base container with a given size and domain and constructs all elements with a default value for vertex.

Parameters
domainProvides the domain of vertex-descriptors stored in this base container.
cidProvides the id of this base-container.
default_valueprovides the default value for the vertices stored in this base-container.

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