Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::XalanBitmap Class Reference

#include <xalanc/PlatformSupport/XalanBitmap.hpp>

Public Types

enum  { eBitsPerUnit = 8 }
 
typedef char UnitType
 
typedef size_t size_type
 

Public Member Functions

 XalanBitmap (MemoryManager &theManager, size_type theSize)
 Construct an instance with room for the specified number of bits. More...
 
 ~XalanBitmap ()
 
bool isSet (size_type theBit) const
 Determine if a bit is set. More...
 
void set (size_type theBit)
 Set a bit. More...
 
void clear (size_type theBit)
 Clear a bit. More...
 
void toggle (size_type theBit)
 Toggle a bit. More...
 
void clearAll ()
 Clear all of the bits. More...
 
size_type getSize () const
 Get the size of the map. More...
 

Detailed Description

Definition at line 36 of file XalanBitmap.hpp.

Member Typedef Documentation

◆ size_type

Definition at line 44 of file XalanBitmap.hpp.

◆ UnitType

Definition at line 41 of file XalanBitmap.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
eBitsPerUnit 

Definition at line 51 of file XalanBitmap.hpp.

Constructor & Destructor Documentation

◆ XalanBitmap()

xalanc::XalanBitmap::XalanBitmap ( MemoryManager &  theManager,
size_type  theSize 
)

Construct an instance with room for the specified number of bits.

Parameters
theSizeThe number of bits in the map.

◆ ~XalanBitmap()

xalanc::XalanBitmap::~XalanBitmap ( )

Member Function Documentation

◆ clear()

void xalanc::XalanBitmap::clear ( size_type  theBit)
inline

Clear a bit.

Parameters
theBitThe number of the bit to clear.

Definition at line 98 of file XalanBitmap.hpp.

◆ clearAll()

void xalanc::XalanBitmap::clearAll ( )

Clear all of the bits.

◆ getSize()

size_type xalanc::XalanBitmap::getSize ( ) const
inline

Get the size of the map.

Returns
The number of bits in the map.

Definition at line 130 of file XalanBitmap.hpp.

◆ isSet()

bool xalanc::XalanBitmap::isSet ( size_type  theBit) const
inline

Determine if a bit is set.

Parameters
theBitThe number of the bit to check.
Returns
true if the bit is set, false if not.

Definition at line 72 of file XalanBitmap.hpp.

◆ set()

void xalanc::XalanBitmap::set ( size_type  theBit)
inline

Set a bit.

Parameters
theBitThe number of the bit to set.

Definition at line 85 of file XalanBitmap.hpp.

◆ toggle()

void xalanc::XalanBitmap::toggle ( size_type  theBit)
inline

Toggle a bit.

Parameters
theBitThe number of the bit to toggle.

Definition at line 111 of file XalanBitmap.hpp.


The documentation for this class was generated from the following file: