summaryrefslogtreecommitdiff
path: root/src/packedintarray.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-15 23:45:48 -0600
committerMike Buland <mike@xagasoft.com>2013-04-15 23:45:48 -0600
commit44542adf023315d60a8ffc4863f2b161b3c1eb90 (patch)
tree3500c1d6cfa3e5670bde199e24125c4b8e0c33db /src/packedintarray.h
parentf34eb76357fdfc314d6451fd11a2e4d6fcfce434 (diff)
downloadclic-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.h3
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 );