MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.VoxelBitSet:

Public Member Functions

 VoxelBitSet (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VoxelBitSet ()
 VoxelBitSet (meshlib.VoxelBitSet _other)
 VoxelBitSet (long numBits, java.lang.Boolean fillValue)
meshlib.VoxelBitSet assignFromAnother (meshlib.VoxelBitSet _other)
meshlib.VoxelBitSet set (meshlib.VoxelId n, long len, boolean val)
meshlib.VoxelBitSet set (meshlib.VoxelId n, boolean val)
meshlib.VoxelBitSet set (meshlib.VoxelId n)
meshlib.VoxelBitSet set ()
boolean atomicTestSet (meshlib.VoxelId n)
meshlib.VoxelBitSet reset (meshlib.VoxelId n, long len)
meshlib.VoxelBitSet reset (meshlib.VoxelId n)
meshlib.VoxelBitSet reset ()
meshlib.VoxelBitSet flip (meshlib.VoxelId n, long len)
meshlib.VoxelBitSet flip (meshlib.VoxelId n)
meshlib.VoxelBitSet flip ()
boolean test (meshlib.VoxelId n)
boolean test_set (meshlib.VoxelId n, java.lang.Boolean val)
meshlib.VoxelId find_first ()
meshlib.VoxelId find_next (meshlib.VoxelId pos)
meshlib.VoxelId find_last ()
meshlib.VoxelId find_first_not_set ()
meshlib.VoxelId find_next_not_set (meshlib.VoxelId pos)
meshlib.VoxelId find_last_not_set ()
meshlib.VoxelId nthSetBit (long n)
meshlib.VoxelBitSet bitand_assign (meshlib.VoxelBitSet b)
meshlib.VoxelBitSet bitor_assign (meshlib.VoxelBitSet b)
meshlib.VoxelBitSet xor_assign (meshlib.VoxelBitSet b)
meshlib.VoxelBitSet sub_assign (meshlib.VoxelBitSet b)
meshlib.VoxelBitSet subtract (meshlib.VoxelBitSet b, int bShiftInBlocks)
boolean is_subset_of (meshlib.VoxelBitSet a)
boolean intersects (meshlib.VoxelBitSet a)
void autoResizeSet (meshlib.VoxelId pos, long len, java.lang.Boolean val)
void autoResizeSet (meshlib.VoxelId pos, java.lang.Boolean val)
boolean autoResizeTestSet (meshlib.VoxelId pos, java.lang.Boolean val)
meshlib.VoxelBitSet getMapping (meshlib.Vector_MR_VoxelId_MR_VoxelId map)
meshlib.VoxelBitSet getMapping (meshlib.BMap_MR_VoxelId_MR_VoxelId map)
meshlib.VoxelBitSet getMapping (meshlib.phmap.phmap_flat_hash_map_MR_VoxelId_MR_VoxelId_phmap_Hash_MR_VoxelId_phmap_EqualTo_MR_VoxelId_MR_Allocato__60b8285b map)
meshlib.VoxelBitSet getMapping (meshlib.Vector_MR_VoxelId_MR_VoxelId map, long resSize)
meshlib.VoxelBitSet getMapping (meshlib.phmap.phmap_flat_hash_map_MR_VoxelId_MR_VoxelId_phmap_Hash_MR_VoxelId_phmap_EqualTo_MR_VoxelId_MR_Allocato__60b8285b map, long resSize)
meshlib.VoxelId backId ()
meshlib.VoxelId endId ()
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)
void reverse ()
void push_back (boolean val)
void pop_back ()
meshlib.std_vector_uint64_t_MR_Allocator_uint64_t bits ()
boolean all ()
boolean any ()
boolean none ()
long count ()
meshlib.BitSet_Counts countBitsAndBlocks (java.lang.Long maxBits)
void resizeWithReserve (long newSize)
long heapBytes ()
meshlib.BitSet upcastToBitSet ()
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.VoxelBitSet construct_1_const_MR_BitSet_ref (meshlib.BitSet src)
static meshlib.VoxelBitSet construct_1_MR_BitSet_rvalue_ref (meshlib.BitSet src)
static meshlib.VoxelId beginId ()
static meshlib.BitSet fromBlocks (meshlib.std_vector_uint64_t_MR_Allocator_uint64_t blocks)
static long bits_per_block ()
static long npos ()
static meshlib.VoxelBitSet staticDowncastFromBitSet (meshlib.BitSet object)

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)

Detailed Description

