ViennaGrid - The Vienna Grid Library  2.1.0
Public Types | Public Member Functions | Protected Attributes
std_map_field< ContainerType, AccessType, UnpackT > Class Template Reference

An accessor (fulfilling the field concept) for a container of interface similar to std::map<> More...

#include <accessor.hpp>

Public Types

typedef AccessType access_type
typedef value_type const * const_pointer
typedef value_type const & const_reference
typedef ContainerType container_type
typedef
ContainerType::value_type::first_type 
key_type
typedef value_typepointer
typedef value_typereference
typedef
ContainerType::value_type::second_type 
value_type

Public Member Functions

reference at (AccessType const &element)
const_reference at (AccessType const &element) const
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
 std_map_field ()
 std_map_field (ContainerType &container_)
 std_map_field (ContainerType &container_, value_type const &value_type_)

Protected Attributes

ContainerType * container
value_type default_value
UnpackT unpack

Detailed Description

template<typename ContainerType, typename AccessType, typename UnpackT = id_unpack>
class viennagrid::std_map_field< ContainerType, AccessType, UnpackT >

An accessor (fulfilling the field concept) for a container of interface similar to std::map<>


Member Typedef Documentation

typedef AccessType access_type
typedef value_type const* const_pointer
typedef value_type const& const_reference
typedef ContainerType container_type
typedef ContainerType::value_type::first_type key_type
typedef value_type* pointer
typedef ContainerType::value_type::second_type value_type

Constructor & Destructor Documentation

std_map_field ( ) [inline]
std_map_field ( ContainerType &  container_) [inline]
std_map_field ( ContainerType &  container_,
value_type const &  value_type_ 
) [inline]

Member Function Documentation

reference at ( AccessType const &  element) [inline]
const_reference at ( AccessType const &  element) const [inline]
pointer find ( AccessType const &  element) [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]

Field Documentation

ContainerType* container [protected]
UnpackT unpack [protected]

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