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::torus_neighbors Struct Reference

Functor which connects vertices to form a torus of the given dimensions. More...

Public Member Functions

 torus_neighbors (size_t x, size_t y, bool bidirectional)
 
template<typename Vertex , typename Graph >
void operator() (Vertex v, Graph &view)
 

Public Types

typedef void result_type
 

Public Attributes

size_t m_x
 
size_t m_y
 
bool m_bidirectional
 

Detailed Description

Functor which connects vertices to form a torus of the given dimensions.

See also
make_torus

Constructor & Destructor Documentation

◆ torus_neighbors()

stapl::generators::detail::torus_neighbors::torus_neighbors ( size_t  x,
size_t  y,
bool  bidirectional 
)
Parameters
x,yDimensions of the mesh.
bidirectionalTrue to add back-edges in a directed graph.

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