MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.VoxelScalars Class Reference
Inheritance diagram for meshlib.VoxelScalars:

Public Member Functions

 VoxelScalars (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VoxelScalars ()
 VoxelScalars (meshlib.VoxelScalars _other)
 VoxelScalars (long size)
 VoxelScalars (long size, float val)
meshlib.VoxelScalars assignFromAnother (meshlib.VoxelScalars _other)
void assign (long count, float val)
boolean opEqual (meshlib.VoxelScalars b)
boolean opNotEqual (meshlib.VoxelScalars b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, float t)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
float index (meshlib.VoxelId i)
java.lang.foreign.MemorySegment index_mut (meshlib.VoxelId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, float value)
void autoResizeSet (meshlib.VoxelId pos, long len, float val)
void autoResizeSet (meshlib.VoxelId i, float val)
java.lang.foreign.MemorySegment autoResizeAt (meshlib.VoxelId i)
void push_back_const_float_ref (float t)
void push_back_float_rvalue_ref (float t)
void pop_back ()
float front ()
java.lang.foreign.MemorySegment front_mut ()
float back ()
java.lang.foreign.MemorySegment back_mut ()
meshlib.VoxelId beginId ()
meshlib.VoxelId backId ()
meshlib.VoxelId endId ()
java.lang.foreign.MemorySegment data_mut ()
java.lang.Float data ()
void swap (meshlib.VoxelScalars b)
long heapBytes ()
meshlib.std_vector_float_MR_Allocator_float vec ()
void setVec (meshlib.std_vector_float_MR_Allocator_float value)
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 ()

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<T> is indexed by size_t Generated from class MR::VoxelScalars.

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

Constructor & Destructor Documentation

◆ VoxelScalars() [1/5]

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

◆ VoxelScalars() [2/5]

meshlib.VoxelScalars.VoxelScalars ( )

creates empty vector

Calls MR_VoxelScalars_DefaultConstruct().

◆ VoxelScalars() [3/5]

meshlib.VoxelScalars.VoxelScalars ( meshlib.VoxelScalars _other)

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

Calls MR_VoxelScalars_ConstructFromAnother().

◆ VoxelScalars() [4/5]

meshlib.VoxelScalars.VoxelScalars ( long size)

creates a vector with size elements with default value Generated from constructor MR::VoxelScalars::VoxelScalars. The reference to the parameter size might be preserved in the constructed object.

Calls MR_VoxelScalars_Construct().

◆ VoxelScalars() [5/5]

meshlib.VoxelScalars.VoxelScalars ( long size,
float val )

creates a vector with size elements with the given value Generated from constructor MR::VoxelScalars::VoxelScalars. The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

Calls MR_VoxelScalars_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.VoxelScalars.assign ( long count,
float val )

replaces the contents with count copies of val Generated from method MR::VoxelScalars::assign. The reference to things referred to by the parameter val (if any) might be preserved in this object.

Calls MR_VoxelScalars_assign().

◆ assignFromAnother()

meshlib.VoxelScalars meshlib.VoxelScalars.assignFromAnother ( meshlib.VoxelScalars _other)

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

Calls MR_VoxelScalars_AssignFromAnother().

◆ autoResizeAt()

java.lang.foreign.MemorySegment meshlib.VoxelScalars.autoResizeAt ( meshlib.VoxelId i)

this accessor automatically adjusts the size of the vector Generated from method MR::VoxelScalars::autoResizeAt.

Calls MR_VoxelScalars_autoResizeAt(). Some types are raw C types, see the C bindings for the details.

◆ autoResizeSet() [1/2]

void meshlib.VoxelScalars.autoResizeSet ( meshlib.VoxelId i,
float val )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::VoxelScalars::autoResizeSet.

Calls MR_VoxelScalars_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.VoxelScalars.autoResizeSet ( meshlib.VoxelId pos,
long len,
float val )

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR::VoxelScalars::autoResizeSet.

Calls MR_VoxelScalars_autoResizeSet_3().

◆ back()

float meshlib.VoxelScalars.back ( )

Generated from method MR::VoxelScalars::back. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_back().

◆ back_mut()

java.lang.foreign.MemorySegment meshlib.VoxelScalars.back_mut ( )

Generated from method MR::VoxelScalars::back. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_back_mut(). Some types are raw C types, see the C bindings for the details.

◆ backId()

meshlib.VoxelId meshlib.VoxelScalars.backId ( )

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

Calls MR_VoxelScalars_backId().

◆ beginId()

meshlib.VoxelId meshlib.VoxelScalars.beginId ( )

returns the identifier of the first element Generated from method MR::VoxelScalars::beginId.

Calls MR_VoxelScalars_beginId().

◆ capacity()

long meshlib.VoxelScalars.capacity ( )

Generated from method MR::VoxelScalars::capacity.

Calls MR_VoxelScalars_capacity().

◆ clear()

void meshlib.VoxelScalars.clear ( )

Generated from method MR::VoxelScalars::clear.

Calls MR_VoxelScalars_clear().

◆ data()

java.lang.Float meshlib.VoxelScalars.data ( )

Generated from method MR::VoxelScalars::data. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_data().

◆ data_mut()

java.lang.foreign.MemorySegment meshlib.VoxelScalars.data_mut ( )

Generated from method MR::VoxelScalars::data. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_data_mut(). Some types are raw C types, see the C bindings for the details.

◆ empty()

boolean meshlib.VoxelScalars.empty ( )

Generated from method MR::VoxelScalars::empty.

Calls MR_VoxelScalars_empty().

◆ endId()

meshlib.VoxelId meshlib.VoxelScalars.endId ( )

returns backId() + 1 Generated from method MR::VoxelScalars::endId.

Calls MR_VoxelScalars_endId().

◆ front()

float meshlib.VoxelScalars.front ( )

Generated from method MR::VoxelScalars::front. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_front().

◆ front_mut()

java.lang.foreign.MemorySegment meshlib.VoxelScalars.front_mut ( )

Generated from method MR::VoxelScalars::front. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_front_mut(). Some types are raw C types, see the C bindings for the details.

◆ heapBytes()

long meshlib.VoxelScalars.heapBytes ( )

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

Calls MR_VoxelScalars_heapBytes().

◆ index()

float meshlib.VoxelScalars.index ( meshlib.VoxelId i)

Generated from method MR::VoxelScalars::operator[]. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.VoxelScalars.index_mut ( meshlib.VoxelId i)

Generated from method MR::VoxelScalars::operator[]. The reference to this object might be preserved in the return value.

Calls MR_VoxelScalars_index_mut(). Some types are raw C types, see the C bindings for the details.

◆ max_size()

long meshlib.VoxelScalars.max_size ( )

Generated from method MR::VoxelScalars::max_size.

Calls MR_VoxelScalars_max_size().

◆ opEqual()

boolean meshlib.VoxelScalars.opEqual ( meshlib.VoxelScalars b)

Generated from method MR::VoxelScalars::operator==.

Calls MR_equal_MR_VoxelScalars().

◆ opNotEqual()

boolean meshlib.VoxelScalars.opNotEqual ( meshlib.VoxelScalars b)

Generated from method MR::VoxelScalars::operator!=.

Calls MR_not_equal_MR_VoxelScalars().

◆ pop_back()

void meshlib.VoxelScalars.pop_back ( )

Generated from method MR::VoxelScalars::pop_back.

Calls MR_VoxelScalars_pop_back().

◆ push_back_const_float_ref()

void meshlib.VoxelScalars.push_back_const_float_ref ( float t)

Generated from method MR::VoxelScalars::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_VoxelScalars_push_back_const_float_ref().

◆ push_back_float_rvalue_ref()

void meshlib.VoxelScalars.push_back_float_rvalue_ref ( float t)

Generated from method MR::VoxelScalars::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_VoxelScalars_push_back_float_rvalue_ref().

◆ reserve()

void meshlib.VoxelScalars.reserve ( long capacity)

Generated from method MR::VoxelScalars::reserve.

Calls MR_VoxelScalars_reserve().

◆ resize() [1/2]

void meshlib.VoxelScalars.resize ( long newSize)

Generated from method MR::VoxelScalars::resize.

Calls MR_VoxelScalars_resize_1().

◆ resize() [2/2]

void meshlib.VoxelScalars.resize ( long newSize,
float t )

Generated from method MR::VoxelScalars::resize.

Calls MR_VoxelScalars_resize_2().

◆ resizeWithReserve() [1/2]

void meshlib.VoxelScalars.resizeWithReserve ( long newSize)

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

Calls MR_VoxelScalars_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.VoxelScalars.resizeWithReserve ( long newSize,
float value )

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

Calls MR_VoxelScalars_resizeWithReserve_2().

◆ setVec()

void meshlib.VoxelScalars.setVec ( meshlib.std_vector_float_MR_Allocator_float value)

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::VoxelScalars named vec. The reference to the parameter value might be preserved in this object in element vec.

Calls MR_VoxelScalars_Set_vec().

◆ shrink_to_fit()

void meshlib.VoxelScalars.shrink_to_fit ( )

Generated from method MR::VoxelScalars::shrink_to_fit.

Calls MR_VoxelScalars_shrink_to_fit().

◆ size()

long meshlib.VoxelScalars.size ( )

Generated from method MR::VoxelScalars::size.

Calls MR_VoxelScalars_size().

◆ swap()

void meshlib.VoxelScalars.swap ( meshlib.VoxelScalars b)

Generated from method MR::VoxelScalars::swap.

Calls MR_VoxelScalars_swap().

◆ vec()

meshlib.std_vector_float_MR_Allocator_float meshlib.VoxelScalars.vec ( )

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::VoxelScalars named vec. The reference to this object might be preserved as the return value.

Calls MR_VoxelScalars_Get_vec().


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