MeshLib
 
Loading...
Searching...
No Matches
BitSet Class Reference

#include <MRBitSet.h>

+ Inheritance diagram for BitSet:

Public Member Functions

 BitSet ()
 creates empty bitset
 
 BitSet (int size)
 creates bitset with given size
 
void Set (int index)
 sets the given bit to true
 
void Set (int index, bool value)
 sets the given bit to given value
 
void Resize (int size)
 changes the size of the bitset
 
void AutoResizeSet (int index)
 sets the given bit to true. If index is out of range, it will be automatically resized
 
void AutoResizeSet (int index, bool value)
 sets the given bit to given value. If index is out of range, it will be automatically resized
 
virtual BitSetReadOnly Clone () override
 
MR::BitSetbitSet ()
 

Public Attributes

internal : BitSet( MR::BitSet* bs )
 

Protected Member Functions

virtual bool IsEqualTo (BitSetReadOnly^ other) override
 

Constructor & Destructor Documentation

◆ BitSet() [1/2]

BitSet::BitSet ( )

creates empty bitset

◆ BitSet() [2/2]

BitSet::BitSet ( int size)

creates bitset with given size

Member Function Documentation

◆ AutoResizeSet() [1/2]

void BitSet::AutoResizeSet ( int index)

sets the given bit to true. If index is out of range, it will be automatically resized

◆ AutoResizeSet() [2/2]

void BitSet::AutoResizeSet ( int index,
bool value )

sets the given bit to given value. If index is out of range, it will be automatically resized

◆ bitSet()

MR::BitSet * BitSet::bitSet ( )
inline

◆ Clone()

virtual BitSetReadOnly BitSet::Clone ( )
overridevirtual

◆ IsEqualTo()

virtual bool BitSet::IsEqualTo ( BitSetReadOnly^ other)
overrideprotectedvirtual

◆ Resize()

void BitSet::Resize ( int size)

changes the size of the bitset

◆ Set() [1/2]

void BitSet::Set ( int index)

sets the given bit to true

◆ Set() [2/2]

void BitSet::Set ( int index,
bool value )

sets the given bit to given value

Member Data Documentation

◆ __pad0__

internal BitSet::__pad0__

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