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

Public Member Functions

RegionBitSet __and__ (self, RegionBitSet b)
 
RegionBitSet __iand__ (self, RegionBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, RegionBitSet arg0)
 
RegionBitSet __ior__ (self, RegionBitSet b)
 
RegionBitSet __isub__ (self, RegionBitSet b)
 
typing.Iterator __iter__ (self)
 
RegionBitSet __ixor__ (self, RegionBitSet b)
 
RegionBitSet __or__ (self, RegionBitSet b)
 
RegionBitSet __sub__ (self, RegionBitSet b)
 
RegionBitSet __xor__ (self, RegionBitSet b)
 
None autoResizeSet (self, RegionId pos, int len, bool val=True)
 
None autoResizeSet (self, RegionId pos, bool val=True)
 
bool autoResizeTestSet (self, RegionId pos, bool val=True)
 
RegionId backId (self)
 
RegionId endId (self)
 
RegionId find_first (self)
 
RegionId find_last (self)
 
RegionId find_next (self, RegionId pos)
 
RegionBitSet flip (self, RegionId n, int len)
 
RegionBitSet flip (self, RegionId n)
 
RegionBitSet flip (self)
 
RegionBitSet getMapping (self, Vector_RegionId_RegionId map)
 
RegionBitSet getMapping (self, BMap_RegionId_RegionId map)
 
RegionBitSet getMapping (self, phmap_flat_hash_map_Id_RegionTag_Id_RegionTag map)
 
RegionBitSet getMapping (self, Vector_RegionId_RegionId map, int resSize)
 
RegionBitSet getMapping (self, phmap_flat_hash_map_Id_RegionTag_Id_RegionTag map, int resSize)
 
RegionId nthSetBit (self, int n)
 
bool operator (self, RegionId pos)
 
RegionBitSet reset (self, RegionId n, int len)
 
RegionBitSet reset (self, RegionId n)
 
RegionBitSet reset (self)
 
RegionBitSet set (self, RegionId n, int len, bool val)
 
RegionBitSet set (self, RegionId n, bool val=True)
 
RegionBitSet set (self)
 
RegionBitSet subtract (self, RegionBitSet b, int bShiftInBlocks)
 
bool test (self, RegionId n)
 
bool test_set (self, RegionId n, bool val=True)
 
- Public Member Functions inherited from meshlib.mrmeshpy.BitSet
bool __eq__ (self, BitSet b)
 
None clear (self)
 
int count (self)
 
int heapBytes (self)
 
None pop_back (self)
 
None push_back (self, bool bit)
 
None resize (self, int num_bits, bool value=False)
 
None resizeWithReserve (self, int newSize)
 
int size (self)
 

Static Public Member Functions

RegionId beginId ()
 

Detailed Description

Generated from:  MR::RegionBitSet
Aliases:  TaggedBitSet_RegionTag

container of bits representing specific indices (faces, verts or edges)

Constructor & Destructor Documentation

◆ __init__() [1/4]

None meshlib.mrmeshpy.RegionBitSet.__init__ ( self,
BitSet src )
copies all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [2/4]

None meshlib.mrmeshpy.RegionBitSet.__init__ ( self,
BitSet src )
moves all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [3/4]

None meshlib.mrmeshpy.RegionBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [4/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__and__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iand__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__iand__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ior__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__ior__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __isub__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__isub__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator meshlib.mrmeshpy.RegionBitSet.__iter__ ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ixor__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__ixor__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __or__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__or__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __sub__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__sub__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __xor__()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.__xor__ ( self,
RegionBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

None meshlib.mrmeshpy.RegionBitSet.autoResizeSet ( self,
RegionId pos,
bool len = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None meshlib.mrmeshpy.RegionBitSet.autoResizeSet ( self,
RegionId pos,
int len,
bool val = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeTestSet()

bool meshlib.mrmeshpy.RegionBitSet.autoResizeTestSet ( self,
RegionId pos,
bool val = True )
same as \\ref autoResizeSet and returns previous value of pos-bit

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ backId()

RegionId meshlib.mrmeshpy.RegionBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ beginId()

RegionId meshlib.mrmeshpy.RegionBitSet.beginId ( )
static
[beginId(), endId()) is the range of all bits in the set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ endId()

RegionId meshlib.mrmeshpy.RegionBitSet.endId ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_first()

RegionId meshlib.mrmeshpy.RegionBitSet.find_first ( self)

◆ find_last()

RegionId meshlib.mrmeshpy.RegionBitSet.find_last ( self)
return the highest index i such as bit i is set, or npos if *this has no on bits.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_next()

RegionId meshlib.mrmeshpy.RegionBitSet.find_next ( self,
RegionId pos )

◆ flip() [1/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.flip ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [2/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.flip ( self,
RegionId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [3/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.flip ( self,
RegionId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ getMapping() [1/5]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.getMapping ( self,
BMap_RegionId_RegionId map )

◆ getMapping() [2/5]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.getMapping ( self,
phmap_flat_hash_map_Id_RegionTag_Id_RegionTag map )

◆ getMapping() [3/5]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.getMapping ( self,
phmap_flat_hash_map_Id_RegionTag_Id_RegionTag map,
int resSize )

◆ getMapping() [4/5]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.getMapping ( self,
Vector_RegionId_RegionId map )

◆ getMapping() [5/5]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.getMapping ( self,
Vector_RegionId_RegionId map,
int resSize )

◆ nthSetBit()

RegionId meshlib.mrmeshpy.RegionBitSet.nthSetBit ( self,
int n )
returns the location of nth set bit (where the first bit corresponds to n=0) or IndexType(npos) if there are less bit set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ operator()

bool meshlib.mrmeshpy.RegionBitSet.operator ( self,
RegionId pos )

◆ reset() [1/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.reset ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [2/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.reset ( self,
RegionId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [3/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.reset ( self,
RegionId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [1/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.set ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [2/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.set ( self,
RegionId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [3/3]

RegionBitSet meshlib.mrmeshpy.RegionBitSet.set ( self,
RegionId n,
int len,
bool val )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ subtract()

RegionBitSet meshlib.mrmeshpy.RegionBitSet.subtract ( self,
RegionBitSet b,
int bShiftInBlocks )
subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test()

bool meshlib.mrmeshpy.RegionBitSet.test ( self,
RegionId n )
all bits after size() we silently consider as not-set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test_set()

bool meshlib.mrmeshpy.RegionBitSet.test_set ( self,
RegionId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.


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