STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::upto_k, VertexOp, NeighborOp > Struct Template Reference

Functor to visit the target vertex with the user provided neighbor-operator. More...

Public Member Functions

template<typename... Args>
 neighbor_operator_apply (Args &&... args)
 
template<typename Vertex >
bool propagation_condition (Vertex &&) const
 Condition to determine if a vertex operator should be invoked on the same vertex after the neighbor operator. In this case, we only consider the KLA superstep condition. More...
 
void operator() (Graph *graph, Vertex &&target) const
 
NeighborOp const & neighbor_op () const
 
VertexOp const & vertex_op () const
 

Public Types

typedef neighbor_operator_apply_base< VertexOp, NeighborOp, neighbor_operator_apply< reinvoke_behavior::upto_k, VertexOp, NeighborOp > > base_type
 
using result_type = void
 

Detailed Description

template<typename VertexOp, typename NeighborOp>
struct stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::upto_k, VertexOp, NeighborOp >

Functor to visit the target vertex with the user provided neighbor-operator.

This is a facade for

See also
neighbor_operator_apply_base where the trigger for propagation is only if the level criterion is met (i.e., revisitation will be in the same KLA superstep).
Template Parameters
VertexOpType of the user provided vertex-operator.
NeighborOpType of the user provided neighbor-operator.

Member Function Documentation

◆ propagation_condition()

template<typename VertexOp , typename NeighborOp >
template<typename Vertex >
bool stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::upto_k, VertexOp, NeighborOp >::propagation_condition ( Vertex &&  ) const

Condition to determine if a vertex operator should be invoked on the same vertex after the neighbor operator. In this case, we only consider the KLA superstep condition.

Parameters
targetThe vertex that was sucessfully visited

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