constant_mapping.h File Reference
#include <vector>
#include <functional>
#include "interop/util/map.h"
#include "interop/util/length_of.h"

Go to the source code of this file.

Classes

struct  enum_hash
 
class  constant_mapping< Key, Value >
 

Namespaces

 illumina
 
 illumina::interop
 
 illumina::interop::util
 
 illumina::interop::util::detail
 

Functions

template<class Key , class Value , size_t N>
const Value & constant_mapping_get (const std::pair< Key, Value >(&pairs)[N], const Key &key, const Value &default_value)
 

Detailed Description

Map a constant of one type to another type

This is designed to simplify mapping between enums, enums to strings or strings built using define statements.

Date
8/9/15
Version
1.0