ViennaGrid - The Vienna Grid Library
2.1.0
|
A dynamic accessor class which wraps any user accessor type fulfilling the accessor concept. More...
#include <accessor.hpp>
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 |
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.
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
typedef base_dynamic_accessor< typename AccessorType::value_type, typename AccessorType::access_type > BaseAccessorType |
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
typedef BaseAccessorType::pointer pointer |
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
typedef BaseAccessorType::reference reference |
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
Reimplemented from base_dynamic_accessor< AccessorType::value_type, AccessorType::access_type >.
dynamic_accessor_wrapper | ( | AccessorType | accessor_ | ) | [inline] |
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] |