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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ std_vector_MR_Vector3d() [1/3]

meshlib.std_vector_MR_Vector3d.std_vector_MR_Vector3d ( 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_MR_Vector3d() [2/3]

meshlib.std_vector_MR_Vector3d.std_vector_MR_Vector3d ( )

Constructs an empty (default-constructed) instance.

Calls MR_std_vector_MR_Vector3d_DefaultConstruct().

◆ std_vector_MR_Vector3d() [3/3]

meshlib.std_vector_MR_Vector3d.std_vector_MR_Vector3d ( meshlib.std_vector_MR_Vector3d 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_MR_Vector3d_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

void meshlib.std_vector_MR_Vector3d.assignFromAnother ( meshlib.std_vector_MR_Vector3d 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_MR_Vector3d_AssignFromAnother().

◆ at()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_at().

◆ at_mut()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_at_mut().

◆ back()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_back().

◆ back_mut()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_back_mut().

◆ clear()

void meshlib.std_vector_MR_Vector3d.clear ( )

Removes all elements from the container.

Calls MR_std_vector_MR_Vector3d_clear().

◆ data()

java.lang.foreign.MemorySegment meshlib.std_vector_MR_Vector3d.data ( )

Returns a pointer to the continuous storage that holds all elements, read-only. The reference to this object might be preserved as the return value.

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

◆ data_mut()

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

Returns a pointer to the continuous storage that holds all elements, mutable. The reference to this object might be preserved as the return value.

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

◆ empty()

boolean meshlib.std_vector_MR_Vector3d.empty ( )

Returns true if the size is zero.

Calls MR_std_vector_MR_Vector3d_empty().

◆ erase()

void meshlib.std_vector_MR_Vector3d.erase ( long position)

Erases the element at the specified position.

Calls MR_std_vector_MR_Vector3d_erase().

◆ front()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_front().

◆ front_mut()

meshlib.Vector3d meshlib.std_vector_MR_Vector3d.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_MR_Vector3d_front_mut().

◆ insert()

void meshlib.std_vector_MR_Vector3d.insert ( long position,
meshlib.Vector3d 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_MR_Vector3d_insert().

◆ pop_back()

void meshlib.std_vector_MR_Vector3d.pop_back ( )

Removes one element from the end.

Calls MR_std_vector_MR_Vector3d_pop_back().

◆ push_back()

void meshlib.std_vector_MR_Vector3d.push_back ( meshlib.Vector3d 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_MR_Vector3d_push_back().

◆ reserve()

void meshlib.std_vector_MR_Vector3d.reserve ( long new_capacity)

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

Calls MR_std_vector_MR_Vector3d_reserve().

◆ resize()

void meshlib.std_vector_MR_Vector3d.resize ( long new_size)

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

Calls MR_std_vector_MR_Vector3d_resize().

◆ size()

long meshlib.std_vector_MR_Vector3d.size ( )

The number of elements.

Calls MR_std_vector_MR_Vector3d_size().


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