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

Public Member Functions

 ObjMap (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 ObjMap ()
 ObjMap (meshlib.ObjMap _other)
 ObjMap (long size)
 ObjMap (long size, meshlib.ObjId val)
meshlib.ObjMap assignFromAnother (meshlib.ObjMap _other)
void assign (long count, meshlib.ObjId val)
boolean opEqual (meshlib.ObjMap b)
boolean opNotEqual (meshlib.ObjMap 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.ObjId i)
meshlib.ObjId index_mut (meshlib.ObjId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, meshlib.ObjId value)
void autoResizeSet (meshlib.ObjId pos, long len, meshlib.ObjId val)
void autoResizeSet (meshlib.ObjId i, meshlib.ObjId val)
meshlib.ObjId autoResizeAt (meshlib.ObjId 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.ObjId beginId ()
meshlib.ObjId backId ()
meshlib.ObjId endId ()
meshlib.ObjId data_mut ()
meshlib.ObjId data ()
void swap (meshlib.ObjMap 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::ObjMap.

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

Constructor & Destructor Documentation

◆ ObjMap() [1/5]

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

◆ ObjMap() [2/5]

meshlib.ObjMap.ObjMap ( )

creates empty vector

Calls MR_ObjMap_DefaultConstruct().

◆ ObjMap() [3/5]

meshlib.ObjMap.ObjMap ( meshlib.ObjMap _other)

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

Calls MR_ObjMap_ConstructFromAnother().

◆ ObjMap() [4/5]

meshlib.ObjMap.ObjMap ( long size)

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

Calls MR_ObjMap_Construct().

◆ ObjMap() [5/5]

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

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

Member Function Documentation

◆ assign()

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

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

Calls MR_ObjMap_assign().

◆ assignFromAnother()

meshlib.ObjMap meshlib.ObjMap.assignFromAnother ( meshlib.ObjMap _other)

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

Calls MR_ObjMap_AssignFromAnother().

◆ autoResizeAt()

meshlib.ObjId meshlib.ObjMap.autoResizeAt ( meshlib.ObjId i)

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

Calls MR_ObjMap_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.ObjMap.autoResizeSet ( meshlib.ObjId 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::ObjMap::autoResizeSet.

Calls MR_ObjMap_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.ObjMap.autoResizeSet ( meshlib.ObjId 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::ObjMap::autoResizeSet.

Calls MR_ObjMap_autoResizeSet_3().

◆ back()

meshlib.ObjId meshlib.ObjMap.back ( )

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

Calls MR_ObjMap_back().

◆ back_mut()

meshlib.ObjId meshlib.ObjMap.back_mut ( )

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

Calls MR_ObjMap_back_mut().

◆ backId()

meshlib.ObjId meshlib.ObjMap.backId ( )

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

Calls MR_ObjMap_backId().

◆ beginId()

meshlib.ObjId meshlib.ObjMap.beginId ( )

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

Calls MR_ObjMap_beginId().

◆ capacity()

long meshlib.ObjMap.capacity ( )

Generated from method MR::ObjMap::capacity.

Calls MR_ObjMap_capacity().

◆ clear()

void meshlib.ObjMap.clear ( )

Generated from method MR::ObjMap::clear.

Calls MR_ObjMap_clear().

◆ data()

meshlib.ObjId meshlib.ObjMap.data ( )

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

Calls MR_ObjMap_data().

◆ data_mut()

meshlib.ObjId meshlib.ObjMap.data_mut ( )

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

Calls MR_ObjMap_data_mut().

◆ empty()

boolean meshlib.ObjMap.empty ( )

Generated from method MR::ObjMap::empty.

Calls MR_ObjMap_empty().

◆ endId()

meshlib.ObjId meshlib.ObjMap.endId ( )

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

Calls MR_ObjMap_endId().

◆ front()

meshlib.ObjId meshlib.ObjMap.front ( )

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

Calls MR_ObjMap_front().

◆ front_mut()

meshlib.ObjId meshlib.ObjMap.front_mut ( )

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

Calls MR_ObjMap_front_mut().

◆ heapBytes()

long meshlib.ObjMap.heapBytes ( )

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

Calls MR_ObjMap_heapBytes().

◆ index()

meshlib.ObjId meshlib.ObjMap.index ( meshlib.ObjId i)

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

Calls MR_ObjMap_index().

◆ index_mut()

meshlib.ObjId meshlib.ObjMap.index_mut ( meshlib.ObjId i)

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

Calls MR_ObjMap_index_mut().

◆ max_size()

long meshlib.ObjMap.max_size ( )

Generated from method MR::ObjMap::max_size.

Calls MR_ObjMap_max_size().

◆ opEqual()

boolean meshlib.ObjMap.opEqual ( meshlib.ObjMap b)

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

Calls MR_equal_MR_ObjMap().

◆ opNotEqual()

boolean meshlib.ObjMap.opNotEqual ( meshlib.ObjMap b)

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

Calls MR_not_equal_MR_ObjMap().

◆ pop_back()

void meshlib.ObjMap.pop_back ( )

Generated from method MR::ObjMap::pop_back.

Calls MR_ObjMap_pop_back().

◆ push_back_const_MR_ObjId_ref()

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

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

Calls MR_ObjMap_push_back_const_MR_ObjId_ref().

◆ push_back_MR_ObjId_rvalue_ref()

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

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

Calls MR_ObjMap_push_back_MR_ObjId_rvalue_ref().

◆ reserve()

void meshlib.ObjMap.reserve ( long capacity)

Generated from method MR::ObjMap::reserve.

Calls MR_ObjMap_reserve().

◆ resize() [1/2]

void meshlib.ObjMap.resize ( long newSize)

Generated from method MR::ObjMap::resize.

Calls MR_ObjMap_resize_1().

◆ resize() [2/2]

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

Generated from method MR::ObjMap::resize.

Calls MR_ObjMap_resize_2().

◆ resizeNoInit()

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

Calls MR_ObjMap_resizeNoInit().

◆ resizeWithReserve() [1/2]

void meshlib.ObjMap.resizeWithReserve ( long newSize)

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

Calls MR_ObjMap_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

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

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

Calls MR_ObjMap_resizeWithReserve_2().

◆ setVec()

void meshlib.ObjMap.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::ObjMap named vec. The reference to the parameter value might be preserved in this object in element vec.

Calls MR_ObjMap_Set_vec().

◆ shrink_to_fit()

void meshlib.ObjMap.shrink_to_fit ( )

Generated from method MR::ObjMap::shrink_to_fit.

Calls MR_ObjMap_shrink_to_fit().

◆ size()

long meshlib.ObjMap.size ( )

Generated from method MR::ObjMap::size.

Calls MR_ObjMap_size().

◆ swap()

void meshlib.ObjMap.swap ( meshlib.ObjMap b)

Generated from method MR::ObjMap::swap.

Calls MR_ObjMap_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::ObjMap named vec. The reference to this object might be preserved as the return value.

Calls MR_ObjMap_Get_vec().


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