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&lt;MR::Id&lt;MR::ICPElemtTag&gt;&gt; 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&amp;=.
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.
Public Member Functions inherited from MR.Const_BitSet
virtual void Dispose ()
IEnumerator< ulong > GetEnumerator ()
unsafe Const_BitSet ()
 Constructs an empty (default-constructed) instance.
unsafe Const_BitSet (MR._ByValue_BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
 Const_BitSet (Const_BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
 Const_BitSet (BitSet _other)
 Generated from constructor MR.BitSet.BitSet.
unsafe Const_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 bool empty ()
 Generated from method MR.BitSet.empty.
unsafe ulong size ()
 Generated from method MR.BitSet.size.
unsafe ulong numBlocks ()
 Generated from method MR::BitSet::num_blocks.
unsafe ulong capacity ()
 Generated from method MR.BitSet.capacity.
unsafe bool uncheckedTest (ulong n)
 Generated from method MR.BitSet.uncheckedTest.
unsafe bool test (ulong n)
 Generated from method MR.BitSet.test.
unsafe MR.Std.Const_Vector_MRUint64T bits ()
 read-only access to all bits stored as a vector of uint64 blocks Generated from method MR.BitSet.bits.
unsafe bool all ()
 returns true if all bits in this container are set Generated from method MR.BitSet.all.
unsafe bool any ()
 returns true if at least one bits in this container is set Generated from method MR.BitSet.any.
unsafe bool none ()
 returns true if all bits in this container are reset Generated from method MR.BitSet.none.
unsafe ulong count ()
 computes the number of set bits in the whole set Generated from method MR.BitSet.count.
unsafe ulong findFirst ()
 return the smallest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_first.
unsafe ulong findNext (ulong n)
 return the smallest index i>n such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_next.
unsafe ulong findLast ()
 return the highest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_last.
unsafe ulong findFirstNotSet ()
 return the smallest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_first_not_set.
unsafe ulong findNextNotSet (ulong n)
 return the smallest index i>n such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_next_not_set.
unsafe ulong findLastNotSet ()
 return the highest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_last_not_set.
unsafe ulong nthSetBit (ulong n)
 returns the location of nth set bit (where the first bit corresponds to n=0) or npos if there are less bit set Generated from method MR.BitSet.nthSetBit.
unsafe bool isSubsetOf (MR.Const_BitSet a)
 returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set. Otherwise this function returns false. Generated from method MR::BitSet::is_subset_of.
unsafe bool intersects (MR.Const_BitSet a)
 returns true if, there is a bit which is set in this bitset, such that the corresponding bit in bitset a is also set. Otherwise this function returns false. Generated from method MR.BitSet.intersects.
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.BitSet.heapBytes.
unsafe ulong backId ()
 returns the identifier of the back() element Generated from method MR.BitSet.backId.
unsafe ulong endId ()
 Generated from method MR.BitSet.endId.
bool Equals (MR.Const_BitSet? b)
override bool Equals (object? other)

Additional Inherited Members

Static Public Member Functions inherited from MR.Const_BitSet
static unsafe MR.BitSet fromBlocks (MR.Misc._Moved< MR.Std.Vector_MRUint64T > blocks)
 creates bitset from the given blocks of bits Generated from method MR.BitSet.fromBlocks.
static ulong beginId ()
 [beginId(), endId()) is the range of all bits in the set Generated from method MR.BitSet.beginId.
static unsafe bool operator== (MR.Const_BitSet a, MR.Const_BitSet b)
 compare that two bit sets have the same set bits (they can be equal even if sizes are distinct but last bits are off) Generated from function MR::operator==.
static unsafe bool operator!= (MR.Const_BitSet a, MR.Const_BitSet b)
static unsafe MR.BitSet operator& (MR.Const_BitSet a, MR.Const_BitSet b)
 Generated from function MR::operator&amp;.
static unsafe MR.BitSet operator| (MR.Const_BitSet a, MR.Const_BitSet b)
 Generated from function MR::operator|.
static unsafe MR.BitSet operator^ (MR.Const_BitSet a, MR.Const_BitSet b)
 Generated from function MR::operator^.
static unsafe MR.BitSet operator- (MR.Const_BitSet a, MR.Const_BitSet b)
 Generated from function MR::operator-.
Protected Member Functions inherited from MR.Const_BitSet
virtual unsafe void Dispose (bool disposing)
Static Protected Attributes inherited from MR.Const_BitSet
static unsafe ulong * __ref_storage_BitsPerBlock
static unsafe ulong * __ref_storage_Npos
Properties inherited from MR.Const_BitSet
static unsafe ulong BitsPerBlock [get]
static unsafe ulong Npos [get]

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&lt;MR::Id&lt;MR::ICPElemtTag&gt;&gt; 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&amp;=.

◆ 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: