dynamicarray.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_DYNAMICARRAY_H
#define RUDIMENTS_DYNAMICARRAY_H
#include <rudiments/private/dynamicarrayincludes.h>
template < class valuetype >
class dynamicarray {
public:
dynamicarray();
dynamicarray(uint64_t initiallength, uint64_t incrementlength);
dynamicarray(const dynamicarray<valuetype> &v);
dynamicarray<valuetype> &operator=(
const dynamicarray<valuetype> &v);
~dynamicarray();
valuetype &operator[](uint64_t index);
/* Returns the length of the initial extent. */
uint64_t getInitialLength() const;
/* Returns the length of each incremental extent. */
uint64_t getIncrementLength() const;
uint64_t getLength() const;
void clear();
void clear(uint64_t initiallength, uint64_t incrementlength);
#include <rudiments/private/dynamicarray.h>
};
#include <rudiments/private/dynamicarrayinlines.h>
#endif
dynamicarray
Definition: dynamicarray.h:40
dynamicarray::dynamicarray
dynamicarray()
Definition: dynamicarrayinlines.h:8
dynamicarray::getLength
uint64_t getLength() const
Definition: dynamicarrayinlines.h:123
dynamicarray::clear
void clear()
Definition: dynamicarrayinlines.h:182
dynamicarray::~dynamicarray
~dynamicarray()
Definition: dynamicarrayinlines.h:95
dynamicarray::operator=
dynamicarray< valuetype > & operator=(const dynamicarray< valuetype > &v)
Definition: dynamicarrayinlines.h:29
dynamicarray::operator[]
valuetype & operator[](uint64_t index)
Definition: dynamicarrayinlines.h:101