Public Member Functions | |
| void | assign_from_another (other:&meshlib::std_vector_float) |
| 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 -> &f32 |
| auto | at_mut (i:usize) -> &mut f32 |
| auto | front () const -> Option<&f32 > |
| auto | front_mut () -> Option<&mut f32 > |
| auto | back () const -> Option<&f32 > |
| auto | back_mut () -> Option<&mut f32 > |
| auto | data () const -> *const f32 |
| auto | data_mut () -> *mut f32 |
| void | push_back (new_elem:f32) |
| void | pop_back () |
| void | insert (position:usize, new_elem:f32) |
| void | erase (position:usize) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::std_vector_float > |
| static auto | construct_from_another (other:&meshlib::std_vector_float) -> meshlib::Owned< meshlib::std_vector_float > |
| 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<float>.
Generated from class std::vector<float>. Heap-allocated instances are held in Owned<std_vector_float>.
| void meshlib::std_vector_float::assign_from_another | ( | other:&meshlib::std_vector_float | ) |
Assigns the contents from another instance. Both objects remain alive after the call.
Calls MR_std_vector_float_AssignFromAnother(). The reference to the parameter other might be preserved in this object.
| auto meshlib::std_vector_float::at | ( | i:usize | ) | const -> &f32 |
The element at a specific index, read-only.
Calls MR_std_vector_float_at(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_float::at_mut | ( | i:usize | ) | -> &mut f32 |
The element at a specific index, mutable.
Calls MR_std_vector_float_at_mut(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_float::back | ( | ) | const -> Option<&f32 > |
The last element or null if empty, read-only.
Calls MR_std_vector_float_back(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_float::back_mut | ( | ) | -> Option<&mut f32 > |
The last element or null if empty, mutable.
Calls MR_std_vector_float_back_mut(). The reference to this object might be preserved as the return value.
| void meshlib::std_vector_float::clear | ( | ) |
Removes all elements from the container.
Calls MR_std_vector_float_clear().
|
static |
Constructs a copy of another instance. The source remains alive.
Calls MR_std_vector_float_ConstructFromAnother(). The reference to the parameter other might be preserved in the constructed object.
| auto meshlib::std_vector_float::data | ( | ) | const -> *const f32 |
Returns a pointer to the continuous storage that holds all elements, read-only.
Calls MR_std_vector_float_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_float::data_mut | ( | ) | -> *mut f32 |
Returns a pointer to the continuous storage that holds all elements, mutable.
Calls MR_std_vector_float_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_float::empty | ( | ) | const -> bool |
Returns true if the size is zero.
Calls MR_std_vector_float_empty().
| void meshlib::std_vector_float::erase | ( | position:usize | ) |
Erases the element at the specified position.
Calls MR_std_vector_float_erase().
| auto meshlib::std_vector_float::front | ( | ) | const -> Option<&f32 > |
The first element or null if empty, read-only.
Calls MR_std_vector_float_front(). The reference to this object might be preserved as the return value.
| auto meshlib::std_vector_float::front_mut | ( | ) | -> Option<&mut f32 > |
The first element or null if empty, mutable.
Calls MR_std_vector_float_front_mut(). The reference to this object might be preserved as the return value.
| void meshlib::std_vector_float::insert | ( | position:usize | , |
| new_elem:f32 | ) |
Inserts a new element right before the specified position.
Calls MR_std_vector_float_insert().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_std_vector_float_DefaultConstruct().
| void meshlib::std_vector_float::pop_back | ( | ) |
Removes one element from the end.
Calls MR_std_vector_float_pop_back().
| void meshlib::std_vector_float::push_back | ( | new_elem:f32 | ) |
Inserts a new element at the end.
Calls MR_std_vector_float_push_back().
| void meshlib::std_vector_float::reserve | ( | new_capacity:usize | ) |
Reserves memory for a certain number of elements. Never shrinks the memory.
Calls MR_std_vector_float_reserve().
| void meshlib::std_vector_float::resize | ( | new_size:usize | ) |
Resizes the container. The new elements if any are zeroed.
Calls MR_std_vector_float_resize().
| auto meshlib::std_vector_float::size | ( | ) | const -> usize |
The number of elements.
Calls MR_std_vector_float_size().