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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ Vector_int_MR_RegionId() [1/5]

meshlib.Vector_int_MR_RegionId.Vector_int_MR_RegionId ( 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_int_MR_RegionId() [2/5]

meshlib.Vector_int_MR_RegionId.Vector_int_MR_RegionId ( )

creates empty vector

Calls MR_Vector_int_MR_RegionId_DefaultConstruct().

◆ Vector_int_MR_RegionId() [3/5]

meshlib.Vector_int_MR_RegionId.Vector_int_MR_RegionId ( meshlib.Vector_int_MR_RegionId _other)

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

Calls MR_Vector_int_MR_RegionId_ConstructFromAnother().

◆ Vector_int_MR_RegionId() [4/5]

meshlib.Vector_int_MR_RegionId.Vector_int_MR_RegionId ( long size)

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

Calls MR_Vector_int_MR_RegionId_Construct().

◆ Vector_int_MR_RegionId() [5/5]

meshlib.Vector_int_MR_RegionId.Vector_int_MR_RegionId ( long size,
int val )

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

Member Function Documentation

◆ assign()

void meshlib.Vector_int_MR_RegionId.assign ( long count,
int val )

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

Calls MR_Vector_int_MR_RegionId_assign().

◆ assignFromAnother()

meshlib.Vector_int_MR_RegionId meshlib.Vector_int_MR_RegionId.assignFromAnother ( meshlib.Vector_int_MR_RegionId _other)

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

Calls MR_Vector_int_MR_RegionId_AssignFromAnother().

◆ autoResizeAt()

java.lang.foreign.MemorySegment meshlib.Vector_int_MR_RegionId.autoResizeAt ( meshlib.RegionId i)

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

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

◆ autoResizeSet() [1/2]

void meshlib.Vector_int_MR_RegionId.autoResizeSet ( meshlib.RegionId i,
int val )

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

Calls MR_Vector_int_MR_RegionId_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.Vector_int_MR_RegionId.autoResizeSet ( meshlib.RegionId pos,
long len,
int 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<int, MR::RegionId>::autoResizeSet.

Calls MR_Vector_int_MR_RegionId_autoResizeSet_3().

◆ back()

int meshlib.Vector_int_MR_RegionId.back ( )

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

Calls MR_Vector_int_MR_RegionId_back().

◆ back_mut()

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

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

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

◆ backId()

meshlib.RegionId meshlib.Vector_int_MR_RegionId.backId ( )

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

Calls MR_Vector_int_MR_RegionId_backId().

◆ beginId()

meshlib.RegionId meshlib.Vector_int_MR_RegionId.beginId ( )

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

Calls MR_Vector_int_MR_RegionId_beginId().

◆ capacity()

long meshlib.Vector_int_MR_RegionId.capacity ( )

Generated from method MR::Vector<int, MR::RegionId>::capacity.

Calls MR_Vector_int_MR_RegionId_capacity().

◆ clear()

void meshlib.Vector_int_MR_RegionId.clear ( )

Generated from method MR::Vector<int, MR::RegionId>::clear.

Calls MR_Vector_int_MR_RegionId_clear().

◆ data()

java.lang.Integer meshlib.Vector_int_MR_RegionId.data ( )

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

Calls MR_Vector_int_MR_RegionId_data().

◆ data_mut()

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

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

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

◆ empty()

boolean meshlib.Vector_int_MR_RegionId.empty ( )

Generated from method MR::Vector<int, MR::RegionId>::empty.

Calls MR_Vector_int_MR_RegionId_empty().

◆ endId()

meshlib.RegionId meshlib.Vector_int_MR_RegionId.endId ( )

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

Calls MR_Vector_int_MR_RegionId_endId().

◆ front()

int meshlib.Vector_int_MR_RegionId.front ( )

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

Calls MR_Vector_int_MR_RegionId_front().

◆ front_mut()

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

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

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

◆ heapBytes()

long meshlib.Vector_int_MR_RegionId.heapBytes ( )

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

Calls MR_Vector_int_MR_RegionId_heapBytes().

◆ index()

int meshlib.Vector_int_MR_RegionId.index ( meshlib.RegionId i)

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

Calls MR_Vector_int_MR_RegionId_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.Vector_int_MR_RegionId.index_mut ( meshlib.RegionId i)

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

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

◆ max_size()

long meshlib.Vector_int_MR_RegionId.max_size ( )

Generated from method MR::Vector<int, MR::RegionId>::max_size.

Calls MR_Vector_int_MR_RegionId_max_size().

◆ opEqual()

boolean meshlib.Vector_int_MR_RegionId.opEqual ( meshlib.Vector_int_MR_RegionId b)

Generated from method MR::Vector<int, MR::RegionId>::operator==.

Calls MR_equal_MR_Vector_int_MR_RegionId().

◆ opNotEqual()

boolean meshlib.Vector_int_MR_RegionId.opNotEqual ( meshlib.Vector_int_MR_RegionId b)

Generated from method MR::Vector<int, MR::RegionId>::operator!=.

Calls MR_not_equal_MR_Vector_int_MR_RegionId().

◆ pop_back()

void meshlib.Vector_int_MR_RegionId.pop_back ( )

Generated from method MR::Vector<int, MR::RegionId>::pop_back.

Calls MR_Vector_int_MR_RegionId_pop_back().

◆ push_back_const_int_ref()

void meshlib.Vector_int_MR_RegionId.push_back_const_int_ref ( int t)

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

Calls MR_Vector_int_MR_RegionId_push_back_const_int_ref().

◆ push_back_int_rvalue_ref()

void meshlib.Vector_int_MR_RegionId.push_back_int_rvalue_ref ( int t)

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

Calls MR_Vector_int_MR_RegionId_push_back_int_rvalue_ref().

◆ reserve()

void meshlib.Vector_int_MR_RegionId.reserve ( long capacity)

Generated from method MR::Vector<int, MR::RegionId>::reserve.

Calls MR_Vector_int_MR_RegionId_reserve().

◆ resize() [1/2]

void meshlib.Vector_int_MR_RegionId.resize ( long newSize)

Generated from method MR::Vector<int, MR::RegionId>::resize.

Calls MR_Vector_int_MR_RegionId_resize_1().

◆ resize() [2/2]

void meshlib.Vector_int_MR_RegionId.resize ( long newSize,
int t )

Generated from method MR::Vector<int, MR::RegionId>::resize.

Calls MR_Vector_int_MR_RegionId_resize_2().

◆ resizeWithReserve() [1/2]

void meshlib.Vector_int_MR_RegionId.resizeWithReserve ( long newSize)

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

Calls MR_Vector_int_MR_RegionId_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.Vector_int_MR_RegionId.resizeWithReserve ( long newSize,
int value )

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

Calls MR_Vector_int_MR_RegionId_resizeWithReserve_2().

◆ setVec()

void meshlib.Vector_int_MR_RegionId.setVec ( meshlib.std_vector_int_MR_Allocator_int value)

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

Calls MR_Vector_int_MR_RegionId_Set_vec().

◆ shrink_to_fit()

void meshlib.Vector_int_MR_RegionId.shrink_to_fit ( )

Generated from method MR::Vector<int, MR::RegionId>::shrink_to_fit.

Calls MR_Vector_int_MR_RegionId_shrink_to_fit().

◆ size()

long meshlib.Vector_int_MR_RegionId.size ( )

Generated from method MR::Vector<int, MR::RegionId>::size.

Calls MR_Vector_int_MR_RegionId_size().

◆ swap()

void meshlib.Vector_int_MR_RegionId.swap ( meshlib.Vector_int_MR_RegionId b)

Generated from method MR::Vector<int, MR::RegionId>::swap.

Calls MR_Vector_int_MR_RegionId_swap().

◆ vec()

meshlib.std_vector_int_MR_Allocator_int meshlib.Vector_int_MR_RegionId.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<int, MR::RegionId> named vec. The reference to this object might be preserved as the return value.

Calls MR_Vector_int_MR_RegionId_Get_vec().


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