summaryrefslogtreecommitdiff
path: root/src/packedintarray.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-19 15:36:29 -0600
committerMike Buland <mike@xagasoft.com>2013-04-19 15:36:29 -0600
commit7260c36973fc0ad7ff24294ff5540d64bf32c334 (patch)
tree72e74744a789d4c1acedfa1afd1a07219cce9931 /src/packedintarray.h
parent9ad1a65f4dcbc31b031556803d27dc688a16ff4a (diff)
downloadclic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.gz
clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.bz2
clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.xz
clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.zip
Fractional divisoin works.
It doesn't round yet, and there's a chance I should be increasing the precision, right now it keeps the precision of the left hand side number.
Diffstat (limited to '')
-rw-r--r--src/packedintarray.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/packedintarray.h b/src/packedintarray.h
index 457acf5..4ac0bc7 100644
--- a/src/packedintarray.h
+++ b/src/packedintarray.h
@@ -13,11 +13,13 @@ public:
13 virtual ~PackedIntArray(); 13 virtual ~PackedIntArray();
14 14
15 void clear(); 15 void clear();
16 void zero();
16 void append( Unit i ); 17 void append( Unit i );
17 void remove(); 18 void remove();
18 Unit operator[]( int idx ) const { return get( idx ); } 19 Unit operator[]( int idx ) const { return get( idx ); }
19 Unit get( int idx ) const; 20 Unit get( int idx ) const;
20 void set( int idx, Unit i ); 21 void set( int idx, Unit i );
22 void insert( int idx, Unit i );
21 int getSize() const { return iCount; } 23 int getSize() const { return iCount; }
22 void set( const PackedIntArray &rSrc, int iStart, int iSize ); 24 void set( const PackedIntArray &rSrc, int iStart, int iSize );
23 void set( const PackedIntArray &rSrc ); 25 void set( const PackedIntArray &rSrc );