ViennaGrid - The Vienna Grid Library  2.1.0
Public Types | Public Member Functions
dynamic_accessor_wrapper< AccessorType > Class Template Reference

A dynamic accessor class which wraps any user accessor type fulfilling the accessor concept. More...

#include <accessor.hpp>

Inheritance diagram for dynamic_accessor_wrapper< AccessorType >:
base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >

Public Types

typedef
BaseAccessorType::access_type 
access_type
typedef base_dynamic_accessor
< typename
AccessorType::value_type,
typename
AccessorType::access_type > 
BaseAccessorType
typedef
BaseAccessorType::const_pointer 
const_pointer
typedef
BaseAccessorType::const_reference 
const_reference
typedef BaseAccessorType::pointer pointer
typedef BaseAccessorType::reference reference
typedef
BaseAccessorType::value_type 
value_type

Public Member Functions

virtual reference at (access_type const &element)
virtual const_reference at (access_type const &element) const
 dynamic_accessor_wrapper (AccessorType accessor_)
virtual pointer find (access_type const &element)
virtual const_pointer find (access_type const &element) const
virtual reference operator() (access_type const &element)
virtual const_reference operator() (access_type const &element) const

Detailed Description

template<typename AccessorType>
class viennagrid::dynamic_accessor_wrapper< AccessorType >

A dynamic accessor class which wraps any user accessor type fulfilling the accessor concept.

This can be used for storing different accessors to the same element type for data with the same value type in a common container.


Member Typedef Documentation

typedef base_dynamic_accessor< typename AccessorType::value_type, typename AccessorType::access_type > BaseAccessorType

Constructor & Destructor Documentation

dynamic_accessor_wrapper ( AccessorType  accessor_) [inline]

Member Function Documentation

virtual reference at ( access_type const &  element) [inline, virtual]
virtual const_reference at ( access_type const &  element) const [inline, virtual]
virtual pointer find ( access_type const &  element) [inline, virtual]
virtual const_pointer find ( access_type const &  element) const [inline, virtual]
virtual reference operator() ( access_type const &  element) [inline, virtual]
virtual const_reference operator() ( access_type const &  element) const [inline, virtual]

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