# List.hpp

This File On Github
Ask A Question

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

# AbstractList

Abstract list class.

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

# Fields

Type Name Summary
const ClassId CLASS_ID Class Id.

# AbstractList::CLASS_ID

Class Id.

static const ClassId CLASS_ID

# AbstractList::AbstractPolymorphicDispatcher

Polymorphic Dispatcher

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

# Methods

Return Type Name Summary
void addPolymorphicItem Add item.

# AbstractList::AbstractPolymorphicDispatcher::addPolymorphicItem

Add item.

  • @param object - List to add item to.
  • @param item - Item to add.

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

# ListObjectWrapper

ObjectWrapper over std::list<T>

  • @tparam T - Item ObjectWrapper type.
  • @tparam C - Class.

namespace oatpp { namespace data { namespace mapping { namespace type { 
  template<class T, class C>
  class ListObjectWrapper : public type::ObjectWrapper<std::list<T>, C> {}
}}}}

# List

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

Mapping-Enabled List. See - ListObjectWrapper.

template<class T>
using List = ListObjectWrapper<T, __class::List<T>>