Overview

This class is a POD class. It stores description information and data elements in a continuous memory space. (The element type is specified by the template parameter T.) Dynamic capacity expansion is not supported.

The description information of this class includes the maximum number of elements that can be stored and the number of elements that are actually stored.

Header Files to Be Included

1
#include <continuous_vector.h>

Public Member Functions

template<typename T>
static std::unique_ptr<uint8_t[]> Create(size_t capacity, size_t &total_size)
template<typename T>
static std::unique_ptr<uint8_t[]> Create(const size_t capacity)
void Init(const size_t capacity)
size_t GetSize() const
ge::graphStatus SetSize(const size_t size)
size_t GetCapacity() const
const void *GetData() const
void *MutableData()