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

Public Member Functions

PixelBitSet __and__ (self, ConstPixelBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[PixelId] __iter__ (self)
PixelBitSet __or__ (self, ConstPixelBitSet b)
str __repr__ (self)
PixelBitSet __sub__ (self, ConstPixelBitSet b)
PixelBitSet __xor__ (self, ConstPixelBitSet b)
PixelId backId (self)
PixelId endId (self)
PixelId find_first (self)
PixelId find_first_not_set (self)
PixelId find_last (self)
PixelId find_last_not_set (self)
PixelId find_next (self, ConstPixelId pos)
PixelId find_next_not_set (self, ConstPixelId pos)
PixelBitSet getMapping (self, ConstVector_PixelId_PixelId map)
PixelBitSet getMapping (self, ConstBMap_PixelId_PixelId map)
PixelBitSet getMapping (self, Const_phmap_flat_hash_map_Id_PixelTag_Id_PixelTag_phmap_Hash_Id_PixelTag_phmap_EqualTo_Id_PixelTag_Allocator_std_pair_Id_PixelTag_const_Id_PixelTag map)
PixelBitSet getMapping (self, ConstVector_PixelId_PixelId map, int resSize)
PixelBitSet getMapping (self, Const_phmap_flat_hash_map_Id_PixelTag_Id_PixelTag_phmap_Hash_Id_PixelTag_phmap_EqualTo_Id_PixelTag_Allocator_std_pair_Id_PixelTag_const_Id_PixelTag map, int resSize)
bool intersects (self, ConstPixelBitSet a)
bool is_subset_of (self, ConstPixelBitSet a)
PixelId nthSetBit (self, int n)
bool test (self, ConstPixelId 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

PixelId 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::PixelBitSet

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.ConstPixelBitSet.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

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

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

creates bitset of given size filled with given value

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

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __and__()

PixelBitSet mrmeshpy.ConstPixelBitSet.__and__ ( self,
ConstPixelBitSet b )

◆ __iter__()

typing.Iterator[PixelId] mrmeshpy.ConstPixelBitSet.__iter__ ( self)

◆ __or__()

PixelBitSet mrmeshpy.ConstPixelBitSet.__or__ ( self,
ConstPixelBitSet b )

◆ __repr__()

str mrmeshpy.ConstPixelBitSet.__repr__ ( self)

◆ __sub__()

PixelBitSet mrmeshpy.ConstPixelBitSet.__sub__ ( self,
ConstPixelBitSet b )

◆ __xor__()

PixelBitSet mrmeshpy.ConstPixelBitSet.__xor__ ( self,
ConstPixelBitSet b )

◆ backId()

PixelId mrmeshpy.ConstPixelBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

PixelId mrmeshpy.ConstPixelBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

PixelId mrmeshpy.ConstPixelBitSet.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()

PixelId mrmeshpy.ConstPixelBitSet.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()

PixelId mrmeshpy.ConstPixelBitSet.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()

PixelId mrmeshpy.ConstPixelBitSet.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()

PixelId mrmeshpy.ConstPixelBitSet.find_next ( self,
ConstPixelId 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()

PixelId mrmeshpy.ConstPixelBitSet.find_next_not_set ( self,
ConstPixelId 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]

PixelBitSet mrmeshpy.ConstPixelBitSet.getMapping ( self,
ConstBMap_PixelId_PixelId map )

◆ getMapping() [4/5]

PixelBitSet mrmeshpy.ConstPixelBitSet.getMapping ( self,
ConstVector_PixelId_PixelId map )

◆ getMapping() [5/5]

PixelBitSet mrmeshpy.ConstPixelBitSet.getMapping ( self,
ConstVector_PixelId_PixelId map,
int resSize )

◆ intersects()

bool mrmeshpy.ConstPixelBitSet.intersects ( self,
ConstPixelBitSet 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.ConstPixelBitSet.is_subset_of ( self,
ConstPixelBitSet 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()

PixelId mrmeshpy.ConstPixelBitSet.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.ConstPixelBitSet.test ( self,
ConstPixelId 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: