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

Public Member Functions

 std_vector_const_MR_Mesh_ptr (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 std_vector_const_MR_Mesh_ptr ()
 std_vector_const_MR_Mesh_ptr (meshlib.std_vector_const_MR_Mesh_ptr other)
void assignFromAnother (meshlib.std_vector_const_MR_Mesh_ptr other)
long size ()
boolean empty ()
void resize (long new_size)
void clear ()
void reserve (long new_capacity)
java.lang.foreign.MemorySegment at (long i)
java.lang.foreign.MemorySegment at_mut (long i)
java.lang.foreign.MemorySegment front ()
java.lang.foreign.MemorySegment front_mut ()
java.lang.foreign.MemorySegment back ()
java.lang.foreign.MemorySegment back_mut ()
void push_back (meshlib.Mesh new_elem)
void pop_back ()
void insert (long position, meshlib.Mesh new_elem)
void erase (long position)
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

Generated from C++ container std::vector<const MR::Mesh *>.

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

Constructor & Destructor Documentation

◆ std_vector_const_MR_Mesh_ptr() [1/3]

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

◆ std_vector_const_MR_Mesh_ptr() [2/3]

meshlib.std_vector_const_MR_Mesh_ptr.std_vector_const_MR_Mesh_ptr ( )

Constructs an empty (default-constructed) instance.

Calls MR_std_vector_const_MR_Mesh_ptr_DefaultConstruct().

◆ std_vector_const_MR_Mesh_ptr() [3/3]

meshlib.std_vector_const_MR_Mesh_ptr.std_vector_const_MR_Mesh_ptr ( meshlib.std_vector_const_MR_Mesh_ptr other)

Constructs a copy of another instance. The source remains alive. The reference to the parameter other might be preserved in the constructed object.

Calls MR_std_vector_const_MR_Mesh_ptr_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

void meshlib.std_vector_const_MR_Mesh_ptr.assignFromAnother ( meshlib.std_vector_const_MR_Mesh_ptr other)

Assigns the contents from another instance. Both objects remain alive after the call. The reference to the parameter other might be preserved in this object.

Calls MR_std_vector_const_MR_Mesh_ptr_AssignFromAnother().

◆ at()

java.lang.foreign.MemorySegment meshlib.std_vector_const_MR_Mesh_ptr.at ( long i)

The element at a specific index, read-only. The reference to this object might be preserved as the return value.

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

◆ at_mut()

java.lang.foreign.MemorySegment meshlib.std_vector_const_MR_Mesh_ptr.at_mut ( long i)

The element at a specific index, mutable. The reference to this object might be preserved as the return value.

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

◆ back()

java.lang.foreign.MemorySegment meshlib.std_vector_const_MR_Mesh_ptr.back ( )

The last element or null if empty, read-only. The reference to this object might be preserved as the return value.

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

◆ back_mut()

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

The last element or null if empty, mutable. The reference to this object might be preserved as the return value.

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

◆ clear()

void meshlib.std_vector_const_MR_Mesh_ptr.clear ( )

Removes all elements from the container.

Calls MR_std_vector_const_MR_Mesh_ptr_clear().

◆ empty()

boolean meshlib.std_vector_const_MR_Mesh_ptr.empty ( )

Returns true if the size is zero.

Calls MR_std_vector_const_MR_Mesh_ptr_empty().

◆ erase()

void meshlib.std_vector_const_MR_Mesh_ptr.erase ( long position)

Erases the element at the specified position.

Calls MR_std_vector_const_MR_Mesh_ptr_erase().

◆ front()

java.lang.foreign.MemorySegment meshlib.std_vector_const_MR_Mesh_ptr.front ( )

The first element or null if empty, read-only. The reference to this object might be preserved as the return value.

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

◆ front_mut()

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

The first element or null if empty, mutable. The reference to this object might be preserved as the return value.

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

◆ insert()

void meshlib.std_vector_const_MR_Mesh_ptr.insert ( long position,
meshlib.Mesh new_elem )

Inserts a new element right before the specified position. The reference to the parameter new_elem might be preserved in this object.

Calls MR_std_vector_const_MR_Mesh_ptr_insert().

◆ pop_back()

void meshlib.std_vector_const_MR_Mesh_ptr.pop_back ( )

Removes one element from the end.

Calls MR_std_vector_const_MR_Mesh_ptr_pop_back().

◆ push_back()

void meshlib.std_vector_const_MR_Mesh_ptr.push_back ( meshlib.Mesh new_elem)

Inserts a new element at the end. The reference to the parameter new_elem might be preserved in this object.

Calls MR_std_vector_const_MR_Mesh_ptr_push_back().

◆ reserve()

void meshlib.std_vector_const_MR_Mesh_ptr.reserve ( long new_capacity)

Reserves memory for a certain number of elements. Never shrinks the memory.

Calls MR_std_vector_const_MR_Mesh_ptr_reserve().

◆ resize()

void meshlib.std_vector_const_MR_Mesh_ptr.resize ( long new_size)

Resizes the container. The new elements if any are zeroed.

Calls MR_std_vector_const_MR_Mesh_ptr_resize().

◆ size()

long meshlib.std_vector_const_MR_Mesh_ptr.size ( )

The number of elements.

Calls MR_std_vector_const_MR_Mesh_ptr_size().


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