Public Types | Static Public Member Functions

container_key_value_pair< KeyType, DataType, KeyDispatchTag > Struct Template Reference

Accesses the data based on the provided (KeyType, DataType) pair. More...

#include <data_container.hpp>

Public Types

typedef std::map< KeyType,
DataType > 
key_DataType

Static Public Member Functions

template<typename ContainerType , typename IdType >
static DataType & access (ContainerType &cont, IdType const &id, KeyType const &key)
 Accesses the container for the given object ID and the provided key.

Detailed Description

template<typename KeyType, typename DataType, typename KeyDispatchTag>
struct viennadata::traits::container_key_value_pair< KeyType, DataType, KeyDispatchTag >

Accesses the data based on the provided (KeyType, DataType) pair.

Template Parameters:
KeyType Type of the key
DataType Type of the data
KeyDispatchTag A tag indicating full or type based key dispatch

Member Typedef Documentation

typedef std::map< KeyType, DataType > key_DataType

Member Function Documentation

static DataType& access ( ContainerType &  cont,
IdType const &  id,
KeyType const &  key 
) [inline, static]

Accesses the container for the given object ID and the provided key.


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