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

Functor which adds edges to form a grid of the given dimensions. More...

Public Member Functions

 grid_neighbors (std::array< std::size_t, D > dims, bool bidirectional)
 
template<typename Vertex , typename Graph >
void operator() (Vertex v, Graph &view)
 

Public Types

typedef void result_type
 

Public Attributes

geometry_impl::grid_generator< D > m_generator
 
bool m_bidirectional
 

Detailed Description

template<int D>
struct stapl::generators::detail::grid_neighbors< D >

Functor which adds edges to form a grid of the given dimensions.

See also
make_grid

Constructor & Destructor Documentation

◆ grid_neighbors()

template<int D>
stapl::generators::detail::grid_neighbors< D >::grid_neighbors ( std::array< std::size_t, D >  dims,
bool  bidirectional 
)
Parameters
x,yDimensions of the grid.
bidirectionalTrue to add back-edges in a directed graph.

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