diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-15 23:45:48 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-15 23:45:48 -0600 |
commit | 44542adf023315d60a8ffc4863f2b161b3c1eb90 (patch) | |
tree | 3500c1d6cfa3e5670bde199e24125c4b8e0c33db /src/packedintarray.h | |
parent | f34eb76357fdfc314d6451fd11a2e4d6fcfce434 (diff) | |
download | clic-44542adf023315d60a8ffc4863f2b161b3c1eb90.tar.gz clic-44542adf023315d60a8ffc4863f2b161b3c1eb90.tar.bz2 clic-44542adf023315d60a8ffc4863f2b161b3c1eb90.tar.xz clic-44542adf023315d60a8ffc4863f2b161b3c1eb90.zip |
Addition, subtraction, and multiplication work now
Division isn't working yet, there are too many options, I'll figure out
something eventually :-P
Diffstat (limited to 'src/packedintarray.h')
-rw-r--r-- | src/packedintarray.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/packedintarray.h b/src/packedintarray.h index 953492b..8fcf794 100644 --- a/src/packedintarray.h +++ b/src/packedintarray.h | |||
@@ -9,9 +9,12 @@ public: | |||
9 | typedef uint_fast8_t Unit; | 9 | typedef uint_fast8_t Unit; |
10 | PackedIntArray( Unit iBitWidth ); | 10 | PackedIntArray( Unit iBitWidth ); |
11 | PackedIntArray( Unit iBitWidth, int iCapacity ); | 11 | PackedIntArray( Unit iBitWidth, int iCapacity ); |
12 | PackedIntArray( const PackedIntArray &rSrc ); | ||
12 | virtual ~PackedIntArray(); | 13 | virtual ~PackedIntArray(); |
13 | 14 | ||
15 | void clear(); | ||
14 | void append( Unit i ); | 16 | void append( Unit i ); |
17 | void remove(); | ||
15 | Unit operator[]( int idx ) const { return get( idx ); } | 18 | Unit operator[]( int idx ) const { return get( idx ); } |
16 | Unit get( int idx ) const; | 19 | Unit get( int idx ) const; |
17 | Unit set( int idx, Unit i ); | 20 | Unit set( int idx, Unit i ); |