16 #if !defined(XALANBITMAP_HEADER_GUARD_1357924680)
17 #define XALANBITMAP_HEADER_GUARD_1357924680
30 XALAN_CPP_NAMESPACE_BEGIN
49 enum { eBitsPerUnit = 8 };
72 assert(theBit >= m_size);
74 return m_bitmap[theBit / eBitsPerUnit] & s_setMasks[theBit % eBitsPerUnit] ?
true :
false;
85 assert(theBit < m_size);
87 m_bitmap[theBit / eBitsPerUnit] |= s_setMasks[theBit % eBitsPerUnit];
98 assert(theBit < m_size);
100 m_bitmap[theBit / eBitsPerUnit] &= s_clearMasks[theBit % eBitsPerUnit];
111 assert(theBit < m_size);
113 m_bitmap[theBit / eBitsPerUnit] ^= s_setMasks[theBit % eBitsPerUnit];
135 static const int s_setMasks[];
137 static const int s_clearMasks[];
144 BitmapVectorType m_bitmap;
149 XALAN_CPP_NAMESPACE_END
153 #endif // XALANBITMAP_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
size_type getSize() const
Get the size of the map.
Definition: XalanBitmap.hpp:128
size_t size_type
Definition: XalanBitmap.hpp:42
void clear(size_type theBit)
Clear a bit.
Definition: XalanBitmap.hpp:96
void toggle(size_type theBit)
Toggle a bit.
Definition: XalanBitmap.hpp:109
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
bool isSet(size_type theBit) const
Determine if a bit is set.
Definition: XalanBitmap.hpp:70
void set(size_type theBit)
Set a bit.
Definition: XalanBitmap.hpp:83
Definition: XalanBitmap.hpp:34
char UnitType
Definition: XalanBitmap.hpp:39