# Vector.hpp

This File On Github
Ask A Question

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

# AbstractVector

Abstract Vector Class.

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

# Fields

Type Name Summary
const ClassId CLASS_ID Class Id.

# AbstractVector::CLASS_ID

Class Id.

static const ClassId CLASS_ID

# AbstractVector::AbstractPolymorphicDispatcher

Polymorphic Dispatcher.

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

# Methods

Return Type Name Summary
void addPolymorphicItem Add Item.

# AbstractVector::AbstractPolymorphicDispatcher::addPolymorphicItem

Add Item.

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

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

# VectorObjectWrapper

ObjectWrapper over std::vector<T>.

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

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

# Vector

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

Mapping-enabled Vector. See VectorObjectWrapper.

template<class T>
using Vector = VectorObjectWrapper<T, __class::Vector<T>>