|
ViennaGrid - The Vienna Grid Library
2.1.0
|
Accessor class implementing the field concept for dense containers (most importantly std::vector<> and std::deque<>). More...
#include <accessor.hpp>
Public Types | |
| typedef AccessType | access_type |
| typedef ContainerType::const_pointer | const_pointer |
| typedef ContainerType::const_reference | const_reference |
| typedef ContainerType | container_type |
| typedef access_type::id_type::base_id_type | offset_type |
| typedef ContainerType::pointer | pointer |
| typedef ContainerType::reference | reference |
| typedef ContainerType::value_type | value_type |
Public Member Functions | |
| reference | at (AccessType const &element) |
| const_reference | at (AccessType const &element) const |
| dense_container_field () | |
| dense_container_field (ContainerType &container_) | |
| dense_container_field (ContainerType &container_, value_type const &value_type_) | |
| pointer | find (AccessType const &element) |
| const_pointer | find (AccessType const &element) const |
| bool | is_valid () const |
| reference | operator() (AccessType const &element) |
| const_reference | operator() (AccessType const &element) const |
Protected Attributes | |
| ContainerType * | container |
| value_type | default_value |
| UnpackT | unpack |
Accessor class implementing the field concept for dense containers (most importantly std::vector<> and std::deque<>).
| ContainerType | Type of the dense container, e.g. std::vector<double> |
| AccessType | The element type from which data is queried, e.g. a vertex |
| typedef AccessType access_type |
| typedef ContainerType::const_pointer const_pointer |
| typedef ContainerType::const_reference const_reference |
| typedef ContainerType container_type |
| typedef access_type::id_type::base_id_type offset_type |
| typedef ContainerType::pointer pointer |
| typedef ContainerType::reference reference |
| typedef ContainerType::value_type value_type |
| dense_container_field | ( | ) | [inline] |
| dense_container_field | ( | ContainerType & | container_ | ) | [inline] |
| dense_container_field | ( | ContainerType & | container_, |
| value_type const & | value_type_ | ||
| ) | [inline] |
| const_reference at | ( | AccessType const & | element | ) | const [inline] |
| const_pointer find | ( | AccessType const & | element | ) | const [inline] |
| bool is_valid | ( | ) | const [inline] |
| reference operator() | ( | AccessType const & | element | ) | [inline] |
| const_reference operator() | ( | AccessType const & | element | ) | const [inline] |
ContainerType* container [protected] |
value_type default_value [protected] |
UnpackT unpack [protected] |
1.7.6.1