From 8e838b6d5919a3049abdfd99c9ef06fb53546952 Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Sun, 18 Jan 2015 20:06:55 +0000 Subject: [PATCH] Added size & reset virtuals --- ibitset.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ibitset.h b/ibitset.h index 18975dc2..23ca4bc9 100644 --- a/ibitset.h +++ b/ibitset.h @@ -53,6 +53,11 @@ namespace etl { } + //************************************************************************* + /// The size of the bitset. + //************************************************************************* + virtual size_t size() const = 0; + //************************************************************************* /// Check the bit at the position. //************************************************************************* @@ -68,6 +73,11 @@ namespace etl //************************************************************************* virtual ibitset& reset(size_t position) = 0; + //************************************************************************* + /// Reset all the bits. + //************************************************************************* + virtual ibitset& reset() = 0; + //************************************************************************* /// Finds the first bit in the specified state. ///\param state The state to search for.