MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.BitSet:

Classes

class  ConstCounts
class  Counts

Public Member Functions

BitSet __iand__ (self, ConstBitSet b)
None __init__ (self)
None __init__ (self, int numBits, bool fillValue=False)
None __init__ (self, ConstBitSet arg0)
BitSet __ior__ (self, ConstBitSet b)
BitSet __isub__ (self, ConstBitSet b)
BitSet __ixor__ (self, ConstBitSet b)
typing.Any __rrshift__ (self, typing.Any bs)
BitSet assign (self, ConstBitSet other)
bool atomicTestSet (self, int n)
None autoResizeSet (self, int pos, int len, bool val=True)
None autoResizeSet (self, int pos, bool val=True)
bool autoResizeTestSet (self, int pos, bool val=True)
None clear (self)
BitSet flip (self, int n, int len)
BitSet flip (self, int n)
BitSet flip (self)
None pop_back (self)
None push_back (self, bool val)
None reserve (self, int numBits)
BitSet reset (self, int n, int len)
BitSet reset (self, int n)
BitSet reset (self)
None resize (self, int numBits, bool fillValue=False)
None resizeWithReserve (self, int newSize)
None reverse (self)
BitSet set (self, int n, int len, bool val)
BitSet set (self, int n, bool val)
BitSet set (self, int n)
BitSet set (self)
None shrink_to_fit (self)
BitSet subtract (self, ConstBitSet b, int bShiftInBlocks)
bool test_set (self, int n, bool val=True)
bool uncheckedTestSet (self, int n, bool val=True)
Public Member Functions inherited from mrmeshpy.ConstBitSet
BitSet __and__ (self, ConstBitSet b)
bool __eq__ (self, ConstBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[int] __iter__ (self)
bool __ne__ (self, ConstBitSet b)
BitSet __or__ (self, ConstBitSet b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any bs)
BitSet __sub__ (self, ConstBitSet b)
BitSet __xor__ (self, ConstBitSet b)
bool all (self)
bool any (self)
int backId (self)
Const_std_vector_unsigned_long_Allocator_unsigned_long bits (self)
int capacity (self)
int count (self)
BitSet.Counts countBitsAndBlocks (self, int maxBits='~MR::BitSet::size_type{}')
bool empty (self)
int endId (self)
int find_first (self)
int find_first_not_set (self)
int find_last (self)
int find_last_not_set (self)
int find_next (self, int n)
int find_next_not_set (self, int n)
int heapBytes (self)
bool intersects (self, ConstBitSet a)
bool is_subset_of (self, ConstBitSet a)
bool none (self)
int nthSetBit (self, int n)
int num_blocks (self)
int size (self)
bool test (self, int n)
bool uncheckedTest (self, int n)

Static Public Member Functions

None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstBitSet
int beginId ()
BitSet fromBlocks (std_vector_unsigned_long_Allocator_unsigned_long blocks)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstBitSet
typing bits_per_block = 64
typing npos = 18446744073709551615
 Blocks = std_vector_unsigned_long_Allocator_unsigned_long
 ConstBlocks = Const_std_vector_unsigned_long_Allocator_unsigned_long

Detailed Description

Generated from:  MR::BitSet
Aliases:  TypedBitSet_FaceId_base, TypedBitSet_GraphEdgeId_base, TypedBitSet_GraphVertId_base, TypedBitSet_Id_EdgeTag_base, TypedBitSet_Id_ICPElemtTag.base, TypedBitSet_Id_SurfaceDistanceStartTag.base, TypedBitSet_Id_VoxelTag_base, TypedBitSet_NodeId_base, TypedBitSet_ObjId_base, TypedBitSet_PixelId_base, TypedBitSet_RegionId_base, TypedBitSet_TextureId_base, TypedBitSet_UndirectedEdgeId_base, TypedBitSet_VertId_base

std::vector<bool> like container (random-access, size_t - index type, bool - value type)
with all bits after size() considered off during testing

Constructor & Destructor Documentation

◆ __init__() [1/4]

None mrmeshpy.BitSet.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.BitSet.__init__ ( self)
creates empty bitset

◆ __init__() [3/4]

None mrmeshpy.BitSet.__init__ ( self,
int numBits,
bool fillValue = False )
creates bitset of given size filled with given value

◆ __init__() [4/4]

None mrmeshpy.BitSet.__init__ ( self,
ConstBitSet arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __iand__()

BitSet mrmeshpy.BitSet.__iand__ ( self,
ConstBitSet b )

◆ __ior__()

BitSet mrmeshpy.BitSet.__ior__ ( self,
ConstBitSet b )

◆ __isub__()

BitSet mrmeshpy.BitSet.__isub__ ( self,
ConstBitSet b )

◆ __ixor__()

BitSet mrmeshpy.BitSet.__ixor__ ( self,
ConstBitSet b )

◆ __rrshift__()

typing.Any mrmeshpy.BitSet.__rrshift__ ( self,
typing.Any bs )

◆ assign()

◆ atomicTestSet()

bool mrmeshpy.BitSet.atomicTestSet ( self,
int n )
sets n-th bit and returns its previous value; it is safe to call simultaneously from several threads for any bits of the same bitset,
provided no other modification of the bitset (including resizing) is performed in parallel

Reimplemented in mrmeshpy.EdgeBitSet, mrmeshpy.FaceBitSet, mrmeshpy.GraphEdgeBitSet, mrmeshpy.GraphVertBitSet, mrmeshpy.NodeBitSet, mrmeshpy.ObjBitSet, mrmeshpy.PixelBitSet, mrmeshpy.RegionBitSet, mrmeshpy.TextureBitSet, mrmeshpy.TypedBitSet_Id_ICPElemtTag, mrmeshpy.TypedBitSet_Id_SurfaceDistanceStartTag, mrmeshpy.UndirectedEdgeBitSet, mrmeshpy.VertBitSet, and mrmeshpy.VoxelBitSet.

◆ autoResizeSet() [1/2]

◆ autoResizeSet() [2/2]

◆ autoResizeTestSet()

◆ clear()

None mrmeshpy.BitSet.clear ( self)

◆ flip() [1/3]

◆ flip() [2/3]

◆ flip() [3/3]

◆ pop_back()

None mrmeshpy.BitSet.pop_back ( self)
removes last bit from the container, decreasing its size on 1

◆ push_back()

None mrmeshpy.BitSet.push_back ( self,
bool val )
adds one more bit with the given value in the container, increasing its size on 1

◆ reserve()

None mrmeshpy.BitSet.reserve ( self,
int numBits )

◆ reset() [1/3]

◆ reset() [2/3]

◆ reset() [3/3]

◆ resize()

None mrmeshpy.BitSet.resize ( self,
int numBits,
bool fillValue = False )

◆ resizeWithReserve()

None mrmeshpy.BitSet.resizeWithReserve ( self,
int newSize )
same as resize(newSize), which already grows the capacity geometrically

◆ reverse()

None mrmeshpy.BitSet.reverse ( self)
changes the order of bits on the opposite

◆ set() [1/4]

BitSet mrmeshpy.BitSet.set ( self)

◆ set() [2/4]

BitSet mrmeshpy.BitSet.set ( self,
int n )

◆ set() [3/4]

BitSet mrmeshpy.BitSet.set ( self,
int n,
bool val )

◆ set() [4/4]

BitSet mrmeshpy.BitSet.set ( self,
int n,
int len,
bool val )

◆ shrink_to_fit()

None mrmeshpy.BitSet.shrink_to_fit ( self)

◆ subtract()

◆ test_set()

◆ uncheckedTestSet()

bool mrmeshpy.BitSet.uncheckedTestSet ( self,
int n,
bool val = True )

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