Const_accessor for global proxies over pContainers.
More...
|
bool | is_null (void) const |
| Returns whether or not this is a null accessor.
|
|
| const_container_accessor (void) |
| Construct a const_accessor for a null reference.
|
|
| const_container_accessor (null_reference const &) |
| Construct a const_accessor for a null reference.
|
|
| const_container_accessor (const_container_accessor const &other) |
|
| const_container_accessor (container_type const *container, index_type const &index) |
| Construct a global const_accessor with the container and index. More...
|
|
index_type | index (void) const |
| Return the index of the reference.
|
|
bool | is_local (void) const |
| Return whether or not this is a local or remote reference.
|
|
value_type | read (void) const |
| Read the reference by returning a copy of the value in the container at the index.
|
|
value_type | ref (void) const |
| Return a reference by returning a copy of the value in the container at the index.
|
|
template<typename F > |
boost::result_of< F(value_type)>::type | apply_get (F const &f) const |
| Applies an arbitrary functor to the reference element and returns the result. More...
|
|
void | write (U const &value) const |
|
void | invoke (void(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const |
|
Rtn | invoke (Rtn(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const |
|
Rtn | const_invoke (Rtn(Class::*const memberFuncPtr)(Args...) const, typename std::decay< Args >::type const &... args) const |
|
|
container_type const * | m_container |
|
index_type | m_index |
|
|
template<typename Derived , typename A , typename C , typename D > |
class | iterator_facade |
|
class | accessor_core_access |
|
template<typename Container>
class stapl::const_container_accessor< Container >
Const_accessor for global proxies over pContainers.
- Template Parameters
-
Container | Type of the container |
- See also
- proxy
◆ const_container_accessor()
template<typename Container >
Construct a global const_accessor with the container and index.
- Parameters
-
container | Pointer to the container |
index | Index of the reference |
◆ apply_get()
template<typename Container >
template<typename F >
Applies an arbitrary functor to the reference element and returns the result.
- Parameters
-
f | Functor to apply. The function object must export a nested trait for result_type and its function operator must be declared const. |
- Returns
- Result of applying the functor to the element
The documentation for this class was generated from the following file:
- const_container_accessor.hpp