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

Public Member Functions

GraphVertBitSet __and__ (self, ConstGraphVertBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[GraphVertId] __iter__ (self)
GraphVertBitSet __or__ (self, ConstGraphVertBitSet b)
str __repr__ (self)
GraphVertBitSet __sub__ (self, ConstGraphVertBitSet b)
GraphVertBitSet __xor__ (self, ConstGraphVertBitSet b)
GraphVertId backId (self)
GraphVertId endId (self)
GraphVertId find_first (self)
GraphVertId find_first_not_set (self)
GraphVertId find_last (self)
GraphVertId find_last_not_set (self)
GraphVertId find_next (self, ConstGraphVertId pos)
GraphVertId find_next_not_set (self, ConstGraphVertId pos)
GraphVertBitSet getMapping (self, ConstVector_GraphVertId_GraphVertId map)
GraphVertBitSet getMapping (self, ConstBMap_GraphVertId_GraphVertId map)
GraphVertBitSet getMapping (self, Const_phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag_phmap_Hash_Id_GraphVertTag_phmap_EqualTo_Id_GraphVertTag_Allocator_std_pair_Id_GraphVertTag_const_Id_GraphVertTag map)
GraphVertBitSet getMapping (self, ConstVector_GraphVertId_GraphVertId map, int resSize)
GraphVertBitSet getMapping (self, Const_phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag_phmap_Hash_Id_GraphVertTag_phmap_EqualTo_Id_GraphVertTag_Allocator_std_pair_Id_GraphVertTag_const_Id_GraphVertTag map, int resSize)
bool intersects (self, ConstGraphVertBitSet a)
bool is_subset_of (self, ConstGraphVertBitSet a)
GraphVertId nthSetBit (self, int n)
bool test (self, ConstGraphVertId 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

GraphVertId 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::GraphVertBitSet
Aliases:  Graph.VertBitSet

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

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

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

creates bitset of given size filled with given value

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

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __and__()

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.__and__ ( self,
ConstGraphVertBitSet b )

◆ __iter__()

typing.Iterator[GraphVertId] mrmeshpy.ConstGraphVertBitSet.__iter__ ( self)

◆ __or__()

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.__or__ ( self,
ConstGraphVertBitSet b )

◆ __repr__()

str mrmeshpy.ConstGraphVertBitSet.__repr__ ( self)

◆ __sub__()

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.__sub__ ( self,
ConstGraphVertBitSet b )

◆ __xor__()

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.__xor__ ( self,
ConstGraphVertBitSet b )

◆ backId()

GraphVertId mrmeshpy.ConstGraphVertBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

GraphVertId mrmeshpy.ConstGraphVertBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

GraphVertId mrmeshpy.ConstGraphVertBitSet.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()

GraphVertId mrmeshpy.ConstGraphVertBitSet.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()

GraphVertId mrmeshpy.ConstGraphVertBitSet.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()

GraphVertId mrmeshpy.ConstGraphVertBitSet.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()

GraphVertId mrmeshpy.ConstGraphVertBitSet.find_next ( self,
ConstGraphVertId 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()

GraphVertId mrmeshpy.ConstGraphVertBitSet.find_next_not_set ( self,
ConstGraphVertId 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]

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.getMapping ( self,
ConstBMap_GraphVertId_GraphVertId map )

◆ getMapping() [4/5]

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.getMapping ( self,
ConstVector_GraphVertId_GraphVertId map )

◆ getMapping() [5/5]

GraphVertBitSet mrmeshpy.ConstGraphVertBitSet.getMapping ( self,
ConstVector_GraphVertId_GraphVertId map,
int resSize )

◆ intersects()

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

GraphVertId mrmeshpy.ConstGraphVertBitSet.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.ConstGraphVertBitSet.test ( self,
ConstGraphVertId 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: