STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::detail::element_ref_cache< T, bool > Class Template Reference

Caches a pointer to the value referred to by a container_accessor when the value type is a nested container. Otherwise, it's an empty class. More...

Public Member Functions

template<typename Container , typename... Indices>
 element_ref_cache (Container *, Indices const &...)
 
bool element_pointer_valid (void) const
 
T & element (void) const
 

Detailed Description

template<typename T, bool = is_container<T>::value>
class stapl::detail::element_ref_cache< T, bool >

Caches a pointer to the value referred to by a container_accessor when the value type is a nested container. Otherwise, it's an empty class.

Primary template matches case when T is not a container. One specialization covers case when it is. The class is an optimization to avoid routing all requests to a nested container through the single location in the outer container which stores this element in its container manager. Requests are instead routed to the local representative of the nested p_object, if present, avoiding unnecessary communication.


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