Public Member Functions | |
| std_vector_MR_ObjId_MR_Allocator_MR_ObjId (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| std_vector_MR_ObjId_MR_Allocator_MR_ObjId () | |
| std_vector_MR_ObjId_MR_Allocator_MR_ObjId (meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId other) | |
| void | assignFromAnother (meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId other) |
| long | size () |
| boolean | empty () |
| void | resize (long new_size) |
| void | clear () |
| void | reserve (long new_capacity) |
| meshlib.ObjId | at (long i) |
| meshlib.ObjId | at_mut (long i) |
| meshlib.ObjId | front () |
| meshlib.ObjId | front_mut () |
| meshlib.ObjId | back () |
| meshlib.ObjId | back_mut () |
| java.lang.foreign.MemorySegment | data () |
| java.lang.foreign.MemorySegment | data_mut () |
| void | push_back (meshlib.ObjId new_elem) |
| void | pop_back () |
| void | insert (long position, meshlib.ObjId 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) | |
Generated from C++ container std::vector<MR::ObjId, MR::Allocator<MR::ObjId>>.
Instances created here own their C++ objects, see CppObject.
| meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.std_vector_MR_ObjId_MR_Allocator_MR_ObjId | ( | 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.
| meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.std_vector_MR_ObjId_MR_Allocator_MR_ObjId | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_DefaultConstruct().
| meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.std_vector_MR_ObjId_MR_Allocator_MR_ObjId | ( | meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId | 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_ObjId_MR_Allocator_MR_ObjId_ConstructFromAnother().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.assignFromAnother | ( | meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId | 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_ObjId_MR_Allocator_MR_ObjId_AssignFromAnother().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_at().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_at_mut().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_back().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_back_mut().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.clear | ( | ) |
Removes all elements from the container.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_clear().
| java.lang.foreign.MemorySegment meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_data(). Some types are raw C types, see the C bindings for the details.
| java.lang.foreign.MemorySegment meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_data_mut(). Some types are raw C types, see the C bindings for the details.
| boolean meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.empty | ( | ) |
Returns true if the size is zero.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_empty().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.erase | ( | long | position | ) |
Erases the element at the specified position.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_erase().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_front().
| meshlib.ObjId meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.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_ObjId_MR_Allocator_MR_ObjId_front_mut().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.insert | ( | long | position, |
| meshlib.ObjId | 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_ObjId_MR_Allocator_MR_ObjId_insert().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.pop_back | ( | ) |
Removes one element from the end.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_pop_back().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.push_back | ( | meshlib.ObjId | 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_ObjId_MR_Allocator_MR_ObjId_push_back().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.reserve | ( | long | new_capacity | ) |
Reserves memory for a certain number of elements. Never shrinks the memory.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_reserve().
| void meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.resize | ( | long | new_size | ) |
Resizes the container. The new elements if any are zeroed.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_resize().
| long meshlib.std_vector_MR_ObjId_MR_Allocator_MR_ObjId.size | ( | ) |
The number of elements.
Calls MR_std_vector_MR_ObjId_MR_Allocator_MR_ObjId_size().