MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_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 const half of the class. More...

+ Inheritance diagram for MR.Const_BitSet:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_BitSet ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_BitSet (MR._ByValue_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 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)
 

Static Public Member Functions

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&.
 
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

virtual unsafe void Dispose (bool disposing)
 

Properties

static unsafe ulong BitsPerBlock [get]
 
static unsafe ulong Npos [get]
 
- Properties inherited from MR.Misc.Object< Const_BitSet >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_BitSet >
bool _IsOwningVal
 

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 const half of the class.


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