18#if !defined(XALANBITMAP_HEADER_GUARD_1357924680)
19#define XALANBITMAP_HEADER_GUARD_1357924680
51 enum { eBitsPerUnit = 8 };
76 return m_bitmap[
theBit / eBitsPerUnit] & s_setMasks[
theBit % eBitsPerUnit] ?
true :
false;
89 m_bitmap[
theBit / eBitsPerUnit] |= s_setMasks[
theBit % eBitsPerUnit];
102 m_bitmap[
theBit / eBitsPerUnit] &= s_clearMasks[
theBit % eBitsPerUnit];
115 m_bitmap[
theBit / eBitsPerUnit] ^= s_setMasks[
theBit % eBitsPerUnit];
137 static const int s_setMasks[];
139 static const int s_clearMasks[];
146 BitmapVectorType m_bitmap;
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
size_type getSize() const
Get the size of the map.
XalanBitmap(MemoryManager &theManager, size_type theSize)
Construct an instance with room for the specified number of bits.
void set(size_type theBit)
Set a bit.
bool isSet(size_type theBit) const
Determine if a bit is set.
void clear(size_type theBit)
Clear a bit.
void clearAll()
Clear all of the bits.
void toggle(size_type theBit)
Toggle a bit.