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

Public Member Functions

TextureBitSet __and__ (self, ConstTextureBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[TextureId] __iter__ (self)
TextureBitSet __or__ (self, ConstTextureBitSet b)
str __repr__ (self)
TextureBitSet __sub__ (self, ConstTextureBitSet b)
TextureBitSet __xor__ (self, ConstTextureBitSet b)
TextureId backId (self)
TextureId endId (self)
TextureId find_first (self)
TextureId find_first_not_set (self)
TextureId find_last (self)
TextureId find_last_not_set (self)
TextureId find_next (self, ConstTextureId pos)
TextureId find_next_not_set (self, ConstTextureId pos)
TextureBitSet getMapping (self, ConstVector_TextureId_TextureId map)
TextureBitSet getMapping (self, ConstBMap_TextureId_TextureId map)
TextureBitSet getMapping (self, Const_phmap_flat_hash_map_Id_TextureTag_Id_TextureTag_phmap_Hash_Id_TextureTag_phmap_EqualTo_Id_TextureTag_Allocator_std_pair_Id_TextureTag_const_Id_TextureTag map)
TextureBitSet getMapping (self, ConstVector_TextureId_TextureId map, int resSize)
TextureBitSet getMapping (self, Const_phmap_flat_hash_map_Id_TextureTag_Id_TextureTag_phmap_Hash_Id_TextureTag_phmap_EqualTo_Id_TextureTag_Allocator_std_pair_Id_TextureTag_const_Id_TextureTag map, int resSize)
bool intersects (self, ConstTextureBitSet a)
bool is_subset_of (self, ConstTextureBitSet a)
TextureId nthSetBit (self, int n)
bool test (self, ConstTextureId 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

TextureId 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::TextureBitSet

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

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

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

creates bitset of given size filled with given value

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

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __and__()

TextureBitSet mrmeshpy.ConstTextureBitSet.__and__ ( self,
ConstTextureBitSet b )

◆ __iter__()

typing.Iterator[TextureId] mrmeshpy.ConstTextureBitSet.__iter__ ( self)

◆ __or__()

TextureBitSet mrmeshpy.ConstTextureBitSet.__or__ ( self,
ConstTextureBitSet b )

◆ __repr__()

str mrmeshpy.ConstTextureBitSet.__repr__ ( self)

◆ __sub__()

TextureBitSet mrmeshpy.ConstTextureBitSet.__sub__ ( self,
ConstTextureBitSet b )

◆ __xor__()

TextureBitSet mrmeshpy.ConstTextureBitSet.__xor__ ( self,
ConstTextureBitSet b )

◆ backId()

TextureId mrmeshpy.ConstTextureBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

TextureId mrmeshpy.ConstTextureBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

TextureId mrmeshpy.ConstTextureBitSet.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()

TextureId mrmeshpy.ConstTextureBitSet.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()

TextureId mrmeshpy.ConstTextureBitSet.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()

TextureId mrmeshpy.ConstTextureBitSet.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()

TextureId mrmeshpy.ConstTextureBitSet.find_next ( self,
ConstTextureId 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()

TextureId mrmeshpy.ConstTextureBitSet.find_next_not_set ( self,
ConstTextureId 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]

TextureBitSet mrmeshpy.ConstTextureBitSet.getMapping ( self,
ConstBMap_TextureId_TextureId map )

◆ getMapping() [4/5]

TextureBitSet mrmeshpy.ConstTextureBitSet.getMapping ( self,
ConstVector_TextureId_TextureId map )

◆ getMapping() [5/5]

TextureBitSet mrmeshpy.ConstTextureBitSet.getMapping ( self,
ConstVector_TextureId_TextureId map,
int resSize )

◆ intersects()

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

TextureId mrmeshpy.ConstTextureBitSet.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.ConstTextureBitSet.test ( self,
ConstTextureId 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: