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

Public Member Functions

UndirectedEdgeBitSet __and__ (self, ConstUndirectedEdgeBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[UndirectedEdgeId] __iter__ (self)
UndirectedEdgeBitSet __or__ (self, ConstUndirectedEdgeBitSet b)
str __repr__ (self)
UndirectedEdgeBitSet __sub__ (self, ConstUndirectedEdgeBitSet b)
UndirectedEdgeBitSet __xor__ (self, ConstUndirectedEdgeBitSet b)
UndirectedEdgeId backId (self)
UndirectedEdgeId endId (self)
UndirectedEdgeId find_first (self)
UndirectedEdgeId find_first_not_set (self)
UndirectedEdgeId find_last (self)
UndirectedEdgeId find_last_not_set (self)
UndirectedEdgeId find_next (self, ConstUndirectedEdgeId pos)
UndirectedEdgeId find_next_not_set (self, ConstUndirectedEdgeId pos)
UndirectedEdgeBitSet getMapping (self, ConstUndirectedEdgeMap map)
UndirectedEdgeBitSet getMapping (self, ConstUndirectedEdgeBMap map)
UndirectedEdgeBitSet getMapping (self, Const_phmap_flat_hash_map_Id_UndirectedEdgeTag_Id_UndirectedEdgeTag_phmap_Hash_Id_UndirectedEdgeTag_phmap_EqualTo_Id_UndirectedEdgeTag_Allocator_std_pair_Id_UndirectedEdgeTag_const_Id_UndirectedEdgeTag map)
UndirectedEdgeBitSet getMapping (self, ConstUndirectedEdgeMap map, int resSize)
UndirectedEdgeBitSet getMapping (self, Const_phmap_flat_hash_map_Id_UndirectedEdgeTag_Id_UndirectedEdgeTag_phmap_Hash_Id_UndirectedEdgeTag_phmap_EqualTo_Id_UndirectedEdgeTag_Allocator_std_pair_Id_UndirectedEdgeTag_const_Id_UndirectedEdgeTag map, int resSize)
bool intersects (self, ConstUndirectedEdgeBitSet a)
bool is_subset_of (self, ConstUndirectedEdgeBitSet a)
UndirectedEdgeId nthSetBit (self, int n)
bool test (self, ConstUndirectedEdgeId 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

UndirectedEdgeId 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::UndirectedEdgeBitSet
Aliases:  AABBTreeBase_AABBTreeTraits_UndirectedEdgeTag_Box2f.LeafBitSet, AABBTreeBase_AABBTreeTraits_UndirectedEdgeTag_Box3f.LeafBitSet, ColorMapAggregator_UndirectedEdgeTag_ElementBitSet

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

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

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

creates bitset of given size filled with given value

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

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __and__()

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.__and__ ( self,
ConstUndirectedEdgeBitSet b )

◆ __iter__()

typing.Iterator[UndirectedEdgeId] mrmeshpy.ConstUndirectedEdgeBitSet.__iter__ ( self)

◆ __or__()

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.__or__ ( self,
ConstUndirectedEdgeBitSet b )

◆ __repr__()

str mrmeshpy.ConstUndirectedEdgeBitSet.__repr__ ( self)

◆ __sub__()

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.__sub__ ( self,
ConstUndirectedEdgeBitSet b )

◆ __xor__()

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.__xor__ ( self,
ConstUndirectedEdgeBitSet b )

◆ backId()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.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()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.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()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.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()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.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()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.find_next ( self,
ConstUndirectedEdgeId 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()

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.find_next_not_set ( self,
ConstUndirectedEdgeId 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]

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.getMapping ( self,
ConstUndirectedEdgeBMap map )

◆ getMapping() [4/5]

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.getMapping ( self,
ConstUndirectedEdgeMap map )

◆ getMapping() [5/5]

UndirectedEdgeBitSet mrmeshpy.ConstUndirectedEdgeBitSet.getMapping ( self,
ConstUndirectedEdgeMap map,
int resSize )

◆ intersects()

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

UndirectedEdgeId mrmeshpy.ConstUndirectedEdgeBitSet.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.ConstUndirectedEdgeBitSet.test ( self,
ConstUndirectedEdgeId 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: