Public Member Functions | |
| void | assign_from_another (other:&meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId) |
| 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 -> &meshlib::RegionId |
| auto | at_mut (i:usize) -> &mut meshlib::RegionId |
| auto | front () const -> Option<&meshlib::RegionId > |
| auto | front_mut () -> Option<&mut meshlib::RegionId > |
| auto | back () const -> Option<&meshlib::RegionId > |
| auto | back_mut () -> Option<&mut meshlib::RegionId > |
| auto | data () const -> *const meshlib::RegionId |
| auto | data_mut () -> *mut meshlib::RegionId |
| void | push_back (new_elem:meshlib::RegionId) |
| void | pop_back () |
| void | insert (position:usize, new_elem:meshlib::RegionId) |
| void | erase (position:usize) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId > |
| static auto | construct_from_another (other:&meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId) -> meshlib::Owned< meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId > |
| 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 |
Generated from C++ container std::vector<MR::RegionId, MR::Allocator<MR::RegionId>>.
Generated from class std::vector<MR::RegionId, MR::Allocator<MR::RegionId>>. Heap-allocated instances are held in Owned<std_vector_MR_RegionId_MR_Allocator_MR_RegionId>.
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::assign_from_another | ( | other:&meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId | ) |
Assigns the contents from another instance. Both objects remain alive after the call.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_AssignFromAnother(). The reference to the parameter other might be preserved in this object.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::at | ( | i:usize | ) | const -> &meshlib::RegionId |
The element at a specific index, read-only.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_at(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::at_mut | ( | i:usize | ) | -> &mut meshlib::RegionId |
The element at a specific index, mutable.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_at_mut(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::back | ( | ) | const -> Option<&meshlib::RegionId > |
The last element or null if empty, read-only.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_back(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::back_mut | ( | ) | -> Option<&mut meshlib::RegionId > |
The last element or null if empty, mutable.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_back_mut(). The reference to this object might be preserved as the return value.
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::clear | ( | ) |
Removes all elements from the container.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_clear().
|
static |
Constructs a copy of another instance. The source remains alive.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::data | ( | ) | const -> *const meshlib::RegionId |
Returns a pointer to the continuous storage that holds all elements, read-only.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_data(). 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.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::data_mut | ( | ) | -> *mut meshlib::RegionId |
Returns a pointer to the continuous storage that holds all elements, mutable.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_data_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.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::empty | ( | ) | const -> bool |
Returns true if the size is zero.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_empty().
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::erase | ( | position:usize | ) |
Erases the element at the specified position.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_erase().
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::front | ( | ) | const -> Option<&meshlib::RegionId > |
The first element or null if empty, read-only.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_front(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::front_mut | ( | ) | -> Option<&mut meshlib::RegionId > |
The first element or null if empty, mutable.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_front_mut(). The reference to this object might be preserved as the return value.
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::insert | ( | position:usize | , |
| new_elem:meshlib::RegionId | ) |
Inserts a new element right before the specified position.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_insert(). The reference to the parameter new_elem might be preserved in this object.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_DefaultConstruct().
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::pop_back | ( | ) |
Removes one element from the end.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_pop_back().
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::push_back | ( | new_elem:meshlib::RegionId | ) |
Inserts a new element at the end.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_push_back(). The reference to the parameter new_elem might be preserved in this object.
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::reserve | ( | new_capacity:usize | ) |
Reserves memory for a certain number of elements. Never shrinks the memory.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_reserve().
| void meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::resize | ( | new_size:usize | ) |
Resizes the container. The new elements if any are zeroed.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_resize().
| auto meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId::size | ( | ) | const -> usize |
The number of elements.
Calls MR_std_vector_MR_RegionId_MR_Allocator_MR_RegionId_size().