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_storage< Traits > Struct Template Reference

Graph's base-container. Inherits all functionality from either graph_base_container_storage_base or graph_base_container_storage_NME class. More...

Public Member Functions

template<typename Domain >
 graph_base_container_storage (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_storage (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_storage (graph_base_container_storage const &other)
 

Public Types

typedef graph_base_container_storage< Traits > this_type
 
typedef Traits::domain_type domain_type
 
typedef size_t cid_type
 
typedef graph_storage_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_storage< Traits >

Graph's base-container. Inherits all functionality from either graph_base_container_storage_base or graph_base_container_storage_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_storage() [1/2]

template<typename Traits >
template<typename Domain >
stapl::graph_base_container_storage< Traits >::graph_base_container_storage ( 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_storage() [2/2]

template<typename Traits >
template<typename Domain >
stapl::graph_base_container_storage< Traits >::graph_base_container_storage ( 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: