MeshLib C# Docs
Loading...
Searching...
No Matches
MR.BitSet Class Reference

std.vector<bool> like container (random-access, size_t - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR.BitSet. Derived classes: Direct: (non-virtual) MR.EdgeBitSet MR.FaceBitSet MR.GraphEdgeBitSet MR.GraphVertBitSet MR.NodeBitSet MR.ObjBitSet MR.PixelBitSet MR.RegionBitSet MR.TextureBitSet MR.TypedBitSet<MR.Id<MR.ICPElemtTag>> MR.UndirectedEdgeBitSet MR.VertBitSet MR.VoxelBitSet This is the non-const half of the class. More...

+ Inheritance diagram for MR.BitSet:

Public Member Functions

unsafe BitSet ()
 Constructs an empty (default-constructed) instance.
 
unsafe BitSet (MR._ByValue_BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
 
 BitSet (Const_BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
 
 BitSet (BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
 
unsafe BitSet (ulong numBits, bool? fillValue=null)
 creates bitset of given size filled with given value Generated from constructor MR.BitSet.BitSet. Parameter fillValue defaults to false.
 
unsafe MR.BitSet assign (MR._ByValue_BitSet _other)
 Generated from method MR.BitSet.operator=.
 
unsafe void reserve (ulong numBits)
 Generated from method MR.BitSet.reserve.
 
unsafe void resize (ulong numBits, bool? fillValue=null)
 Generated from method MR.BitSet.resize. Parameter fillValue defaults to false.
 
unsafe void clear ()
 Generated from method MR.BitSet.clear.
 
unsafe void shrinkToFit ()
 Generated from method MR.BitSet.shrink_to_fit.
 
unsafe bool uncheckedTestSet (ulong n, bool? val=null)
 Generated from method MR.BitSet.uncheckedTestSet. Parameter val defaults to true.
 
unsafe bool testSet (ulong n, bool? val=null)
 Generated from method MR.BitSet.test_set. Parameter val defaults to true.
 
unsafe MR.BitSet set (ulong n, ulong len, bool val)
 Generated from method MR.BitSet.set.
 
unsafe MR.BitSet set (ulong n, bool val)
 Generated from method MR.BitSet.set.
 
unsafe MR.BitSet set (ulong n)
 Generated from method MR.BitSet.set.
 
unsafe MR.BitSet set ()
 Generated from method MR.BitSet.set.
 
unsafe MR.BitSet reset (ulong n, ulong len)
 Generated from method MR.BitSet.reset.
 
unsafe MR.BitSet reset (ulong n)
 Generated from method MR.BitSet.reset.
 
unsafe MR.BitSet reset ()
 Generated from method MR.BitSet.reset.
 
unsafe MR.BitSet flip (ulong n, ulong len)
 Generated from method MR.BitSet.flip.
 
unsafe MR.BitSet flip (ulong n)
 Generated from method MR.BitSet.flip.
 
unsafe MR.BitSet flip ()
 Generated from method MR.BitSet.flip.
 
unsafe void reverse ()
 changes the order of bits on the opposite Generated from method MR.BitSet.reverse.
 
unsafe void pushBack (bool val)
 adds one more bit with the given value in the container, increasing its size on 1 Generated from method MR.BitSet.push_back.
 
unsafe void popBack ()
 removes last bit from the container, decreasing its size on 1 Generated from method MR.BitSet.pop_back.
 
unsafe MR.BitSet bitandAssign (MR.Const_BitSet b)
 Generated from method MR.BitSet.operator&=.
 
unsafe MR.BitSet bitorAssign (MR.Const_BitSet b)
 Generated from method MR.BitSet.operator|=.
 
unsafe MR.BitSet xorAssign (MR.Const_BitSet b)
 Generated from method MR.BitSet.operator^=.
 
unsafe MR.BitSet subAssign (MR.Const_BitSet b)
 Generated from method MR.BitSet.operator-=.
 
unsafe MR.BitSet subtract (MR.Const_BitSet b, int bShiftInBlocks)
 subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block Generated from method MR.BitSet.subtract.
 
unsafe void resizeWithReserve (ulong newSize)
 doubles reserved memory until resize(newSize) can be done without reallocation Generated from method MR.BitSet.resizeWithReserve.
 
unsafe void autoResizeSet (ulong pos, ulong len, bool? val=null)
 sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements Generated from method MR.BitSet.autoResizeSet. Parameter val defaults to true.
 
unsafe void autoResizeSet (ulong pos, bool? val=null)
 Generated from method MR.BitSet.autoResizeSet. Parameter val defaults to true.
 
unsafe bool autoResizeTestSet (ulong pos, bool? val=null)
 same as autoResizeSet and returns previous value of pos-bit Generated from method MR.BitSet.autoResizeTestSet. Parameter val defaults to true.
 

Detailed Description

std.vector<bool> like container (random-access, size_t - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR.BitSet. Derived classes: Direct: (non-virtual) MR.EdgeBitSet MR.FaceBitSet MR.GraphEdgeBitSet MR.GraphVertBitSet MR.NodeBitSet MR.ObjBitSet MR.PixelBitSet MR.RegionBitSet MR.TextureBitSet MR.TypedBitSet<MR.Id<MR.ICPElemtTag>> MR.UndirectedEdgeBitSet MR.VertBitSet MR.VoxelBitSet This is the non-const half of the class.

Constructor & Destructor Documentation

◆ BitSet() [1/5]

unsafe MR.BitSet.BitSet ( )
inline

Constructs an empty (default-constructed) instance.

◆ BitSet() [2/5]

unsafe MR.BitSet.BitSet ( MR._ByValue_BitSet _other)
inline

Generated from constructor MR.BitSet.BitSet.

◆ BitSet() [3/5]

MR.BitSet.BitSet ( Const_BitSet _other)
inline

Generated from constructor MR.BitSet.BitSet.

◆ BitSet() [4/5]

MR.BitSet.BitSet ( BitSet _other)
inline

Generated from constructor MR.BitSet.BitSet.

◆ BitSet() [5/5]

unsafe MR.BitSet.BitSet ( ulong numBits,
bool? fillValue = null )
inline

creates bitset of given size filled with given value Generated from constructor MR.BitSet.BitSet. Parameter fillValue defaults to false.

Member Function Documentation

◆ assign()

unsafe MR.BitSet MR.BitSet.assign ( MR._ByValue_BitSet _other)
inline

Generated from method MR.BitSet.operator=.

◆ autoResizeSet() [1/2]

unsafe void MR.BitSet.autoResizeSet ( ulong pos,
bool? val = null )
inline

Generated from method MR.BitSet.autoResizeSet. Parameter val defaults to true.

◆ autoResizeSet() [2/2]

unsafe void MR.BitSet.autoResizeSet ( ulong pos,
ulong len,
bool? val = null )
inline

sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements Generated from method MR.BitSet.autoResizeSet. Parameter val defaults to true.

◆ autoResizeTestSet()

unsafe bool MR.BitSet.autoResizeTestSet ( ulong pos,
bool? val = null )
inline

same as autoResizeSet and returns previous value of pos-bit Generated from method MR.BitSet.autoResizeTestSet. Parameter val defaults to true.

◆ bitandAssign()

unsafe MR.BitSet MR.BitSet.bitandAssign ( MR.Const_BitSet b)
inline

Generated from method MR.BitSet.operator&=.

◆ bitorAssign()

unsafe MR.BitSet MR.BitSet.bitorAssign ( MR.Const_BitSet b)
inline

Generated from method MR.BitSet.operator|=.

◆ clear()

unsafe void MR.BitSet.clear ( )
inline

Generated from method MR.BitSet.clear.

◆ flip() [1/3]

unsafe MR.BitSet MR.BitSet.flip ( )
inline

Generated from method MR.BitSet.flip.

◆ flip() [2/3]

unsafe MR.BitSet MR.BitSet.flip ( ulong n)
inline

Generated from method MR.BitSet.flip.

◆ flip() [3/3]

unsafe MR.BitSet MR.BitSet.flip ( ulong n,
ulong len )
inline

Generated from method MR.BitSet.flip.

◆ popBack()

unsafe void MR.BitSet.popBack ( )
inline

removes last bit from the container, decreasing its size on 1 Generated from method MR.BitSet.pop_back.

◆ pushBack()

unsafe void MR.BitSet.pushBack ( bool val)
inline

adds one more bit with the given value in the container, increasing its size on 1 Generated from method MR.BitSet.push_back.

◆ reserve()

unsafe void MR.BitSet.reserve ( ulong numBits)
inline

Generated from method MR.BitSet.reserve.

◆ reset() [1/3]

unsafe MR.BitSet MR.BitSet.reset ( )
inline

Generated from method MR.BitSet.reset.

◆ reset() [2/3]

unsafe MR.BitSet MR.BitSet.reset ( ulong n)
inline

Generated from method MR.BitSet.reset.

◆ reset() [3/3]

unsafe MR.BitSet MR.BitSet.reset ( ulong n,
ulong len )
inline

Generated from method MR.BitSet.reset.

◆ resize()

unsafe void MR.BitSet.resize ( ulong numBits,
bool? fillValue = null )
inline

Generated from method MR.BitSet.resize. Parameter fillValue defaults to false.

◆ resizeWithReserve()

unsafe void MR.BitSet.resizeWithReserve ( ulong newSize)
inline

doubles reserved memory until resize(newSize) can be done without reallocation Generated from method MR.BitSet.resizeWithReserve.

◆ reverse()

unsafe void MR.BitSet.reverse ( )
inline

changes the order of bits on the opposite Generated from method MR.BitSet.reverse.

◆ set() [1/4]

unsafe MR.BitSet MR.BitSet.set ( )
inline

Generated from method MR.BitSet.set.

◆ set() [2/4]

unsafe MR.BitSet MR.BitSet.set ( ulong n)
inline

Generated from method MR.BitSet.set.

◆ set() [3/4]

unsafe MR.BitSet MR.BitSet.set ( ulong n,
bool val )
inline

Generated from method MR.BitSet.set.

◆ set() [4/4]

unsafe MR.BitSet MR.BitSet.set ( ulong n,
ulong len,
bool val )
inline

Generated from method MR.BitSet.set.

◆ shrinkToFit()

unsafe void MR.BitSet.shrinkToFit ( )
inline

Generated from method MR.BitSet.shrink_to_fit.

◆ subAssign()

unsafe MR.BitSet MR.BitSet.subAssign ( MR.Const_BitSet b)
inline

Generated from method MR.BitSet.operator-=.

◆ subtract()

unsafe MR.BitSet MR.BitSet.subtract ( MR.Const_BitSet b,
int bShiftInBlocks )
inline

subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block Generated from method MR.BitSet.subtract.

◆ testSet()

unsafe bool MR.BitSet.testSet ( ulong n,
bool? val = null )
inline

Generated from method MR.BitSet.test_set. Parameter val defaults to true.

◆ uncheckedTestSet()

unsafe bool MR.BitSet.uncheckedTestSet ( ulong n,
bool? val = null )
inline

Generated from method MR.BitSet.uncheckedTestSet. Parameter val defaults to true.

◆ xorAssign()

unsafe MR.BitSet MR.BitSet.xorAssign ( MR.Const_BitSet b)
inline

Generated from method MR.BitSet.operator^=.


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