LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IndexBitSet Class Reference

#include <bitset.hxx>

Public Member Functions

 IndexBitSet ()
 
 ~IndexBitSet ()
 
sal_uInt16 GetFreeIndex ()
 
void ReleaseIndex (sal_uInt16 i)
 

Private Member Functions

IndexBitSetoperator|= (sal_uInt16 nBit)
 
IndexBitSetoperator-= (sal_uInt16 nBit)
 
bool Contains (sal_uInt16 nBit) const
 
 IndexBitSet (IndexBitSet const &)=delete
 
void operator= (IndexBitSet const &)=delete
 

Private Attributes

sal_uInt16 nBlocks
 
std::unique_ptr< sal_uInt32[]> pBitmap
 

Detailed Description

Definition at line 26 of file bitset.hxx.

Constructor & Destructor Documentation

◆ IndexBitSet() [1/2]

IndexBitSet::IndexBitSet ( IndexBitSet const &  )
privatedelete

◆ IndexBitSet() [2/2]

IndexBitSet::IndexBitSet ( )

Definition at line 86 of file bitset.cxx.

References nBlocks.

◆ ~IndexBitSet()

IndexBitSet::~IndexBitSet ( )

Definition at line 91 of file bitset.cxx.

Member Function Documentation

◆ Contains()

bool IndexBitSet::Contains ( sal_uInt16  nBit) const
private

Definition at line 76 of file bitset.cxx.

References nBit, nBlocks, and pBitmap.

Referenced by GetFreeIndex().

◆ GetFreeIndex()

sal_uInt16 IndexBitSet::GetFreeIndex ( )

Definition at line 95 of file bitset.cxx.

References Contains(), i, SAL_MAX_UINT16, and SAL_WARN.

Referenced by SfxViewFrame::GetDocNumber_Impl().

◆ operator-=()

IndexBitSet & IndexBitSet::operator-= ( sal_uInt16  nBit)
private

Definition at line 29 of file bitset.cxx.

References nBit, nBlocks, and pBitmap.

◆ operator=()

void IndexBitSet::operator= ( IndexBitSet const &  )
privatedelete

◆ operator|=()

IndexBitSet & IndexBitSet::operator|= ( sal_uInt16  nBit)
private

Definition at line 47 of file bitset.cxx.

References nBit, nBlocks, and pBitmap.

◆ ReleaseIndex()

void IndexBitSet::ReleaseIndex ( sal_uInt16  i)
inline

Definition at line 44 of file bitset.hxx.

References i.

Member Data Documentation

◆ nBlocks

sal_uInt16 IndexBitSet::nBlocks
private

Definition at line 29 of file bitset.hxx.

Referenced by Contains(), IndexBitSet(), operator-=(), and operator|=().

◆ pBitmap

std::unique_ptr<sal_uInt32[]> IndexBitSet::pBitmap
private

Definition at line 30 of file bitset.hxx.

Referenced by Contains(), operator-=(), and operator|=().


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