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/arraycollection.h>
8
47template <class valuetype, uint64_t count>
48class staticarray : public arraycollection<valuetype> {
49 public:
54
58
62
67
72
75
77 void zero();
78
81 void zero(uint64_t zerocount);
82
85 void zero(uint64_t start, uint64_t zerocount);
86
89 void set(byte_t value);
90
93 void set(byte_t value, uint64_t setcount);
94
97 void set(byte_t value, uint64_t start, uint64_t setcount);
98
101 valuetype &operator[](uint64_t index);
102
104 uint64_t getCount();
105
107 bool clear();
108
109 #include <rudiments/private/staticarray.h>
110};
111
112#include <rudiments/private/staticarrayinlines.h>
113
114#endif
Definition arraycollection.h:13
Definition avltree.h:11
Definition staticarray.h:48
uint64_t getCount()
Definition staticarrayinlines.h:138
~staticarray()
Definition staticarrayinlines.h:69
staticarray()
Definition staticarrayinlines.h:10
bool clear()
Definition staticarrayinlines.h:144
void set(byte_t value)
Definition staticarrayinlines.h:94
staticarray< valuetype, count > & operator=(staticarray< valuetype, count > &v)
Definition staticarrayinlines.h:34
void zero()
Definition staticarrayinlines.h:76
valuetype & operator[](uint64_t index)
Definition staticarrayinlines.h:113