added BitSet::size()

This commit is contained in:
Matej Sekoranja
2012-07-31 11:47:42 +02:00
parent ac10b73e69
commit 6a86496385
2 changed files with 13 additions and 0 deletions

View File

@@ -191,6 +191,10 @@ namespace epics { namespace pvData {
return sum;
}
uint32 BitSet::size() const {
return wordsLength * BITS_PER_WORD;
}
BitSet& BitSet::operator&=(const BitSet& set) {
while (wordsInUse > set.wordsInUse)

View File

@@ -151,6 +151,15 @@ namespace epics { namespace pvData {
*/
uint32 cardinality() const;
/**
* Returns the number of bits of space actually in use by this
* {@code BitSet} to represent bit values.
* The maximum element in the set is the size - 1st element.
*
* @return the number of bits currently in this bit set
*/
uint32 size() const;
/**
* Performs a logical <b>AND</b> of this target bit set with the
* argument bit set. This bit set is modified so that each bit in it