MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::std_vector_MR_Mesh_ptr Struct Reference
Inheritance diagram for meshlib::std_vector_MR_Mesh_ptr:

Public Member Functions

void assign_from_another (other:&meshlib::std_vector_MR_Mesh_ptr)
auto size () const -> usize
auto empty () const -> bool
void resize (new_size:usize)
void clear ()
void reserve (new_capacity:usize)
auto at (i:usize) const -> *const *mut meshlib::ffi::MR_Mesh
auto at_mut (i:usize) -> *mut *mut meshlib::ffi::MR_Mesh
auto front () const -> *const *mut meshlib::ffi::MR_Mesh
auto front_mut () -> *mut *mut meshlib::ffi::MR_Mesh
auto back () const -> *const *mut meshlib::ffi::MR_Mesh
auto back_mut () -> *mut *mut meshlib::ffi::MR_Mesh
void push_back (new_elem:Option<&mut meshlib::Mesh >)
void pop_back ()
void insert (position:usize, new_elem:Option<&mut meshlib::Mesh >)
void erase (position:usize)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::std_vector_MR_Mesh_ptr >
static auto construct_from_another (other:&meshlib::std_vector_MR_Mesh_ptr) -> meshlib::Owned< meshlib::std_vector_MR_Mesh_ptr >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

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

Generated from class std::vector<MR::Mesh *>. Heap-allocated instances are held in Owned<std_vector_MR_Mesh_ptr>.

Member Function Documentation

◆ assign_from_another()

void meshlib::std_vector_MR_Mesh_ptr::assign_from_another ( other:&meshlib::std_vector_MR_Mesh_ptr )

Assigns the contents from another instance. Both objects remain alive after the call.

Calls MR_std_vector_MR_Mesh_ptr_AssignFromAnother(). The reference to the parameter other might be preserved in this object.

◆ at()

auto meshlib::std_vector_MR_Mesh_ptr::at ( i:usize ) const -> *const *mut meshlib::ffi::MR_Mesh

The element at a specific index, read-only.

Calls MR_std_vector_MR_Mesh_ptr_at(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ at_mut()

auto meshlib::std_vector_MR_Mesh_ptr::at_mut ( i:usize ) -> *mut *mut meshlib::ffi::MR_Mesh

The element at a specific index, mutable.

Calls MR_std_vector_MR_Mesh_ptr_at_mut(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ back()

auto meshlib::std_vector_MR_Mesh_ptr::back ( ) const -> *const *mut meshlib::ffi::MR_Mesh

The last element or null if empty, read-only.

Calls MR_std_vector_MR_Mesh_ptr_back(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ back_mut()

auto meshlib::std_vector_MR_Mesh_ptr::back_mut ( ) -> *mut *mut meshlib::ffi::MR_Mesh

The last element or null if empty, mutable.

Calls MR_std_vector_MR_Mesh_ptr_back_mut(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ clear()

void meshlib::std_vector_MR_Mesh_ptr::clear ( )

Removes all elements from the container.

Calls MR_std_vector_MR_Mesh_ptr_clear().

◆ construct_from_another()

auto meshlib::std_vector_MR_Mesh_ptr::construct_from_another ( other:&meshlib::std_vector_MR_Mesh_ptr ) -> meshlib::Owned< meshlib::std_vector_MR_Mesh_ptr >
static

Constructs a copy of another instance. The source remains alive.

Calls MR_std_vector_MR_Mesh_ptr_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.

◆ empty()

auto meshlib::std_vector_MR_Mesh_ptr::empty ( ) const -> bool

Returns true if the size is zero.

Calls MR_std_vector_MR_Mesh_ptr_empty().

◆ erase()

void meshlib::std_vector_MR_Mesh_ptr::erase ( position:usize )

Erases the element at the specified position.

Calls MR_std_vector_MR_Mesh_ptr_erase().

◆ front()

auto meshlib::std_vector_MR_Mesh_ptr::front ( ) const -> *const *mut meshlib::ffi::MR_Mesh

The first element or null if empty, read-only.

Calls MR_std_vector_MR_Mesh_ptr_front(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ front_mut()

auto meshlib::std_vector_MR_Mesh_ptr::front_mut ( ) -> *mut *mut meshlib::ffi::MR_Mesh

The first element or null if empty, mutable.

Calls MR_std_vector_MR_Mesh_ptr_front_mut(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ insert()

void meshlib::std_vector_MR_Mesh_ptr::insert ( position:usize ,
new_elem:Option<&mut meshlib::Mesh >  )

Inserts a new element right before the specified position.

Calls MR_std_vector_MR_Mesh_ptr_insert(). The reference to the parameter new_elem might be preserved in this object.

◆ new()

auto meshlib::std_vector_MR_Mesh_ptr::new ( ) -> meshlib::Owned< meshlib::std_vector_MR_Mesh_ptr >
static

Constructs an empty (default-constructed) instance.

Calls MR_std_vector_MR_Mesh_ptr_DefaultConstruct().

◆ pop_back()

void meshlib::std_vector_MR_Mesh_ptr::pop_back ( )

Removes one element from the end.

Calls MR_std_vector_MR_Mesh_ptr_pop_back().

◆ push_back()

void meshlib::std_vector_MR_Mesh_ptr::push_back ( new_elem:Option<&mut meshlib::Mesh > )

Inserts a new element at the end.

Calls MR_std_vector_MR_Mesh_ptr_push_back(). The reference to the parameter new_elem might be preserved in this object.

◆ reserve()

void meshlib::std_vector_MR_Mesh_ptr::reserve ( new_capacity:usize )

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

Calls MR_std_vector_MR_Mesh_ptr_reserve().

◆ resize()

void meshlib::std_vector_MR_Mesh_ptr::resize ( new_size:usize )

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

Calls MR_std_vector_MR_Mesh_ptr_resize().

◆ size()

auto meshlib::std_vector_MR_Mesh_ptr::size ( ) const -> usize

The number of elements.

Calls MR_std_vector_MR_Mesh_ptr_size().


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