aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/BigBitVec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/BigBitVec.hpp')
-rw-r--r--chilbert/BigBitVec.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/chilbert/BigBitVec.hpp b/chilbert/BigBitVec.hpp
index 1f97039..7a1b49a 100644
--- a/chilbert/BigBitVec.hpp
+++ b/chilbert/BigBitVec.hpp
@@ -75,6 +75,13 @@ public:
return *this;
}
+ /// Set all bits to one
+ CBigBitVec& set()
+ {
+ memset(m_pcRacks.get(), 0xFF, sizeof(CFixBitVec) * m_iRacks);
+ return *this;
+ }
+
/// Truncate to a given precision in bits (zero MSBs)
CBigBitVec& truncate(const int bits)
{