Public Member Functions | |
| BitSet (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| BitSet () | |
| BitSet (meshlib.BitSet _other) | |
| BitSet (long numBits, java.lang.Boolean fillValue) | |
| meshlib.BitSet | assignFromAnother (meshlib.BitSet _other) |
| void | reserve (long numBits) |
| void | resize (long numBits, java.lang.Boolean fillValue) |
| void | clear () |
| void | shrink_to_fit () |
| boolean | empty () |
| long | size () |
| long | num_blocks () |
| long | capacity () |
| boolean | uncheckedTest (long n) |
| boolean | uncheckedTestSet (long n, java.lang.Boolean val) |
| boolean | test (long n) |
| boolean | test_set (long n, java.lang.Boolean val) |
| meshlib.BitSet | set (long n, long len, boolean val) |
| meshlib.BitSet | set (long n, boolean val) |
| meshlib.BitSet | set (long n) |
| meshlib.BitSet | set () |
| boolean | atomicTestSet (long n) |
| meshlib.BitSet | reset (long n, long len) |
| meshlib.BitSet | reset (long n) |
| meshlib.BitSet | reset () |
| meshlib.BitSet | flip (long n, long len) |
| meshlib.BitSet | flip (long n) |
| meshlib.BitSet | flip () |
| void | reverse () |
| void | push_back (boolean val) |
| void | pop_back () |
| meshlib.std_vector_uint64_t_MR_Allocator_uint64_t | bits () |
| meshlib.BitSet | bitand_assign (meshlib.BitSet b) |
| meshlib.BitSet | bitor_assign (meshlib.BitSet b) |
| meshlib.BitSet | xor_assign (meshlib.BitSet b) |
| meshlib.BitSet | sub_assign (meshlib.BitSet b) |
| meshlib.BitSet | subtract (meshlib.BitSet b, int bShiftInBlocks) |
| boolean | all () |
| boolean | any () |
| boolean | none () |
| long | count () |
| meshlib.BitSet_Counts | countBitsAndBlocks (java.lang.Long maxBits) |
| long | find_first () |
| long | find_next (long n) |
| long | find_last () |
| long | find_first_not_set () |
| long | find_next_not_set (long n) |
| long | find_last_not_set () |
| long | nthSetBit (long n) |
| boolean | is_subset_of (meshlib.BitSet a) |
| boolean | intersects (meshlib.BitSet a) |
| void | resizeWithReserve (long newSize) |
| void | autoResizeSet (long pos, long len, java.lang.Boolean val) |
| void | autoResizeSet (long pos, java.lang.Boolean val) |
| boolean | autoResizeTestSet (long pos, java.lang.Boolean val) |
| long | heapBytes () |
| long | backId () |
| long | endId () |
| Public Member Functions inherited from meshlib.CppObject | |
| final java.lang.foreign.MemorySegment | rawPointer () |
| final boolean | isOwned () |
| final void | close () |
| final java.lang.foreign.MemorySegment | release () |
Static Public Member Functions | |
| static meshlib.BitSet | fromBlocks (meshlib.std_vector_uint64_t_MR_Allocator_uint64_t blocks) |
| static long | beginId () |
| static long | bits_per_block () |
| static long | npos () |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
std::vector<bool> like container (random-access, size_t - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::BitSet. Derived classes: Direct: (non-virtual) MR::EdgeBitSet MR::FaceBitSet MR::GraphEdgeBitSet MR::GraphVertBitSet MR::NodeBitSet MR::ObjBitSet MR::PixelBitSet MR::RegionBitSet MR::TextureBitSet MR::TypedBitSet<MR::Id<MR::ICPElemtTag>> MR::TypedBitSet<MR::Id<MR::SurfaceDistanceStartTag>> MR::UndirectedEdgeBitSet MR::VertBitSet MR::VoxelBitSet
Instances created here own their C++ objects, see CppObject.
| meshlib.BitSet.BitSet | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.BitSet.BitSet | ( | ) |
creates empty bitset
Calls MR_BitSet_DefaultConstruct().
| meshlib.BitSet.BitSet | ( | meshlib.BitSet | _other | ) |
Generated from constructor MR::BitSet::BitSet. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_BitSet_ConstructFromAnother().
| meshlib.BitSet.BitSet | ( | long | numBits, |
| java.lang.Boolean | fillValue ) |
creates bitset of given size filled with given value Generated from constructor MR::BitSet::BitSet. The reference to the parameter numBits might be preserved in the constructed object.
Calls MR_BitSet_Construct().
| boolean meshlib.BitSet.all | ( | ) |
returns true if all bits in this container are set Generated from method MR::BitSet::all.
Calls MR_BitSet_all().
| boolean meshlib.BitSet.any | ( | ) |
returns true if at least one bits in this container is set Generated from method MR::BitSet::any.
Calls MR_BitSet_any().
| meshlib.BitSet meshlib.BitSet.assignFromAnother | ( | meshlib.BitSet | _other | ) |
Generated from method MR::BitSet::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_BitSet_AssignFromAnother().
| boolean meshlib.BitSet.atomicTestSet | ( | long | n | ) |
sets n-th bit and returns its previous value; it is safe to call simultaneously from several threads for any bits of the same bitset, provided no other modification of the bitset (including resizing) is performed in parallel Generated from method MR::BitSet::atomicTestSet.
Calls MR_BitSet_atomicTestSet().
| void meshlib.BitSet.autoResizeSet | ( | long | pos, |
| java.lang.Boolean | val ) |
Generated from method MR::BitSet::autoResizeSet.
Calls MR_BitSet_autoResizeSet().
| void meshlib.BitSet.autoResizeSet | ( | long | pos, |
| long | len, | ||
| java.lang.Boolean | val ) |
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements Generated from method MR::BitSet::autoResizeSet.
Calls MR_BitSet_autoResizeSet_range().
| boolean meshlib.BitSet.autoResizeTestSet | ( | long | pos, |
| java.lang.Boolean | val ) |
same as autoResizeSet and returns previous value of pos-bit Generated from method MR::BitSet::autoResizeTestSet.
Calls MR_BitSet_autoResizeTestSet().
| long meshlib.BitSet.backId | ( | ) |
returns the identifier of the back() element Generated from method MR::BitSet::backId.
Calls MR_BitSet_backId().
|
static |
| meshlib.BitSet meshlib.BitSet.bitand_assign | ( | meshlib.BitSet | b | ) |
Generated from method MR::BitSet::operator&=. The reference to this object might be preserved in the return value.
Calls MR_BitSet_bitand_assign().
| meshlib.BitSet meshlib.BitSet.bitor_assign | ( | meshlib.BitSet | b | ) |
Generated from method MR::BitSet::operator|=. The reference to this object might be preserved in the return value.
Calls MR_BitSet_bitor_assign().
| meshlib.std_vector_uint64_t_MR_Allocator_uint64_t meshlib.BitSet.bits | ( | ) |
read-only access to all bits stored as a vector of uint64 blocks Generated from method MR::BitSet::bits.
Calls MR_BitSet_bits().
|
static |
Returns a pointer to a member variable of class MR::BitSet named bits_per_block.
Calls MR_BitSet_Get_bits_per_block().
| long meshlib.BitSet.capacity | ( | ) |
Generated from method MR::BitSet::capacity.
Calls MR_BitSet_capacity().
| void meshlib.BitSet.clear | ( | ) |
Generated from method MR::BitSet::clear.
Calls MR_BitSet_clear().
| long meshlib.BitSet.count | ( | ) |
computes the number of set bits in the whole set Generated from method MR::BitSet::count.
Calls MR_BitSet_count().
| meshlib.BitSet_Counts meshlib.BitSet.countBitsAndBlocks | ( | java.lang.Long | maxBits | ) |
computes the numbers of set bits and of non-empty blocks, stopping as soon as the set bits exceed maxBits; both numbers are then partial, which makes a size test of a large set cheap Generated from method MR::BitSet::countBitsAndBlocks.
Calls MR_BitSet_countBitsAndBlocks().
| boolean meshlib.BitSet.empty | ( | ) |
Generated from method MR::BitSet::empty.
Calls MR_BitSet_empty().
| long meshlib.BitSet.endId | ( | ) |
Generated from method MR::BitSet::endId.
Calls MR_BitSet_endId().
| long meshlib.BitSet.find_first | ( | ) |
return the smallest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_first.
Calls MR_BitSet_find_first().
| long meshlib.BitSet.find_first_not_set | ( | ) |
return the smallest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_first_not_set.
Calls MR_BitSet_find_first_not_set().
| long meshlib.BitSet.find_last | ( | ) |
return the highest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_last.
Calls MR_BitSet_find_last().
| long meshlib.BitSet.find_last_not_set | ( | ) |
return the highest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_last_not_set.
Calls MR_BitSet_find_last_not_set().
| long meshlib.BitSet.find_next | ( | long | n | ) |
return the smallest index i>n such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_next.
Calls MR_BitSet_find_next().
| long meshlib.BitSet.find_next_not_set | ( | long | n | ) |
return the smallest index i>n such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_next_not_set.
Calls MR_BitSet_find_next_not_set().
| meshlib.BitSet meshlib.BitSet.flip | ( | ) |
Generated from method MR::BitSet::flip.
Calls MR_BitSet_flip_0().
| meshlib.BitSet meshlib.BitSet.flip | ( | long | n | ) |
Generated from method MR::BitSet::flip.
Calls MR_BitSet_flip_1().
| meshlib.BitSet meshlib.BitSet.flip | ( | long | n, |
| long | len ) |
Generated from method MR::BitSet::flip.
Calls MR_BitSet_flip_2().
|
static |
creates bitset from the given blocks of bits Generated from method MR::BitSet::fromBlocks.
Calls MR_BitSet_fromBlocks().
| long meshlib.BitSet.heapBytes | ( | ) |
returns the amount of memory this object occupies on heap Generated from method MR::BitSet::heapBytes.
Calls MR_BitSet_heapBytes().
| boolean meshlib.BitSet.intersects | ( | meshlib.BitSet | 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. Generated from method MR::BitSet::intersects.
Calls MR_BitSet_intersects().
| boolean meshlib.BitSet.is_subset_of | ( | meshlib.BitSet | 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. Generated from method MR::BitSet::is_subset_of.
Calls MR_BitSet_is_subset_of().
| boolean meshlib.BitSet.none | ( | ) |
returns true if all bits in this container are reset Generated from method MR::BitSet::none.
Calls MR_BitSet_none().
|
static |
Returns a pointer to a member variable of class MR::BitSet named npos.
Calls MR_BitSet_Get_npos().
| long meshlib.BitSet.nthSetBit | ( | long | n | ) |
returns the location of nth set bit (where the first bit corresponds to n=0) or npos if there are less bit set Generated from method MR::BitSet::nthSetBit.
Calls MR_BitSet_nthSetBit().
| long meshlib.BitSet.num_blocks | ( | ) |
Generated from method MR::BitSet::num_blocks.
Calls MR_BitSet_num_blocks().
| void meshlib.BitSet.pop_back | ( | ) |
removes last bit from the container, decreasing its size on 1 Generated from method MR::BitSet::pop_back.
Calls MR_BitSet_pop_back().
| void meshlib.BitSet.push_back | ( | boolean | val | ) |
adds one more bit with the given value in the container, increasing its size on 1 Generated from method MR::BitSet::push_back.
Calls MR_BitSet_push_back().
| void meshlib.BitSet.reserve | ( | long | numBits | ) |
Generated from method MR::BitSet::reserve.
Calls MR_BitSet_reserve().
| meshlib.BitSet meshlib.BitSet.reset | ( | ) |
Generated from method MR::BitSet::reset.
Calls MR_BitSet_reset_0().
| meshlib.BitSet meshlib.BitSet.reset | ( | long | n | ) |
Generated from method MR::BitSet::reset.
Calls MR_BitSet_reset_1().
| meshlib.BitSet meshlib.BitSet.reset | ( | long | n, |
| long | len ) |
Generated from method MR::BitSet::reset.
Calls MR_BitSet_reset_2().
| void meshlib.BitSet.resize | ( | long | numBits, |
| java.lang.Boolean | fillValue ) |
Generated from method MR::BitSet::resize.
Calls MR_BitSet_resize().
| void meshlib.BitSet.resizeWithReserve | ( | long | newSize | ) |
same as resize(newSize), which already grows the capacity geometrically Generated from method MR::BitSet::resizeWithReserve.
Calls MR_BitSet_resizeWithReserve().
| void meshlib.BitSet.reverse | ( | ) |
changes the order of bits on the opposite Generated from method MR::BitSet::reverse.
Calls MR_BitSet_reverse().
| meshlib.BitSet meshlib.BitSet.set | ( | ) |
Generated from method MR::BitSet::set.
Calls MR_BitSet_set_all().
| meshlib.BitSet meshlib.BitSet.set | ( | long | n | ) |
Generated from method MR::BitSet::set.
Calls MR_BitSet_set_bit().
| meshlib.BitSet meshlib.BitSet.set | ( | long | n, |
| boolean | val ) |
Generated from method MR::BitSet::set.
Calls MR_BitSet_set().
| meshlib.BitSet meshlib.BitSet.set | ( | long | n, |
| long | len, | ||
| boolean | val ) |
Generated from method MR::BitSet::set.
Calls MR_BitSet_set_range().
| void meshlib.BitSet.shrink_to_fit | ( | ) |
Generated from method MR::BitSet::shrink_to_fit.
Calls MR_BitSet_shrink_to_fit().
| long meshlib.BitSet.size | ( | ) |
Generated from method MR::BitSet::size.
Calls MR_BitSet_size().
| meshlib.BitSet meshlib.BitSet.sub_assign | ( | meshlib.BitSet | b | ) |
Generated from method MR::BitSet::operator-=. The reference to this object might be preserved in the return value.
Calls MR_BitSet_sub_assign().
| meshlib.BitSet meshlib.BitSet.subtract | ( | meshlib.BitSet | b, |
| int | bShiftInBlocks ) |
subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block Generated from method MR::BitSet::subtract.
Calls MR_BitSet_subtract().
| boolean meshlib.BitSet.test | ( | long | n | ) |
all bits after size() we silently consider as not-set Generated from method MR::BitSet::test.
Calls MR_BitSet_test().
| boolean meshlib.BitSet.test_set | ( | long | n, |
| java.lang.Boolean | val ) |
Generated from method MR::BitSet::test_set.
Calls MR_BitSet_test_set().
| boolean meshlib.BitSet.uncheckedTest | ( | long | n | ) |
Generated from method MR::BitSet::uncheckedTest.
Calls MR_BitSet_uncheckedTest().
| boolean meshlib.BitSet.uncheckedTestSet | ( | long | n, |
| java.lang.Boolean | val ) |
Generated from method MR::BitSet::uncheckedTestSet.
Calls MR_BitSet_uncheckedTestSet().
| meshlib.BitSet meshlib.BitSet.xor_assign | ( | meshlib.BitSet | b | ) |
Generated from method MR::BitSet::operator^=. The reference to this object might be preserved in the return value.
Calls MR_BitSet_xor_assign().