momo  3.9
momo::internal::MapReference< TSetReference, tIsConst > Class Template Reference

#include <MapUtility.h>

Public Types

typedef KeyValuePair::Key Key
 
typedef std::conditional< isConst, const typename KeyValuePair::Value, typename KeyValuePair::Value >::type Value
 
typedef MapReference< SetReference, true > ConstReference
 

Public Member Functions

 MapReference (const Key &key, Value &value) noexcept
 
 operator ConstReference () const noexcept
 

Public Attributes

const Keykey
 
Valuevalue
 

Protected Types

typedef TSetReference SetReference
 
typedef std::decay< SetReference >::type KeyValuePair
 

Protected Member Functions

 MapReference (SetReference setRef) noexcept
 

Static Protected Attributes

static const bool isConst = tIsConst
 

Member Typedef Documentation

◆ ConstReference

template<typename TSetReference , bool tIsConst = false>
typedef MapReference<SetReference, true> momo::internal::MapReference< TSetReference, tIsConst >::ConstReference

◆ Key

template<typename TSetReference , bool tIsConst = false>
typedef KeyValuePair::Key momo::internal::MapReference< TSetReference, tIsConst >::Key

◆ KeyValuePair

template<typename TSetReference , bool tIsConst = false>
typedef std::decay<SetReference>::type momo::internal::MapReference< TSetReference, tIsConst >::KeyValuePair
protected

◆ SetReference

template<typename TSetReference , bool tIsConst = false>
typedef TSetReference momo::internal::MapReference< TSetReference, tIsConst >::SetReference
protected

◆ Value

template<typename TSetReference , bool tIsConst = false>
typedef std::conditional<isConst, const typename KeyValuePair::Value, typename KeyValuePair::Value>::type momo::internal::MapReference< TSetReference, tIsConst >::Value

Constructor & Destructor Documentation

◆ MapReference() [1/2]

template<typename TSetReference , bool tIsConst = false>
momo::internal::MapReference< TSetReference, tIsConst >::MapReference ( const Key key,
Value value 
)
inlineexplicitnoexcept

◆ MapReference() [2/2]

template<typename TSetReference , bool tIsConst = false>
momo::internal::MapReference< TSetReference, tIsConst >::MapReference ( SetReference  setRef)
inlineexplicitprotectednoexcept

Member Function Documentation

◆ operator ConstReference()

template<typename TSetReference , bool tIsConst = false>
momo::internal::MapReference< TSetReference, tIsConst >::operator ConstReference ( ) const
inlinenoexcept

Member Data Documentation

◆ isConst

template<typename TSetReference , bool tIsConst = false>
const bool momo::internal::MapReference< TSetReference, tIsConst >::isConst = tIsConst
staticprotected

◆ key

template<typename TSetReference , bool tIsConst = false>
const Key& momo::internal::MapReference< TSetReference, tIsConst >::key

◆ value

template<typename TSetReference , bool tIsConst = false>
Value& momo::internal::MapReference< TSetReference, tIsConst >::value

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