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

Public Member Functions

RegionBitSet __and__ (self, ConstRegionBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[RegionId] __iter__ (self)
RegionBitSet __or__ (self, ConstRegionBitSet b)
str __repr__ (self)
RegionBitSet __sub__ (self, ConstRegionBitSet b)
RegionBitSet __xor__ (self, ConstRegionBitSet b)
RegionId backId (self)
RegionId endId (self)
RegionId find_first (self)
RegionId find_first_not_set (self)
RegionId find_last (self)
RegionId find_last_not_set (self)
RegionId find_next (self, ConstRegionId pos)
RegionId find_next_not_set (self, ConstRegionId pos)
RegionBitSet getMapping (self, ConstVector_RegionId_RegionId map)
RegionBitSet getMapping (self, ConstBMap_RegionId_RegionId map)
RegionBitSet getMapping (self, Const_phmap_flat_hash_map_Id_RegionTag_Id_RegionTag_phmap_Hash_Id_RegionTag_phmap_EqualTo_Id_RegionTag_Allocator_std_pair_Id_RegionTag_const_Id_RegionTag map)
RegionBitSet getMapping (self, ConstVector_RegionId_RegionId map, int resSize)
RegionBitSet getMapping (self, Const_phmap_flat_hash_map_Id_RegionTag_Id_RegionTag_phmap_Hash_Id_RegionTag_phmap_EqualTo_Id_RegionTag_Allocator_std_pair_Id_RegionTag_const_Id_RegionTag map, int resSize)
bool intersects (self, ConstRegionBitSet a)
bool is_subset_of (self, ConstRegionBitSet a)
RegionId nthSetBit (self, int n)
bool test (self, ConstRegionId n)
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)
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 heapBytes (self)
bool none (self)
int num_blocks (self)
int size (self)
bool uncheckedTest (self, int n)

Static Public Member Functions

RegionId beginId ()
Static Public Member Functions inherited from mrmeshpy.ConstBitSet
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::RegionBitSet

Vector<bool, I> like container (random-access, I - index type, bool - value type)
with all bits after size() considered off during testing

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstRegionBitSet.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet) -> None

2. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet, numBits: int, fillValue: bool = False) -> None

creates bitset of given size filled with given value

3. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet, src: meshlib.mrmeshpy.ConstBitSet) -> None

copies all bits from another BitSet (or a descending class, e.g. `TypedBitSet<U>`)

4. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet, src: meshlib.mrmeshpy.BitSet) -> None

moves all bits from another BitSet (or a descending class, e.g. `TypedBitSet<U>`)

5. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet, arg0: meshlib.mrmeshpy.ConstRegionBitSet) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstRegionBitSet, : meshlib.mrmeshpy.ConstRegionBitSet) -> None

Member Function Documentation

◆ __and__()

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

◆ __iter__()

typing.Iterator[RegionId] mrmeshpy.ConstRegionBitSet.__iter__ ( self)

◆ __or__()

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

◆ __repr__()

str mrmeshpy.ConstRegionBitSet.__repr__ ( self)

◆ __sub__()

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

◆ __xor__()

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

◆ backId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

RegionId mrmeshpy.ConstRegionBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

RegionId mrmeshpy.ConstRegionBitSet.find_first ( self)
return the smallest index i such that bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first_not_set()

RegionId mrmeshpy.ConstRegionBitSet.find_first_not_set ( self)
return the smallest index i such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_last()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_last_not_set()

RegionId mrmeshpy.ConstRegionBitSet.find_last_not_set ( self)
return the highest index i such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_next()

RegionId mrmeshpy.ConstRegionBitSet.find_next ( self,
ConstRegionId n )
return the smallest index i>n such that bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_next_not_set()

RegionId mrmeshpy.ConstRegionBitSet.find_next_not_set ( self,
ConstRegionId n )
return the smallest index i>n such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ getMapping() [1/5]

◆ getMapping() [2/5]

◆ getMapping() [3/5]

RegionBitSet mrmeshpy.ConstRegionBitSet.getMapping ( self,
ConstBMap_RegionId_RegionId map )

◆ getMapping() [4/5]

RegionBitSet mrmeshpy.ConstRegionBitSet.getMapping ( self,
ConstVector_RegionId_RegionId map )

◆ getMapping() [5/5]

RegionBitSet mrmeshpy.ConstRegionBitSet.getMapping ( self,
ConstVector_RegionId_RegionId map,
int resSize )

◆ intersects()

bool mrmeshpy.ConstRegionBitSet.intersects ( self,
ConstRegionBitSet 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.

Reimplemented from mrmeshpy.ConstBitSet.

◆ is_subset_of()

bool mrmeshpy.ConstRegionBitSet.is_subset_of ( self,
ConstRegionBitSet 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.

Reimplemented from mrmeshpy.ConstBitSet.

◆ nthSetBit()

RegionId mrmeshpy.ConstRegionBitSet.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 mrmeshpy.ConstBitSet.

◆ test()

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

Reimplemented from mrmeshpy.ConstBitSet.


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