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

Wraps a view object with a interface that makes it behave as a pointer to a view of the same type would.This is used for PARAGRAPH edge views passed to add_task calls via consume calls, where there is not a view copy held/owned by the PARAGRAPH (i.e., those passed by user at PARAGRAPH creation). More...

Public Member Functions

 ptr_wrapper (View vw)
 
View & operator* ()
 Mimics the application operator* on a pointer / iterator.
 
View const & operator* () const
 
View const * operator-> () const
 Mimics the application operator-> on a pointer / iterator.
 

Public Attributes

View m_vw
 

Detailed Description

template<typename View>
struct stapl::ptr_wrapper< View >

Wraps a view object with a interface that makes it behave as a pointer to a view of the same type would.

This is used for PARAGRAPH edge views passed to add_task calls via consume calls, where there is not a view copy held/owned by the PARAGRAPH (i.e., those passed by user at PARAGRAPH creation).

When paragraph_view::add_task pair usage is finally retired, there will be no more need for this wrapper class.


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