Vector<bool, I> like container (random-access, I - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::VoxelBitSet. Base classes: Direct: (non-virtual) MR::BitSet

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ VoxelBitSet() [1/4]

meshlib.VoxelBitSet.VoxelBitSet ( 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.

◆ VoxelBitSet() [2/4]

meshlib.VoxelBitSet.VoxelBitSet ( )

Constructs an empty (default-constructed) instance.

Calls MR_VoxelBitSet_DefaultConstruct().

◆ VoxelBitSet() [3/4]

meshlib.VoxelBitSet.VoxelBitSet ( meshlib.VoxelBitSet _other)

Generated from constructor MR::VoxelBitSet::VoxelBitSet. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_VoxelBitSet_ConstructFromAnother().

◆ VoxelBitSet() [4/4]

meshlib.VoxelBitSet.VoxelBitSet ( long numBits,
java.lang.Boolean fillValue )

creates bitset of given size filled with given value Generated from constructor MR::VoxelBitSet::VoxelBitSet. The reference to the parameter numBits might be preserved in the constructed object.

Calls MR_VoxelBitSet_Construct_2().

Member Function Documentation

◆ all()

boolean meshlib.VoxelBitSet.all ( )

returns true if all bits in this container are set Generated from method MR::VoxelBitSet::all.

Calls MR_VoxelBitSet_all().

◆ any()

boolean meshlib.VoxelBitSet.any ( )

returns true if at least one bits in this container is set Generated from method MR::VoxelBitSet::any.

Calls MR_VoxelBitSet_any().

◆ assignFromAnother()

meshlib.VoxelBitSet meshlib.VoxelBitSet.assignFromAnother ( meshlib.VoxelBitSet _other)

Generated from method MR::VoxelBitSet::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_VoxelBitSet_AssignFromAnother().

◆ atomicTestSet()

boolean meshlib.VoxelBitSet.atomicTestSet ( meshlib.VoxelId n)

Generated from method MR::VoxelBitSet::atomicTestSet.

Calls MR_VoxelBitSet_atomicTestSet().

◆ autoResizeSet() [1/2]

void meshlib.VoxelBitSet.autoResizeSet ( meshlib.VoxelId pos,
java.lang.Boolean val )

Generated from method MR::VoxelBitSet::autoResizeSet.

Calls MR_VoxelBitSet_autoResizeSet().

◆ autoResizeSet() [2/2]

void meshlib.VoxelBitSet.autoResizeSet ( meshlib.VoxelId pos,
long len,
java.lang.Boolean val )

Generated from method MR::VoxelBitSet::autoResizeSet.

Calls MR_VoxelBitSet_autoResizeSet_range().

◆ autoResizeTestSet()

boolean meshlib.VoxelBitSet.autoResizeTestSet ( meshlib.VoxelId pos,
java.lang.Boolean val )

Generated from method MR::VoxelBitSet::autoResizeTestSet.

Calls MR_VoxelBitSet_autoResizeTestSet().

◆ backId()

meshlib.VoxelId meshlib.VoxelBitSet.backId ( )

returns the identifier of the back() element Generated from method MR::VoxelBitSet::backId.

Calls MR_VoxelBitSet_backId().

◆ beginId()

meshlib.VoxelId meshlib.VoxelBitSet.beginId ( )
static

[beginId(), endId()) is the range of all bits in the set Generated from method MR::VoxelBitSet::beginId.

Calls MR_VoxelBitSet_beginId().

◆ bitand_assign()

meshlib.VoxelBitSet meshlib.VoxelBitSet.bitand_assign ( meshlib.VoxelBitSet b)

Generated from method MR::VoxelBitSet::operator&=. The reference to this object might be preserved in the return value.

Calls MR_VoxelBitSet_bitand_assign().

◆ bitor_assign()

meshlib.VoxelBitSet meshlib.VoxelBitSet.bitor_assign ( meshlib.VoxelBitSet b)

Generated from method MR::VoxelBitSet::operator|=. The reference to this object might be preserved in the return value.

Calls MR_VoxelBitSet_bitor_assign().

◆ bits()

read-only access to all bits stored as a vector of uint64 blocks Generated from method MR::VoxelBitSet::bits.

Calls MR_VoxelBitSet_bits().

◆ bits_per_block()

long meshlib.VoxelBitSet.bits_per_block ( )
static

Returns a pointer to a member variable of class MR::VoxelBitSet named bits_per_block.

Calls MR_VoxelBitSet_Get_bits_per_block().

◆ capacity()

long meshlib.VoxelBitSet.capacity ( )

Generated from method MR::VoxelBitSet::capacity.

Calls MR_VoxelBitSet_capacity().

◆ clear()

void meshlib.VoxelBitSet.clear ( )

Generated from method MR::VoxelBitSet::clear.

Calls MR_VoxelBitSet_clear().

◆ construct_1_const_MR_BitSet_ref()

meshlib.VoxelBitSet meshlib.VoxelBitSet.construct_1_const_MR_BitSet_ref ( meshlib.BitSet src)
static

copies all bits from another BitSet (or a descending class, e.g. TypedBitSet<U>) Generated from constructor MR::VoxelBitSet::VoxelBitSet. The reference to the parameter src might be preserved in the constructed object.

Calls MR_VoxelBitSet_Construct_1_const_MR_BitSet_ref().

◆ construct_1_MR_BitSet_rvalue_ref()

meshlib.VoxelBitSet meshlib.VoxelBitSet.construct_1_MR_BitSet_rvalue_ref ( meshlib.BitSet src)
static

moves all bits from another BitSet (or a descending class, e.g. TypedBitSet<U>) Generated from constructor MR::VoxelBitSet::VoxelBitSet. The reference to the parameter src might be preserved in the constructed object.

Calls MR_VoxelBitSet_Construct_1_MR_BitSet_rvalue_ref().

◆ count()

long meshlib.VoxelBitSet.count ( )

computes the number of set bits in the whole set Generated from method MR::VoxelBitSet::count.

Calls MR_VoxelBitSet_count().

◆ countBitsAndBlocks()

meshlib.BitSet_Counts meshlib.VoxelBitSet.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::VoxelBitSet::countBitsAndBlocks.

Calls MR_VoxelBitSet_countBitsAndBlocks().

◆ empty()

boolean meshlib.VoxelBitSet.empty ( )

Generated from method MR::VoxelBitSet::empty.

Calls MR_VoxelBitSet_empty().

◆ endId()

meshlib.VoxelId meshlib.VoxelBitSet.endId ( )

Generated from method MR::VoxelBitSet::endId.

Calls MR_VoxelBitSet_endId().

◆ find_first()

meshlib.VoxelId meshlib.VoxelBitSet.find_first ( )

Generated from method MR::VoxelBitSet::find_first.

Calls MR_VoxelBitSet_find_first().

◆ find_first_not_set()

meshlib.VoxelId meshlib.VoxelBitSet.find_first_not_set ( )

Generated from method MR::VoxelBitSet::find_first_not_set.

Calls MR_VoxelBitSet_find_first_not_set().

◆ find_last()

meshlib.VoxelId meshlib.VoxelBitSet.find_last ( )

Generated from method MR::VoxelBitSet::find_last.

Calls MR_VoxelBitSet_find_last().

◆ find_last_not_set()

meshlib.VoxelId meshlib.VoxelBitSet.find_last_not_set ( )

Generated from method MR::VoxelBitSet::find_last_not_set.

Calls MR_VoxelBitSet_find_last_not_set().

◆ find_next()

meshlib.VoxelId meshlib.VoxelBitSet.find_next ( meshlib.VoxelId pos)

Generated from method MR::VoxelBitSet::find_next.

Calls MR_VoxelBitSet_find_next().

◆ find_next_not_set()

meshlib.VoxelId meshlib.VoxelBitSet.find_next_not_set ( meshlib.VoxelId pos)

Generated from method MR::VoxelBitSet::find_next_not_set.

Calls MR_VoxelBitSet_find_next_not_set().

◆ flip() [1/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.flip ( )

Generated from method MR::VoxelBitSet::flip.

Calls MR_VoxelBitSet_flip_0().

◆ flip() [2/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.flip ( meshlib.VoxelId n)

Generated from method MR::VoxelBitSet::flip.

Calls MR_VoxelBitSet_flip_1().

◆ flip() [3/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.flip ( meshlib.VoxelId n,
long len )

Generated from method MR::VoxelBitSet::flip.

Calls MR_VoxelBitSet_flip_2().

◆ fromBlocks()

meshlib.BitSet meshlib.VoxelBitSet.fromBlocks ( meshlib.std_vector_uint64_t_MR_Allocator_uint64_t blocks)
static

creates bitset from the given blocks of bits Generated from method MR::VoxelBitSet::fromBlocks.

Calls MR_VoxelBitSet_fromBlocks().

◆ getMapping() [1/5]

meshlib.VoxelBitSet meshlib.VoxelBitSet.getMapping ( meshlib.BMap_MR_VoxelId_MR_VoxelId map)

Generated from method MR::VoxelBitSet::getMapping.

Calls MR_VoxelBitSet_getMapping_1_MR_BMap_MR_VoxelId_MR_VoxelId().

◆ getMapping() [2/5]

Generated from method MR::VoxelBitSet::getMapping.

Calls MR_VoxelBitSet_getMapping_1_phmap_flat_hash_map_MR_VoxelId_MR_VoxelId_phmap_Hash_MR_VoxelId_phmap_EqualTo_MR_VoxelId_MR_Allocator_std_pair_const_MR_VoxelId_MR_VoxelId().

◆ getMapping() [3/5]

Generated from method MR::VoxelBitSet::getMapping.

Calls MR_VoxelBitSet_getMapping_2_phmap_flat_hash_map_MR_VoxelId_MR_VoxelId_phmap_Hash_MR_VoxelId_phmap_EqualTo_MR_VoxelId_MR_Allocator_std_pair_const_MR_VoxelId_MR_VoxelId().

◆ getMapping() [4/5]

meshlib.VoxelBitSet meshlib.VoxelBitSet.getMapping ( meshlib.Vector_MR_VoxelId_MR_VoxelId map)

Generated from method MR::VoxelBitSet::getMapping.

Calls MR_VoxelBitSet_getMapping_1_MR_Vector_MR_VoxelId_MR_VoxelId().

◆ getMapping() [5/5]

meshlib.VoxelBitSet meshlib.VoxelBitSet.getMapping ( meshlib.Vector_MR_VoxelId_MR_VoxelId map,
long resSize )

Generated from method MR::VoxelBitSet::getMapping.

Calls MR_VoxelBitSet_getMapping_2_MR_Vector_MR_VoxelId_MR_VoxelId().

◆ heapBytes()

long meshlib.VoxelBitSet.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::VoxelBitSet::heapBytes.

Calls MR_VoxelBitSet_heapBytes().

◆ intersects()

boolean meshlib.VoxelBitSet.intersects ( meshlib.VoxelBitSet 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::VoxelBitSet::intersects.

Calls MR_VoxelBitSet_intersects().

◆ is_subset_of()

boolean meshlib.VoxelBitSet.is_subset_of ( meshlib.VoxelBitSet 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::VoxelBitSet::is_subset_of.

Calls MR_VoxelBitSet_is_subset_of().

◆ none()

boolean meshlib.VoxelBitSet.none ( )

returns true if all bits in this container are reset Generated from method MR::VoxelBitSet::none.

Calls MR_VoxelBitSet_none().

◆ npos()

long meshlib.VoxelBitSet.npos ( )
static

Returns a pointer to a member variable of class MR::VoxelBitSet named npos.

Calls MR_VoxelBitSet_Get_npos().

◆ nthSetBit()

meshlib.VoxelId meshlib.VoxelBitSet.nthSetBit ( long 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 Generated from method MR::VoxelBitSet::nthSetBit.

Calls MR_VoxelBitSet_nthSetBit().

◆ num_blocks()

long meshlib.VoxelBitSet.num_blocks ( )

Generated from method MR::VoxelBitSet::num_blocks.

Calls MR_VoxelBitSet_num_blocks().

◆ pop_back()

void meshlib.VoxelBitSet.pop_back ( )

removes last bit from the container, decreasing its size on 1 Generated from method MR::VoxelBitSet::pop_back.

Calls MR_VoxelBitSet_pop_back().

◆ push_back()

void meshlib.VoxelBitSet.push_back ( boolean val)

adds one more bit with the given value in the container, increasing its size on 1 Generated from method MR::VoxelBitSet::push_back.

Calls MR_VoxelBitSet_push_back().

◆ reserve()

void meshlib.VoxelBitSet.reserve ( long numBits)

Generated from method MR::VoxelBitSet::reserve.

Calls MR_VoxelBitSet_reserve().

◆ reset() [1/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.reset ( )

Generated from method MR::VoxelBitSet::reset.

Calls MR_VoxelBitSet_reset_0().

◆ reset() [2/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.reset ( meshlib.VoxelId n)

Generated from method MR::VoxelBitSet::reset.

Calls MR_VoxelBitSet_reset_1().

◆ reset() [3/3]

meshlib.VoxelBitSet meshlib.VoxelBitSet.reset ( meshlib.VoxelId n,
long len )

Generated from method MR::VoxelBitSet::reset.

Calls MR_VoxelBitSet_reset_2().

◆ resize()

void meshlib.VoxelBitSet.resize ( long numBits,
java.lang.Boolean fillValue )

Generated from method MR::VoxelBitSet::resize.

Calls MR_VoxelBitSet_resize().

◆ resizeWithReserve()

void meshlib.VoxelBitSet.resizeWithReserve ( long newSize)

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::VoxelBitSet::resizeWithReserve.

Calls MR_VoxelBitSet_resizeWithReserve().

◆ reverse()

void meshlib.VoxelBitSet.reverse ( )

changes the order of bits on the opposite Generated from method MR::VoxelBitSet::reverse.

Calls MR_VoxelBitSet_reverse().

◆ set() [1/4]

meshlib.VoxelBitSet meshlib.VoxelBitSet.set ( )

Generated from method MR::VoxelBitSet::set.

Calls MR_VoxelBitSet_set_all().

◆ set() [2/4]

meshlib.VoxelBitSet meshlib.VoxelBitSet.set ( meshlib.VoxelId n)

Generated from method MR::VoxelBitSet::set.

Calls MR_VoxelBitSet_set_bit().

◆ set() [3/4]

meshlib.VoxelBitSet meshlib.VoxelBitSet.set ( meshlib.VoxelId n,
boolean val )

Generated from method MR::VoxelBitSet::set.

Calls MR_VoxelBitSet_set().

◆ set() [4/4]

meshlib.VoxelBitSet meshlib.VoxelBitSet.set ( meshlib.VoxelId n,
long len,
boolean val )

Generated from method MR::VoxelBitSet::set.

Calls MR_VoxelBitSet_set_range().

◆ shrink_to_fit()

void meshlib.VoxelBitSet.shrink_to_fit ( )

Generated from method MR::VoxelBitSet::shrink_to_fit.

Calls MR_VoxelBitSet_shrink_to_fit().

◆ size()

long meshlib.VoxelBitSet.size ( )

Generated from method MR::VoxelBitSet::size.

Calls MR_VoxelBitSet_size().

◆ staticDowncastFromBitSet()

meshlib.VoxelBitSet meshlib.VoxelBitSet.staticDowncastFromBitSet ( meshlib.BitSet object)
static

Static downcast from the base class MR::BitSet. Undefined behavior if the object isn't actually a VoxelBitSet. The result refers to object.

Calls MR_VoxelBitSet_MutableStaticDowncastFrom_MR_BitSet().

◆ sub_assign()

meshlib.VoxelBitSet meshlib.VoxelBitSet.sub_assign ( meshlib.VoxelBitSet b)

Generated from method MR::VoxelBitSet::operator-=. The reference to this object might be preserved in the return value.

Calls MR_VoxelBitSet_sub_assign().

◆ subtract()

meshlib.VoxelBitSet meshlib.VoxelBitSet.subtract ( meshlib.VoxelBitSet b,
int bShiftInBlocks )

subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block Generated from method MR::VoxelBitSet::subtract.

Calls MR_VoxelBitSet_subtract().

◆ test()

boolean meshlib.VoxelBitSet.test ( meshlib.VoxelId n)

Generated from method MR::VoxelBitSet::test.

Calls MR_VoxelBitSet_test().

◆ test_set()

boolean meshlib.VoxelBitSet.test_set ( meshlib.VoxelId n,
java.lang.Boolean val )

Generated from method MR::VoxelBitSet::test_set.

Calls MR_VoxelBitSet_test_set().

◆ uncheckedTest()

boolean meshlib.VoxelBitSet.uncheckedTest ( long n)

Generated from method MR::VoxelBitSet::uncheckedTest.

Calls MR_VoxelBitSet_uncheckedTest().

◆ uncheckedTestSet()

boolean meshlib.VoxelBitSet.uncheckedTestSet ( long n,
java.lang.Boolean val )

Generated from method MR::VoxelBitSet::uncheckedTestSet.

Calls MR_VoxelBitSet_uncheckedTestSet().

◆ upcastToBitSet()

meshlib.BitSet meshlib.VoxelBitSet.upcastToBitSet ( )

Upcasts to the base class MR::BitSet. The result refers to this object.

Calls MR_VoxelBitSet_MutableUpcastTo_MR_BitSet().

◆ xor_assign()

meshlib.VoxelBitSet meshlib.VoxelBitSet.xor_assign ( meshlib.VoxelBitSet b)

Generated from method MR::VoxelBitSet::operator^=. The reference to this object might be preserved in the return value.

Calls MR_VoxelBitSet_xor_assign().


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