Rudiments

staticarray.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_STATICARRAY_H
5 #define RUDIMENTS_STATICARRAY_H
6
7 #include <rudiments/private/inttypes.h>
8
36 template < class valuetype, uint64_t length >
37 class staticarray {
38 public:
42 staticarray();
43
46 staticarray(const staticarray<valuetype,length> &v);
47
50 staticarray<valuetype,length> &operator=(
51 const staticarray<valuetype,length> &v);
52
55 ~staticarray();
56
59 valuetype &operator[](uint64_t index);
60
62 uint64_t getLength() const;
63
65 void clear();
66
67 #include <rudiments/private/staticarray.h>
68 };
69
70 #include <rudiments/private/staticarrayinlines.h>
71
72 #endif
staticarray
Definition: staticarray.h:37
staticarray::clear
void clear()
Definition: staticarrayinlines.h:84
staticarray::operator=
staticarray< valuetype, length > & operator=(const staticarray< valuetype, length > &v)
Definition: staticarrayinlines.h:39
staticarray::staticarray
staticarray()
Definition: staticarrayinlines.h:8
staticarray::getLength
uint64_t getLength() const
Definition: staticarrayinlines.h:78
staticarray::operator[]
valuetype & operator[](uint64_t index)
Definition: staticarrayinlines.h:72
staticarray::~staticarray
~staticarray()
Definition: staticarrayinlines.h:66