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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ VertMap() [1/5]

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

◆ VertMap() [2/5]

meshlib.VertMap.VertMap ( )

creates empty vector

Calls MR_VertMap_DefaultConstruct().

◆ VertMap() [3/5]

meshlib.VertMap.VertMap ( meshlib.VertMap _other)

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

Calls MR_VertMap_ConstructFromAnother().

◆ VertMap() [4/5]

meshlib.VertMap.VertMap ( long size)

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

Calls MR_VertMap_Construct().

◆ VertMap() [5/5]

meshlib.VertMap.VertMap ( long size,
meshlib.VertId val )

creates a vector with size elements with the given value Generated from constructor MR::VertMap::VertMap. 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_VertMap_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.VertMap.assign ( long count,
meshlib.VertId val )

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

Calls MR_VertMap_assign().

◆ assignFromAnother()

meshlib.VertMap meshlib.VertMap.assignFromAnother ( meshlib.VertMap _other)

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

Calls MR_VertMap_AssignFromAnother().

◆ autoResizeAt()

meshlib.VertId meshlib.VertMap.autoResizeAt ( meshlib.VertId i)

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

Calls MR_VertMap_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.VertMap.autoResizeSet ( meshlib.VertId i,
meshlib.VertId val )

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

Calls MR_VertMap_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.VertMap.autoResizeSet ( meshlib.VertId pos,
long len,
meshlib.VertId 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::VertMap::autoResizeSet.

Calls MR_VertMap_autoResizeSet_3().

◆ back()

meshlib.VertId meshlib.VertMap.back ( )

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

Calls MR_VertMap_back().

◆ back_mut()

meshlib.VertId meshlib.VertMap.back_mut ( )

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

Calls MR_VertMap_back_mut().

◆ backId()

meshlib.VertId meshlib.VertMap.backId ( )

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

Calls MR_VertMap_backId().

◆ beginId()

meshlib.VertId meshlib.VertMap.beginId ( )

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

Calls MR_VertMap_beginId().

◆ capacity()

long meshlib.VertMap.capacity ( )

Generated from method MR::VertMap::capacity.

Calls MR_VertMap_capacity().

◆ clear()

void meshlib.VertMap.clear ( )

Generated from method MR::VertMap::clear.

Calls MR_VertMap_clear().

◆ data()

meshlib.VertId meshlib.VertMap.data ( )

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

Calls MR_VertMap_data().

◆ data_mut()

meshlib.VertId meshlib.VertMap.data_mut ( )

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

Calls MR_VertMap_data_mut().

◆ empty()

boolean meshlib.VertMap.empty ( )

Generated from method MR::VertMap::empty.

Calls MR_VertMap_empty().

◆ endId()

meshlib.VertId meshlib.VertMap.endId ( )

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

Calls MR_VertMap_endId().

◆ front()

meshlib.VertId meshlib.VertMap.front ( )

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

Calls MR_VertMap_front().

◆ front_mut()

meshlib.VertId meshlib.VertMap.front_mut ( )

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

Calls MR_VertMap_front_mut().

◆ heapBytes()

long meshlib.VertMap.heapBytes ( )

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

Calls MR_VertMap_heapBytes().

◆ index()

meshlib.VertId meshlib.VertMap.index ( meshlib.VertId i)

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

Calls MR_VertMap_index().

◆ index_mut()

meshlib.VertId meshlib.VertMap.index_mut ( meshlib.VertId i)

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

Calls MR_VertMap_index_mut().

◆ max_size()

long meshlib.VertMap.max_size ( )

Generated from method MR::VertMap::max_size.

Calls MR_VertMap_max_size().

◆ opEqual()

boolean meshlib.VertMap.opEqual ( meshlib.VertMap b)

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

Calls MR_equal_MR_VertMap().

◆ opNotEqual()

boolean meshlib.VertMap.opNotEqual ( meshlib.VertMap b)

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

Calls MR_not_equal_MR_VertMap().

◆ pop_back()

void meshlib.VertMap.pop_back ( )

Generated from method MR::VertMap::pop_back.

Calls MR_VertMap_pop_back().

◆ push_back_const_MR_VertId_ref()

void meshlib.VertMap.push_back_const_MR_VertId_ref ( meshlib.VertId t)

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

Calls MR_VertMap_push_back_const_MR_VertId_ref().

◆ push_back_MR_VertId_rvalue_ref()

void meshlib.VertMap.push_back_MR_VertId_rvalue_ref ( meshlib.VertId t)

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

Calls MR_VertMap_push_back_MR_VertId_rvalue_ref().

◆ reserve()

void meshlib.VertMap.reserve ( long capacity)

Generated from method MR::VertMap::reserve.

Calls MR_VertMap_reserve().

◆ resize() [1/2]

void meshlib.VertMap.resize ( long newSize)

Generated from method MR::VertMap::resize.

Calls MR_VertMap_resize_1().

◆ resize() [2/2]

void meshlib.VertMap.resize ( long newSize,
meshlib.VertId t )

Generated from method MR::VertMap::resize.

Calls MR_VertMap_resize_2().

◆ resizeNoInit()

void meshlib.VertMap.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::VertMap::resizeNoInit.

Calls MR_VertMap_resizeNoInit().

◆ resizeWithReserve() [1/2]

void meshlib.VertMap.resizeWithReserve ( long newSize)

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

Calls MR_VertMap_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.VertMap.resizeWithReserve ( long newSize,
meshlib.VertId value )

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

Calls MR_VertMap_resizeWithReserve_2().

◆ setVec()

void meshlib.VertMap.setVec ( meshlib.std_vector_MR_VertId_MR_Allocator_MR_VertId value)

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

Calls MR_VertMap_Set_vec().

◆ shrink_to_fit()

void meshlib.VertMap.shrink_to_fit ( )

Generated from method MR::VertMap::shrink_to_fit.

Calls MR_VertMap_shrink_to_fit().

◆ size()

long meshlib.VertMap.size ( )

Generated from method MR::VertMap::size.

Calls MR_VertMap_size().

◆ swap()

void meshlib.VertMap.swap ( meshlib.VertMap b)

Generated from method MR::VertMap::swap.

Calls MR_VertMap_swap().

◆ vec()

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

Calls MR_VertMap_Get_vec().


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