aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/bitstring.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2024-09-30 11:50:17 -0700
committerMike Buland <mike@xagasoft.com>2024-09-30 11:50:17 -0700
commit0befcc026be9e4f6c40f8771c7f26f767ebddbf7 (patch)
treee549bee70f50def02d24ef386b490e017bc6043b /src/unstable/bitstring.h
parent84c93fbf0f371bcd26893d1c33e3a5bf1a61223e (diff)
downloadlibbu++-0befcc026be9e4f6c40f8771c7f26f767ebddbf7.tar.gz
libbu++-0befcc026be9e4f6c40f8771c7f26f767ebddbf7.tar.bz2
libbu++-0befcc026be9e4f6c40f8771c7f26f767ebddbf7.tar.xz
libbu++-0befcc026be9e4f6c40f8771c7f26f767ebddbf7.zip
Erasing streams works, stream map building works.
Diffstat (limited to 'src/unstable/bitstring.h')
-rw-r--r--src/unstable/bitstring.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/unstable/bitstring.h b/src/unstable/bitstring.h
index afc22fb..70ba822 100644
--- a/src/unstable/bitstring.h
+++ b/src/unstable/bitstring.h
@@ -88,7 +88,7 @@ namespace Bu
88 *@param iBit The index of the bit to test. 88 *@param iBit The index of the bit to test.
89 *@returns True for a 1, false for a 0. 89 *@returns True for a 1, false for a 0.
90 */ 90 */
91 bool getBit( long iBit ); 91 bool getBit( long iBit ) const;
92 92
93 /** 93 /**
94 * Inverts the entire BitString, in effect this calls flipBit on every 94 * Inverts the entire BitString, in effect this calls flipBit on every
@@ -106,7 +106,7 @@ namespace Bu
106 DEPRECATED 106 DEPRECATED
107 long getBitLength(); 107 long getBitLength();
108 108
109 long getSize(); 109 long getSize() const;
110 110
111 /** 111 /**
112 * Sets the entire BitString to zeros, but it does it very quickly. 112 * Sets the entire BitString to zeros, but it does it very quickly.
@@ -115,6 +115,12 @@ namespace Bu
115 void clear(); 115 void clear();
116 116
117 /** 117 /**
118 * Sets the entire BitString to ones, but it does it very quickly.
119 * This operation runs in O(N).
120 */
121 void fill();
122
123 /**
118 * Gets another BitString that is autonomous of the current one 124 * Gets another BitString that is autonomous of the current one
119 * (contains a copy of the memory, not a pointer) and contains a subset 125 * (contains a copy of the memory, not a pointer) and contains a subset
120 * of the data in the current BitString. This is an inclusive 126 * of the data in the current BitString. This is an inclusive