File vector_dense.hpp

Typedefs

template<typename Vector>
using DenseVectorDecorator = IterableVectorDecorator<VectorDecorator<Vector>>

Provides random read and write access, as well as read and write access via iterators, to the values stored in vector.

Template Parameters:

Vector – The type of the vector

template<typename T>
class DenseVector : public IterableVectorDecorator<AllocatedVector<T>>
#include <vector_dense.hpp>

A vector that provides random read and write access, as well as read and write access via iterators, to the values stored in a newly allocated array.

Template Parameters:

T – The type of the values stored in the vector

Public Functions

inline DenseVector(uint32 numElements, bool init = false)
Parameters:
  • numElements – The number of elements in the vector

  • init – True, if all elements in the vector should be value-initialized, false otherwise

inline DenseVector(AllocatedVector<T> &&other)
Parameters:

other – A reference to an object of type AllocatedVector that should be moved

template<typename T>
class ResizableDenseVector : public ResizableVectorDecorator<DenseVectorDecorator<ResizableVector<T>>>
#include <vector_dense.hpp>

A vector that provides random read and write access, as well as read and write access via iterators, to the values stored in a newly allocated array, which can be resized.

Template Parameters:

T – The type of the values stored in the vector

Public Functions

inline ResizableDenseVector(uint32 numElements, bool init = false)
Parameters:
  • numElements – The number of elements in the vector

  • init – True, if all elements in the vector should be value-initialized, false otherwise