18 #if !defined(XALANBITMAP_HEADER_GUARD_1357924680) 19 #define XALANBITMAP_HEADER_GUARD_1357924680 32 XALAN_CPP_NAMESPACE_BEGIN
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;
151 XALAN_CPP_NAMESPACE_END
155 #endif // XALANBITMAP_HEADER_GUARD_1357924680 size_type getSize() const
Get the size of the map.
void clear(size_type theBit)
Clear a bit.
void toggle(size_type theBit)
Toggle a bit.
bool isSet(size_type theBit) const
Determine if a bit is set.