Data Structures | Namespaces | Defines

/export/development/ViennaData/release/ViennaData-1.0.1/viennadata/config/default_data_for_key.hpp File Reference

This file provides the prototype for setting default data types. More...

#include "viennadata/forwards.h"

Go to the source code of this file.

Data Structures

struct  default_data_for_key< KeyType >
 A traits class that specifies the default data type for a key. By default, no key type has a default data type. More...

Namespaces

namespace  viennadata
namespace  viennadata::config

Defines

#define VIENNADATA_ENABLE_DEFAULT_DATA_TYPE_FOR_KEY(arg_KEYCLASS, arg_DATACLASS)
 A convenience macro for default data types: arg_KEYCLASS denotes the key type, arg_DATACLASS denotes the data type.

Detailed Description

This file provides the prototype for setting default data types.


Define Documentation

#define VIENNADATA_ENABLE_DEFAULT_DATA_TYPE_FOR_KEY (   arg_KEYCLASS,
  arg_DATACLASS 
)
Value:
namespace viennadata { namespace config { \
  template <> struct default_data_for_key<arg_KEYCLASS> {  typedef arg_DATACLASS  type; }; \
} }

A convenience macro for default data types: arg_KEYCLASS denotes the key type, arg_DATACLASS denotes the data type.