Rudiments

- Main Page
- Classes

dynamicarray.h
1 // Copyright (c) 2015 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_DYNAMICARRAY_H
5 #define RUDIMENTS_DYNAMICARRAY_H
6
7 #include <rudiments/private/dynamicarrayincludes.h>
8
39 template < class valuetype >
40 class dynamicarray {
41 public:
43 dynamicarray();
44
49 dynamicarray(uint64_t initialsize, uint64_t increment);
50
53 dynamicarray(const dynamicarray<valuetype> &v);
54
57 dynamicarray<valuetype> &operator=(
58 const dynamicarray<valuetype> &v);
59
62 ~dynamicarray();
63
66 valuetype &operator[](uint64_t index);
67
69 uint64_t getLength() const;
70
72 void clear();
73
74 #include <rudiments/private/dynamicarray.h>
75 };
76
77 #include <rudiments/private/dynamicarrayinlines.h>
78
79 #endif
dynamicarray::~dynamicarray
~dynamicarray()
Definition: dynamicarrayinlines.h:95
dynamicarray::getLength
uint64_t getLength() const
Definition: dynamicarrayinlines.h:111
dynamicarray::operator=
dynamicarray< valuetype > & operator=(const dynamicarray< valuetype > &v)
Definition: dynamicarrayinlines.h:29
dynamicarray::operator[]
valuetype & operator[](uint64_t index)
Definition: dynamicarrayinlines.h:101
dynamicarray
Definition: dynamicarray.h:40
dynamicarray::clear
void clear()
Definition: dynamicarrayinlines.h:171
dynamicarray::dynamicarray
dynamicarray()
Definition: dynamicarrayinlines.h:9