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

Public Member Functions

 Vector_MR_ObjId_MR_VoxelId (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Vector_MR_ObjId_MR_VoxelId ()
 Vector_MR_ObjId_MR_VoxelId (meshlib.Vector_MR_ObjId_MR_VoxelId _other)
 Vector_MR_ObjId_MR_VoxelId (long size)
 Vector_MR_ObjId_MR_VoxelId (long size, meshlib.ObjId val)
meshlib.Vector_MR_ObjId_MR_VoxelId assignFromAnother (meshlib.Vector_MR_ObjId_MR_VoxelId _other)
void assign (long count, meshlib.ObjId val)
boolean opEqual (meshlib.Vector_MR_ObjId_MR_VoxelId b)
boolean opNotEqual (meshlib.Vector_MR_ObjId_MR_VoxelId b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, meshlib.ObjId t)
void resizeNoInit (long targetSize, meshlib.ReserveMode mode)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
meshlib.ObjId index (meshlib.VoxelId i)
meshlib.ObjId index_mut (meshlib.VoxelId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, meshlib.ObjId value)
void autoResizeSet (meshlib.VoxelId pos, long len, meshlib.ObjId val)
void autoResizeSet (meshlib.VoxelId i, meshlib.ObjId val)
meshlib.ObjId autoResizeAt (meshlib.VoxelId i)
void push_back_const_MR_ObjId_ref (meshlib.ObjId t)
void push_back_MR_ObjId_rvalue_ref (meshlib.ObjId t)
void pop_back ()
meshlib.ObjId front ()
meshlib.ObjId front_mut ()
meshlib.ObjId back ()
meshlib.ObjId back_mut ()
meshlib.VoxelId beginId ()
meshlib.VoxelId backId ()
meshlib.VoxelId endId ()
meshlib.ObjId data_mut ()
meshlib.ObjId data ()
void swap (meshlib.Vector_MR_ObjId_MR_VoxelId b)
long heapBytes ()
meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId vec ()
void setVec (meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId 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::Vector<MR::ObjId, MR::VoxelId>.

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

Constructor & Destructor Documentation

◆ Vector_MR_ObjId_MR_VoxelId() [1/5]

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

◆ Vector_MR_ObjId_MR_VoxelId() [2/5]

meshlib.Vector_MR_ObjId_MR_VoxelId.Vector_MR_ObjId_MR_VoxelId ( )

creates empty vector

Calls MR_Vector_MR_ObjId_MR_VoxelId_DefaultConstruct().

◆ Vector_MR_ObjId_MR_VoxelId() [3/5]

meshlib.Vector_MR_ObjId_MR_VoxelId.Vector_MR_ObjId_MR_VoxelId ( meshlib.Vector_MR_ObjId_MR_VoxelId _other)

Generated from constructor MR::Vector<MR::ObjId, MR::VoxelId>::Vector. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_Vector_MR_ObjId_MR_VoxelId_ConstructFromAnother().

◆ Vector_MR_ObjId_MR_VoxelId() [4/5]

meshlib.Vector_MR_ObjId_MR_VoxelId.Vector_MR_ObjId_MR_VoxelId ( long size)

creates a vector with size elements with default value Generated from constructor MR::Vector<MR::ObjId, MR::VoxelId>::Vector. The reference to the parameter size might be preserved in the constructed object.

Calls MR_Vector_MR_ObjId_MR_VoxelId_Construct().

◆ Vector_MR_ObjId_MR_VoxelId() [5/5]

meshlib.Vector_MR_ObjId_MR_VoxelId.Vector_MR_ObjId_MR_VoxelId ( long size,
meshlib.ObjId val )

creates a vector with size elements with the given value Generated from constructor MR::Vector<MR::ObjId, MR::VoxelId>::Vector. 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_Vector_MR_ObjId_MR_VoxelId_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.Vector_MR_ObjId_MR_VoxelId.assign ( long count,
meshlib.ObjId val )

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

Calls MR_Vector_MR_ObjId_MR_VoxelId_assign().

◆ assignFromAnother()

meshlib.Vector_MR_ObjId_MR_VoxelId meshlib.Vector_MR_ObjId_MR_VoxelId.assignFromAnother ( meshlib.Vector_MR_ObjId_MR_VoxelId _other)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_Vector_MR_ObjId_MR_VoxelId_AssignFromAnother().

◆ autoResizeAt()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.autoResizeAt ( meshlib.VoxelId i)

this accessor automatically adjusts the size of the vector Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::autoResizeAt.

Calls MR_Vector_MR_ObjId_MR_VoxelId_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.autoResizeSet ( meshlib.VoxelId i,
meshlib.ObjId val )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::autoResizeSet.

Calls MR_Vector_MR_ObjId_MR_VoxelId_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.autoResizeSet ( meshlib.VoxelId pos,
long len,
meshlib.ObjId 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::Vector<MR::ObjId, MR::VoxelId>::autoResizeSet.

Calls MR_Vector_MR_ObjId_MR_VoxelId_autoResizeSet_3().

◆ back()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.back ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::back. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_back().

◆ back_mut()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.back_mut ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::back. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_back_mut().

◆ backId()

meshlib.VoxelId meshlib.Vector_MR_ObjId_MR_VoxelId.backId ( )

returns the identifier of the back() element Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::backId.

Calls MR_Vector_MR_ObjId_MR_VoxelId_backId().

◆ beginId()

meshlib.VoxelId meshlib.Vector_MR_ObjId_MR_VoxelId.beginId ( )

returns the identifier of the first element Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::beginId.

Calls MR_Vector_MR_ObjId_MR_VoxelId_beginId().

◆ capacity()

long meshlib.Vector_MR_ObjId_MR_VoxelId.capacity ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::capacity.

Calls MR_Vector_MR_ObjId_MR_VoxelId_capacity().

◆ clear()

void meshlib.Vector_MR_ObjId_MR_VoxelId.clear ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::clear.

Calls MR_Vector_MR_ObjId_MR_VoxelId_clear().

◆ data()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.data ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::data. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_data().

◆ data_mut()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.data_mut ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::data. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_data_mut().

◆ empty()

boolean meshlib.Vector_MR_ObjId_MR_VoxelId.empty ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::empty.

Calls MR_Vector_MR_ObjId_MR_VoxelId_empty().

◆ endId()

meshlib.VoxelId meshlib.Vector_MR_ObjId_MR_VoxelId.endId ( )

returns backId() + 1 Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::endId.

Calls MR_Vector_MR_ObjId_MR_VoxelId_endId().

◆ front()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.front ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::front. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_front().

◆ front_mut()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.front_mut ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::front. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_front_mut().

◆ heapBytes()

long meshlib.Vector_MR_ObjId_MR_VoxelId.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::heapBytes.

Calls MR_Vector_MR_ObjId_MR_VoxelId_heapBytes().

◆ index()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.index ( meshlib.VoxelId i)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::operator[]. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_index().

◆ index_mut()

meshlib.ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.index_mut ( meshlib.VoxelId i)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::operator[]. The reference to this object might be preserved in the return value.

Calls MR_Vector_MR_ObjId_MR_VoxelId_index_mut().

◆ max_size()

long meshlib.Vector_MR_ObjId_MR_VoxelId.max_size ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::max_size.

Calls MR_Vector_MR_ObjId_MR_VoxelId_max_size().

◆ opEqual()

boolean meshlib.Vector_MR_ObjId_MR_VoxelId.opEqual ( meshlib.Vector_MR_ObjId_MR_VoxelId b)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::operator==.

Calls MR_equal_MR_Vector_MR_ObjId_MR_VoxelId().

◆ opNotEqual()

boolean meshlib.Vector_MR_ObjId_MR_VoxelId.opNotEqual ( meshlib.Vector_MR_ObjId_MR_VoxelId b)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::operator!=.

Calls MR_not_equal_MR_Vector_MR_ObjId_MR_VoxelId().

◆ pop_back()

void meshlib.Vector_MR_ObjId_MR_VoxelId.pop_back ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::pop_back.

Calls MR_Vector_MR_ObjId_MR_VoxelId_pop_back().

◆ push_back_const_MR_ObjId_ref()

void meshlib.Vector_MR_ObjId_MR_VoxelId.push_back_const_MR_ObjId_ref ( meshlib.ObjId t)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_Vector_MR_ObjId_MR_VoxelId_push_back_const_MR_ObjId_ref().

◆ push_back_MR_ObjId_rvalue_ref()

void meshlib.Vector_MR_ObjId_MR_VoxelId.push_back_MR_ObjId_rvalue_ref ( meshlib.ObjId t)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_Vector_MR_ObjId_MR_VoxelId_push_back_MR_ObjId_rvalue_ref().

◆ reserve()

void meshlib.Vector_MR_ObjId_MR_VoxelId.reserve ( long capacity)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::reserve.

Calls MR_Vector_MR_ObjId_MR_VoxelId_reserve().

◆ resize() [1/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.resize ( long newSize)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::resize.

Calls MR_Vector_MR_ObjId_MR_VoxelId_resize_1().

◆ resize() [2/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.resize ( long newSize,
meshlib.ObjId t )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::resize.

Calls MR_Vector_MR_ObjId_MR_VoxelId_resize_2().

◆ resizeNoInit()

void meshlib.Vector_MR_ObjId_MR_VoxelId.resizeNoInit ( long targetSize,
meshlib.ReserveMode mode )

resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor ) Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::resizeNoInit.

Calls MR_Vector_MR_ObjId_MR_VoxelId_resizeNoInit().

◆ resizeWithReserve() [1/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.resizeWithReserve ( long newSize)

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::resizeWithReserve.

Calls MR_Vector_MR_ObjId_MR_VoxelId_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.Vector_MR_ObjId_MR_VoxelId.resizeWithReserve ( long newSize,
meshlib.ObjId value )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::resizeWithReserve.

Calls MR_Vector_MR_ObjId_MR_VoxelId_resizeWithReserve_2().

◆ setVec()

void meshlib.Vector_MR_ObjId_MR_VoxelId.setVec ( meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId value)

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

Calls MR_Vector_MR_ObjId_MR_VoxelId_Set_vec().

◆ shrink_to_fit()

void meshlib.Vector_MR_ObjId_MR_VoxelId.shrink_to_fit ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::shrink_to_fit.

Calls MR_Vector_MR_ObjId_MR_VoxelId_shrink_to_fit().

◆ size()

long meshlib.Vector_MR_ObjId_MR_VoxelId.size ( )

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::size.

Calls MR_Vector_MR_ObjId_MR_VoxelId_size().

◆ swap()

void meshlib.Vector_MR_ObjId_MR_VoxelId.swap ( meshlib.Vector_MR_ObjId_MR_VoxelId b)

Generated from method MR::Vector<MR::ObjId, MR::VoxelId>::swap.

Calls MR_Vector_MR_ObjId_MR_VoxelId_swap().

◆ vec()

meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId meshlib.Vector_MR_ObjId_MR_VoxelId.vec ( )

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

Calls MR_Vector_MR_ObjId_MR_VoxelId_Get_vec().


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