aboutsummaryrefslogtreecommitdiffstats
path: root/Hilbert/FixBitVec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Hilbert/FixBitVec.hpp')
-rw-r--r--Hilbert/FixBitVec.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Hilbert/FixBitVec.hpp b/Hilbert/FixBitVec.hpp
index 84015cf..0efd889 100644
--- a/Hilbert/FixBitVec.hpp
+++ b/Hilbert/FixBitVec.hpp
@@ -77,7 +77,7 @@ public:
// Returns the current size in bits.
int
- getSize()
+ size()
{
return FBV_BITS;
}
@@ -94,7 +94,7 @@ public:
// Zeros the bit-vector.
CFixBitVec &
- zero()
+ reset()
{
m_uiRack = 0;
return (*this);
@@ -134,7 +134,7 @@ public:
// Returns the value of the nth bit.
bool
- getBit(
+ test(
int iIndex
) const
{
@@ -144,9 +144,9 @@ public:
// Sets the value of the nth bit.
CFixBitVec &
- setBit(
+ set(
int iIndex,
- bool bBit
+ bool bBit = true
)
{
assert( 0 <= iIndex && iIndex < FBV_BITS );
@@ -158,7 +158,7 @@ public:
// Toggles the value of the nth bit.
CFixBitVec &
- toggleBit(
+ toggle(
int iIndex
)
{
@@ -382,7 +382,7 @@ public:
// Is the bit rack zero valued?
bool
- isZero() const
+ none() const
{
return m_uiRack == 0;
}
@@ -485,7 +485,7 @@ public:
// Ones-complements the rack
CFixBitVec &
- complement()
+ flip()
{
m_uiRack = ~m_uiRack;
return (*this);