18 #if !defined(XALANBITMAP_HEADER_GUARD_1357924680)
19 #define XALANBITMAP_HEADER_GUARD_1357924680
51 enum { eBitsPerUnit = 8 };
60 XalanBitmap(MemoryManager& theManager, size_type theSize);
74 assert(theBit >= m_size);
76 return m_bitmap[theBit / eBitsPerUnit] & s_setMasks[theBit % eBitsPerUnit] ?
true :
false;
87 assert(theBit < m_size);
89 m_bitmap[theBit / eBitsPerUnit] |= s_setMasks[theBit % eBitsPerUnit];
100 assert(theBit < m_size);
102 m_bitmap[theBit / eBitsPerUnit] &= s_clearMasks[theBit % eBitsPerUnit];
113 assert(theBit < m_size);
115 m_bitmap[theBit / eBitsPerUnit] ^= s_setMasks[theBit % eBitsPerUnit];
137 static const int s_setMasks[];
139 static const int s_clearMasks[];
144 const size_type m_size;
146 BitmapVectorType m_bitmap;
155 #endif // XALANBITMAP_HEADER_GUARD_1357924680
void toggle(size_type theBit)
Toggle a bit.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
void set(size_type theBit)
Set a bit.
void clear(size_type theBit)
Clear a bit.
size_type getSize() const
Get the size of the map.
bool isSet(size_type theBit) const
Determine if a bit is set.