# PairList.hpp

This File On Github
Ask A Question

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

# AbstractPairList

Abstract PairList class.

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

# Fields

Type Name Summary
const ClassId CLASS_ID Class id.

# AbstractPairList::CLASS_ID

Class id.

static const ClassId CLASS_ID

# AbstractPairList::PolymorphicDispatcher

Polymorphic Dispatcher.

namespace oatpp { namespace data { namespace mapping { namespace type { namespace __class { 
  class AbstractPairList {
    class PolymorphicDispatcher {}
  };
}}}}}

# Methods

Return Type Name Summary
void addPolymorphicItem Add key-value pair to pair-list.

# AbstractPairList::PolymorphicDispatcher::addPolymorphicItem

Add key-value pair to pair-list.

  • @param object - pair list.
  • @param key - key.
  • @param value - value.

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

# PairListObjectWrapper

ObjectWrapper over std::list<std::pair<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 PairListObjectWrapper : public type::ObjectWrapper<std::list<std::pair<Key, Value>>, C> {}
}}}}

# PairList

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

Mapping-Enables PairList<Key, Value>. See PairListObjectWrapper.

template<class Key, class Value>
using PairList = PairListObjectWrapper<Key, Value, __class::PairList<Key, Value>>