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

Public Member Functions

GraphVertBitSet __and__ (self, GraphVertBitSet b)
 
GraphVertBitSet __iand__ (self, GraphVertBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, GraphVertBitSet arg0)
 
GraphVertBitSet __ior__ (self, GraphVertBitSet b)
 
GraphVertBitSet __isub__ (self, GraphVertBitSet b)
 
typing.Iterator[GraphVertId__iter__ (self)
 
GraphVertBitSet __ixor__ (self, GraphVertBitSet b)
 
GraphVertBitSet __or__ (self, GraphVertBitSet b)
 
str __repr__ (self)
 
GraphVertBitSet __sub__ (self, GraphVertBitSet b)
 
GraphVertBitSet __xor__ (self, GraphVertBitSet b)
 
None autoResizeSet (self, GraphVertId pos, int len, bool val=True)
 
None autoResizeSet (self, GraphVertId pos, bool val=True)
 
bool autoResizeTestSet (self, GraphVertId pos, bool val=True)
 
GraphVertId backId (self)
 
GraphVertId endId (self)
 
GraphVertId find_first (self)
 
GraphVertId find_last (self)
 
GraphVertId find_next (self, GraphVertId pos)
 
GraphVertBitSet flip (self, GraphVertId n, int len)
 
GraphVertBitSet flip (self, GraphVertId n)
 
GraphVertBitSet flip (self)
 
GraphVertBitSet getMapping (self, Vector_GraphVertId_GraphVertId map)
 
GraphVertBitSet getMapping (self, BMap_GraphVertId_GraphVertId map)
 
GraphVertBitSet getMapping (self, phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag map)
 
GraphVertBitSet getMapping (self, Vector_GraphVertId_GraphVertId map, int resSize)
 
GraphVertBitSet getMapping (self, phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag map, int resSize)
 
bool intersects (self, GraphVertBitSet a)
 
bool is_proper_subset_of (self, GraphVertBitSet a)
 
bool is_subset_of (self, GraphVertBitSet a)
 
GraphVertId nthSetBit (self, int n)
 
bool operator (self, GraphVertId pos)
 
GraphVertBitSet reset (self, GraphVertId n, int len)
 
GraphVertBitSet reset (self, GraphVertId n)
 
GraphVertBitSet reset (self)
 
GraphVertBitSet set (self, GraphVertId n, int len, bool val)
 
GraphVertBitSet set (self, GraphVertId n, bool val=True)
 
GraphVertBitSet set (self)
 
GraphVertBitSet subtract (self, GraphVertBitSet b, int bShiftInBlocks)
 
bool test (self, GraphVertId n)
 
bool test_set (self, GraphVertId n, bool val=True)
 
- Public Member Functions inherited from mrmeshpy.BitSet
bool __eq__ (self, BitSet b)
 
None clear (self)
 
int count (self)
 
int heapBytes (self)
 
None pop_back (self)
 
None push_back (self, bool bit)
 
None resize (self, int num_bits, bool value=False)
 
None resizeWithReserve (self, int newSize)
 
int size (self)
 

Static Public Member Functions

GraphVertId beginId ()
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::GraphVertBitSet
Aliases:  Graph.VertBitSet

container of bits representing specific indices (faces, verts or edges)

Constructor & Destructor Documentation

◆ __init__() [1/4]

None mrmeshpy.GraphVertBitSet.__init__ ( self,
BitSet src )
copies all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [2/4]

None mrmeshpy.GraphVertBitSet.__init__ ( self,
BitSet src )
moves all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [3/4]

None mrmeshpy.GraphVertBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [4/4]

None mrmeshpy.GraphVertBitSet.__init__ ( self,
GraphVertBitSet arg0 )
Implicit copy constructor.

Reimplemented from mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __iand__()

GraphVertBitSet mrmeshpy.GraphVertBitSet.__iand__ ( self,
GraphVertBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __ior__()

GraphVertBitSet mrmeshpy.GraphVertBitSet.__ior__ ( self,
GraphVertBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __isub__()

GraphVertBitSet mrmeshpy.GraphVertBitSet.__isub__ ( self,
GraphVertBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __iter__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __ixor__()

GraphVertBitSet mrmeshpy.GraphVertBitSet.__ixor__ ( self,
GraphVertBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __or__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __repr__()

str mrmeshpy.GraphVertBitSet.__repr__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __sub__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __xor__()

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

Reimplemented from mrmeshpy.BitSet.

◆ _pybind11_conduit_v1_()

mrmeshpy.GraphVertBitSet._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

None mrmeshpy.GraphVertBitSet.autoResizeSet ( self,
GraphVertId pos,
bool len = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None mrmeshpy.GraphVertBitSet.autoResizeSet ( self,
GraphVertId pos,
int len,
bool val = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeTestSet()

bool mrmeshpy.GraphVertBitSet.autoResizeTestSet ( self,
GraphVertId pos,
bool val = True )
same as \\ref autoResizeSet and returns previous value of pos-bit

Reimplemented from mrmeshpy.BitSet.

◆ backId()

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

Reimplemented from mrmeshpy.BitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.BitSet.

◆ endId()

GraphVertId mrmeshpy.GraphVertBitSet.endId ( self)

Reimplemented from mrmeshpy.BitSet.

◆ find_first()

GraphVertId mrmeshpy.GraphVertBitSet.find_first ( self)

◆ find_last()

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

Reimplemented from mrmeshpy.BitSet.

◆ find_next()

GraphVertId mrmeshpy.GraphVertBitSet.find_next ( self,
GraphVertId pos )

◆ flip() [1/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.flip ( self)

Reimplemented from mrmeshpy.BitSet.

◆ flip() [2/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.flip ( self,
GraphVertId n )

Reimplemented from mrmeshpy.BitSet.

◆ flip() [3/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.flip ( self,
GraphVertId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ getMapping() [1/5]

GraphVertBitSet mrmeshpy.GraphVertBitSet.getMapping ( self,
BMap_GraphVertId_GraphVertId map )

◆ getMapping() [2/5]

GraphVertBitSet mrmeshpy.GraphVertBitSet.getMapping ( self,
phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag map )

◆ getMapping() [3/5]

GraphVertBitSet mrmeshpy.GraphVertBitSet.getMapping ( self,
phmap_flat_hash_map_Id_GraphVertTag_Id_GraphVertTag map,
int resSize )

◆ getMapping() [4/5]

GraphVertBitSet mrmeshpy.GraphVertBitSet.getMapping ( self,
Vector_GraphVertId_GraphVertId map )

◆ getMapping() [5/5]

GraphVertBitSet mrmeshpy.GraphVertBitSet.getMapping ( self,
Vector_GraphVertId_GraphVertId map,
int resSize )

◆ intersects()

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

◆ is_proper_subset_of()

bool mrmeshpy.GraphVertBitSet.is_proper_subset_of ( self,
GraphVertBitSet a )
returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set and if this->count() < a.count(). Otherwise this function returns false.

◆ is_subset_of()

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

◆ nthSetBit()

GraphVertId mrmeshpy.GraphVertBitSet.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.BitSet.

◆ operator()

bool mrmeshpy.GraphVertBitSet.operator ( self,
GraphVertId pos )

◆ reset() [1/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.reset ( self)

Reimplemented from mrmeshpy.BitSet.

◆ reset() [2/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.reset ( self,
GraphVertId n )

Reimplemented from mrmeshpy.BitSet.

◆ reset() [3/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.reset ( self,
GraphVertId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ set() [1/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.set ( self)

Reimplemented from mrmeshpy.BitSet.

◆ set() [2/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.set ( self,
GraphVertId n,
bool val = True )

Reimplemented from mrmeshpy.BitSet.

◆ set() [3/3]

GraphVertBitSet mrmeshpy.GraphVertBitSet.set ( self,
GraphVertId n,
int len,
bool val )

Reimplemented from mrmeshpy.BitSet.

◆ subtract()

GraphVertBitSet mrmeshpy.GraphVertBitSet.subtract ( self,
GraphVertBitSet b,
int bShiftInBlocks )
subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block

Reimplemented from mrmeshpy.BitSet.

◆ test()

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

Reimplemented from mrmeshpy.BitSet.

◆ test_set()

bool mrmeshpy.GraphVertBitSet.test_set ( self,
GraphVertId n,
bool val = True )

Reimplemented from mrmeshpy.BitSet.


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