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

Public Member Functions

BitSet __and__ (self, BitSet b)
 
bool __eq__ (self, BitSet b)
 
BitSet __iand__ (self, BitSet b)
 
None __init__ (self)
 
None __init__ (self, int numBits, bool fillValue=False)
 
None __init__ (self, BitSet arg0)
 
BitSet __ior__ (self, BitSet b)
 
BitSet __isub__ (self, BitSet b)
 
typing.Iterator[int] __iter__ (self)
 
BitSet __ixor__ (self, BitSet b)
 
BitSet __or__ (self, BitSet b)
 
str __repr__ (self)
 
typing.Any __rlshift__ (self, typing.Any bs)
 
typing.Any __rrshift__ (self, typing.Any bs)
 
BitSet __sub__ (self, BitSet b)
 
BitSet __xor__ (self, BitSet b)
 
bool all (self)
 
bool any (self)
 
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)
 
int backId (self)
 
std_vector_unsigned_long bits (self)
 
int capacity (self)
 
None clear (self)
 
int count (self)
 
bool empty (self)
 
int endId (self)
 
int find_first (self)
 
int find_last (self)
 
int find_next (self, int n)
 
BitSet flip (self, int n, int len)
 
BitSet flip (self, int n)
 
BitSet flip (self)
 
int heapBytes (self)
 
bool intersects (self, BitSet a)
 
bool is_subset_of (self, BitSet a)
 
bool none (self)
 
int nthSetBit (self, int n)
 
int num_blocks (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)
 
int size (self)
 
BitSet subtract (self, BitSet b, int bShiftInBlocks)
 
bool test (self, int n)
 
bool test_set (self, int n, bool val=True)
 
bool uncheckedTest (self, int n)
 
bool uncheckedTestSet (self, int n, bool val=True)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
int beginId ()
 
BitSet fromBlocks (std_vector_unsigned_long blocks)
 
BitSet operator (*args, **kwargs)
 
BitSet operator (*args, **kwargs)
 

Static Public Attributes

typing bits_per_block = 64
 
typing npos = 18446744073709551615
 

Detailed Description

Generated from:  MR::BitSet
Aliases:  TypedBitSet_Id_ICPElemtTag.base, TypedBitSet_GraphEdgeId_base, TypedBitSet_Id_VoxelTag_base, TypedBitSet_VertId_base, TypedBitSet_ObjId_base, TypedBitSet_GraphVertId_base, TypedBitSet_RegionId_base, TypedBitSet_TextureId_base, TypedBitSet_NodeId_base, TypedBitSet_FaceId_base, TypedBitSet_PixelId_base, TypedBitSet_Id_EdgeTag_base, TypedBitSet_UndirectedEdgeId_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

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

◆ __init__() [2/4]

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

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

◆ __init__() [3/4]

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

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

◆ __init__() [4/4]

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

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

Member Function Documentation

◆ __and__()

◆ __eq__()

bool mrmeshpy.BitSet.__eq__ ( self,
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)

Reimplemented in mrmeshpy.FaceBitSet, and mrmeshpy.VertBitSet.

◆ __iand__()

◆ __ior__()

◆ __isub__()

◆ __iter__()

◆ __ixor__()

◆ __or__()

◆ __repr__()

◆ __rlshift__()

typing.Any mrmeshpy.BitSet.__rlshift__ ( self,
typing.Any bs )
=====================================================================
BitSet, format compatible with boost::dynamic_bitset

◆ __rrshift__()

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

◆ __sub__()

◆ __xor__()

◆ all()

bool mrmeshpy.BitSet.all ( self)
returns true if all bits in this container are set

◆ any()

bool mrmeshpy.BitSet.any ( self)
returns true if at least one bits in this container is set

◆ autoResizeSet() [1/2]

◆ autoResizeSet() [2/2]

◆ autoResizeTestSet()

◆ backId()

◆ beginId()

◆ bits()

std_vector_unsigned_long mrmeshpy.BitSet.bits ( self)
read-only access to all bits stored as a vector of uint64 blocks

◆ capacity()

int mrmeshpy.BitSet.capacity ( self)

◆ clear()

None mrmeshpy.BitSet.clear ( self)

◆ count()

int mrmeshpy.BitSet.count ( self)
computes the number of set bits in the whole set

◆ empty()

bool mrmeshpy.BitSet.empty ( self)

◆ endId()

◆ find_first()

◆ find_last()

◆ find_next()

◆ flip() [1/3]

◆ flip() [2/3]

◆ flip() [3/3]

◆ fromBlocks()

BitSet mrmeshpy.BitSet.fromBlocks ( std_vector_unsigned_long blocks)
static
creates bitset from the given blocks of bits

◆ heapBytes()

int mrmeshpy.BitSet.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ intersects()

bool mrmeshpy.BitSet.intersects ( self,
BitSet a )

◆ is_subset_of()

bool mrmeshpy.BitSet.is_subset_of ( self,
BitSet a )

◆ none()

bool mrmeshpy.BitSet.none ( self)
returns true if all bits in this container are reset

◆ nthSetBit()

◆ num_blocks()

int mrmeshpy.BitSet.num_blocks ( self)

◆ operator() [1/2]

◆ operator() [2/2]

◆ 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 )
doubles reserved memory until resize(newSize) can be done without reallocation

◆ reverse()

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

◆ set() [1/4]

◆ set() [2/4]

◆ set() [3/4]

◆ set() [4/4]

◆ shrink_to_fit()

None mrmeshpy.BitSet.shrink_to_fit ( self)

◆ size()

int mrmeshpy.BitSet.size ( self)

◆ subtract()

◆ test()

◆ test_set()

◆ uncheckedTest()

bool mrmeshpy.BitSet.uncheckedTest ( self,
int n )

◆ uncheckedTestSet()

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

Member Data Documentation

◆ bits_per_block

typing mrmeshpy.BitSet.bits_per_block = 64
static

◆ npos

typing mrmeshpy.BitSet.npos = 18446744073709551615
static

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