Rudiments: /home/dmuse/src/rudiments/include/rudiments/staticarray.h Source File

Rudiments

- Main Page
- Classes

staticarray.h
1 // Copyright (c) 2015 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::clear
void clear()
Definition: staticarrayinlines.h:85
staticarray::operator[]
valuetype & operator[](uint64_t index)
Definition: staticarrayinlines.h:73
staticarray::getLength
uint64_t getLength() const
Definition: staticarrayinlines.h:79
staticarray::staticarray
staticarray()
Definition: staticarrayinlines.h:9
staticarray::~staticarray
~staticarray()
Definition: staticarrayinlines.h:67
staticarray
Definition: staticarray.h:37
staticarray::operator=
staticarray< valuetype, length > & operator=(const staticarray< valuetype, length > &v)
Definition: staticarrayinlines.h:40