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

There are three elements pushed on the top of the memento when this method is invoked. Two of them stand for the current iteration and one is for the one that comes after this iteration. More...

Public Member Functions

 do_while_stubs (ContCond const &guard_cond)
 
template<typename Element >
void operator() (Element element, memento memento_stack) const
 Given the value that it can pass to the condition functor, it restores the state using the skeleton manager. More...
 

Public Types

using result_type = void
 

Detailed Description

template<typename ContCond>
struct stapl::skeletons::skeletons_impl::do_while_stubs< ContCond >

There are three elements pushed on the top of the memento when this method is invoked. Two of them stand for the current iteration and one is for the one that comes after this iteration.

dot_inline_dotgraph_14.png

As you can see the top element is the one which is used to set the num of successors of the elements spawned in the current iteration, as if the current iteration was one of the intermediate iterations. The second from the top is for the same iteration as well but as if the current iteration was the last iteration.

Template Parameters
ContConda continuation functor used in the do-while

Member Function Documentation

◆ operator()()

template<typename ContCond >
template<typename Element >
void stapl::skeletons::skeletons_impl::do_while_stubs< ContCond >::operator() ( Element  element,
memento  memento_stack 
) const

Given the value that it can pass to the condition functor, it restores the state using the skeleton manager.

Parameters
elementthe element that is sent to the continuation condition in order to find out if do-while should continue or finish
memento_stackthe current skeleton manager which is responsible for continuation of the spawning process
See also
skeletons_impl::do_while_pd

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