# UnorderedMap.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/data/mapping/type/UnorderedMap.hpp"

# AbstractUnorderedMap

Abstract Unordered Map class.

namespace oatpp { namespace data { namespace mapping { namespace type { namespace __class { 
  class AbstractUnorderedMap {}
}}}}}

# Fields

Type Name Summary
const ClassId CLASS_ID Class Id.

# AbstractUnorderedMap::CLASS_ID

Class Id.

static const ClassId CLASS_ID

# AbstractUnorderedMap::AbstractPolymorphicDispatcher

Polymorphic Dispatcher.

namespace oatpp { namespace data { namespace mapping { namespace type { namespace __class { 
  class AbstractUnorderedMap {
    class AbstractPolymorphicDispatcher {}
  };
}}}}}

# Methods

Return Type Name Summary
void addPolymorphicItem Add item.

# AbstractUnorderedMap::AbstractPolymorphicDispatcher::addPolymorphicItem

Add item.

  • @param object - Unordered Map.
  • @param key - Key.
  • @param value - Value.

virtual void addPolymorphicItem(const type::Void& object, const type::Void& key, const type::Void& value) const = 0

# UnorderedMapObjectWrapper

ObjectWrapper for std::unordered_map<Key, Value>

  • @tparam Key - Key ObjectWrapper type.
  • @tparam Value - Value ObjectWrapper type.
  • @tparam C - Class.

namespace oatpp { namespace data { namespace mapping { namespace type { 
  template<class Key, class Value, class C>
  class UnorderedMapObjectWrapper : public type::ObjectWrapper<std::unordered_map<Key, Value>, C> {}
}}}}

# UnorderedMap

Namespace: oatpp::data::mapping::type

Mapping-Enables UnorderedMap<Key, Value>. See UnorderedMapObjectWrapper.

template<class Key, class Value>
using UnorderedMap = UnorderedMapObjectWrapper<Key, Value, __class::UnorderedMap<Key, Value>>