MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::VertCoords2:

Public Member Functions

auto assign_from_another (_other:&meshlib::VertCoords2) -> &mut meshlib::VertCoords2
void assign (count:usize, val:&meshlib::Vector2f)
auto op_equal (b:&meshlib::VertCoords2) const -> bool
auto op_not_equal (b:&meshlib::VertCoords2) const -> bool
void clear ()
auto empty () const -> bool
auto size () const -> usize
auto max_size () const -> usize
void resize_1 (newSize:usize)
void resize_2 (newSize:usize, t:&meshlib::Vector2f)
void resize_no_init (targetSize:usize, mode:Option< meshlib::ReserveMode >)
auto capacity () const -> usize
void reserve (capacity:usize)
void shrink_to_fit ()
auto index (i:meshlib::VertId) const -> &meshlib::Vector2f
auto index_mut (i:meshlib::VertId) -> &mut meshlib::Vector2f
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::Vector2f)
void auto_resize_set_3 (pos:meshlib::VertId, len:usize, val:meshlib::Vector2f)
void auto_resize_set_2 (i:meshlib::VertId, val:meshlib::Vector2f)
auto auto_resize_at (i:meshlib::VertId) -> &mut meshlib::Vector2f
void push_back_const_mr_vector2f_ref (t:&meshlib::Vector2f)
void push_back_mr_vector2f_rvalue_ref (t:&mut meshlib::Vector2f)
void pop_back ()
auto front () const -> &meshlib::Vector2f
auto front_mut () -> &mut meshlib::Vector2f
auto back () const -> &meshlib::Vector2f
auto back_mut () -> &mut meshlib::Vector2f
auto begin_id () const -> meshlib::VertId
auto back_id () const -> meshlib::VertId
auto end_id () const -> meshlib::VertId
auto data_mut () -> Option<&mut meshlib::Vector2f >
auto data () const -> Option<&meshlib::Vector2f >
void swap (b:&mut meshlib::VertCoords2)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f
auto vec_mut () -> &mut meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f
void set_vec (value:&meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::VertCoords2 >
static auto construct_from_another (_other:&meshlib::VertCoords2) -> meshlib::Owned< meshlib::VertCoords2 >
static auto construct (size:usize) -> meshlib::Owned< meshlib::VertCoords2 >
static auto construct_fill (size:usize, val:&meshlib::Vector2f) -> meshlib::Owned< meshlib::VertCoords2 >
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

Vector<T> is indexed by size_t Generated from class MR::VertCoords2.

Generated from class MR::VertCoords2. Heap-allocated instances are held in Owned<VertCoords2>.

Member Function Documentation

◆ assign()

void meshlib::VertCoords2::assign ( count:usize ,
val:&meshlib::Vector2f  )

replaces the contents with count copies of val Generated from method MR::VertCoords2::assign.

Calls MR_VertCoords2_assign(). The reference to things referred to by the parameter val (if any) might be preserved in this object.

◆ assign_from_another()

auto meshlib::VertCoords2::assign_from_another ( _other:&meshlib::VertCoords2 ) -> &mut meshlib::VertCoords2

Generated from method MR::VertCoords2::operator=.

Calls MR_VertCoords2_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ auto_resize_at()

auto meshlib::VertCoords2::auto_resize_at ( i:meshlib::VertId ) -> &mut meshlib::Vector2f

this accessor automatically adjusts the size of the vector Generated from method MR::VertCoords2::autoResizeAt.

Calls MR_VertCoords2_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::VertCoords2::auto_resize_set_2 ( i:meshlib::VertId ,
val:meshlib::Vector2f  )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::VertCoords2::autoResizeSet.

Calls MR_VertCoords2_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::VertCoords2::auto_resize_set_3 ( pos:meshlib::VertId ,
len:usize ,
val:meshlib::Vector2f  )

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR::VertCoords2::autoResizeSet.

Calls MR_VertCoords2_autoResizeSet_3().

◆ back()

auto meshlib::VertCoords2::back ( ) const -> &meshlib::Vector2f

Generated from method MR::VertCoords2::back.

Calls MR_VertCoords2_back(). The reference to this object might be preserved in the return value.

◆ back_id()

auto meshlib::VertCoords2::back_id ( ) const -> meshlib::VertId

returns the identifier of the back() element Generated from method MR::VertCoords2::backId.

Calls MR_VertCoords2_backId().

◆ back_mut()

auto meshlib::VertCoords2::back_mut ( ) -> &mut meshlib::Vector2f

Generated from method MR::VertCoords2::back.

Calls MR_VertCoords2_back_mut(). The reference to this object might be preserved in the return value.

◆ begin_id()

auto meshlib::VertCoords2::begin_id ( ) const -> meshlib::VertId

returns the identifier of the first element Generated from method MR::VertCoords2::beginId.

Calls MR_VertCoords2_beginId().

◆ capacity()

auto meshlib::VertCoords2::capacity ( ) const -> usize

Generated from method MR::VertCoords2::capacity.

Calls MR_VertCoords2_capacity().

◆ clear()

void meshlib::VertCoords2::clear ( )

Generated from method MR::VertCoords2::clear.

Calls MR_VertCoords2_clear().

◆ construct()

auto meshlib::VertCoords2::construct ( size:usize ) -> meshlib::Owned< meshlib::VertCoords2 >
static

creates a vector with size elements with default value Generated from constructor MR::VertCoords2::VertCoords2.

Calls MR_VertCoords2_Construct(). The reference to the parameter size might be preserved in the constructed object.

◆ construct_fill()

auto meshlib::VertCoords2::construct_fill ( size:usize ,
val:&meshlib::Vector2f  ) -> meshlib::Owned< meshlib::VertCoords2 >
static

creates a vector with size elements with the given value Generated from constructor MR::VertCoords2::VertCoords2.

Calls MR_VertCoords2_Construct_fill(). The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::VertCoords2::construct_from_another ( _other:&meshlib::VertCoords2 ) -> meshlib::Owned< meshlib::VertCoords2 >
static

Generated from constructor MR::VertCoords2::VertCoords2.

Calls MR_VertCoords2_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ data()

auto meshlib::VertCoords2::data ( ) const -> Option<&meshlib::Vector2f >

Generated from method MR::VertCoords2::data.

Calls MR_VertCoords2_data(). The reference to this object might be preserved in the return value.

◆ data_mut()

auto meshlib::VertCoords2::data_mut ( ) -> Option<&mut meshlib::Vector2f >

Generated from method MR::VertCoords2::data.

Calls MR_VertCoords2_data_mut(). The reference to this object might be preserved in the return value.

◆ empty()

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

Generated from method MR::VertCoords2::empty.

Calls MR_VertCoords2_empty().

◆ end_id()

auto meshlib::VertCoords2::end_id ( ) const -> meshlib::VertId

returns backId() + 1 Generated from method MR::VertCoords2::endId.

Calls MR_VertCoords2_endId().

◆ front()

auto meshlib::VertCoords2::front ( ) const -> &meshlib::Vector2f

Generated from method MR::VertCoords2::front.

Calls MR_VertCoords2_front(). The reference to this object might be preserved in the return value.

◆ front_mut()

auto meshlib::VertCoords2::front_mut ( ) -> &mut meshlib::Vector2f

Generated from method MR::VertCoords2::front.

Calls MR_VertCoords2_front_mut(). The reference to this object might be preserved in the return value.

◆ heap_bytes()

auto meshlib::VertCoords2::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::VertCoords2::heapBytes.

Calls MR_VertCoords2_heapBytes().

◆ index()

auto meshlib::VertCoords2::index ( i:meshlib::VertId ) const -> &meshlib::Vector2f

Generated from method MR::VertCoords2::operator[].

Calls MR_VertCoords2_index(). The reference to this object might be preserved in the return value.

◆ index_mut()

auto meshlib::VertCoords2::index_mut ( i:meshlib::VertId ) -> &mut meshlib::Vector2f

Generated from method MR::VertCoords2::operator[].

Calls MR_VertCoords2_index_mut(). The reference to this object might be preserved in the return value.

◆ max_size()

auto meshlib::VertCoords2::max_size ( ) const -> usize

Generated from method MR::VertCoords2::max_size.

Calls MR_VertCoords2_max_size().

◆ new()

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

creates empty vector

Calls MR_VertCoords2_DefaultConstruct().

◆ op_equal()

auto meshlib::VertCoords2::op_equal ( b:&meshlib::VertCoords2 ) const -> bool

Generated from method MR::VertCoords2::operator==.

Calls MR_equal_MR_VertCoords2().

◆ op_not_equal()

auto meshlib::VertCoords2::op_not_equal ( b:&meshlib::VertCoords2 ) const -> bool

Generated from method MR::VertCoords2::operator!=.

Calls MR_not_equal_MR_VertCoords2().

◆ pop_back()

void meshlib::VertCoords2::pop_back ( )

Generated from method MR::VertCoords2::pop_back.

Calls MR_VertCoords2_pop_back().

◆ push_back_const_mr_vector2f_ref()

void meshlib::VertCoords2::push_back_const_mr_vector2f_ref ( t:&meshlib::Vector2f )

Generated from method MR::VertCoords2::push_back.

Calls MR_VertCoords2_push_back_const_MR_Vector2f_ref(). The reference to things referred to by the parameter t (if any) might be preserved in this object.

◆ push_back_mr_vector2f_rvalue_ref()

void meshlib::VertCoords2::push_back_mr_vector2f_rvalue_ref ( t:&mut meshlib::Vector2f )

Generated from method MR::VertCoords2::push_back.

Calls MR_VertCoords2_push_back_MR_Vector2f_rvalue_ref(). The reference to things referred to by the parameter t (if any) might be preserved in this object.

◆ reserve()

void meshlib::VertCoords2::reserve ( capacity:usize )

Generated from method MR::VertCoords2::reserve.

Calls MR_VertCoords2_reserve().

◆ resize_1()

void meshlib::VertCoords2::resize_1 ( newSize:usize )

Generated from method MR::VertCoords2::resize.

Calls MR_VertCoords2_resize_1().

◆ resize_2()

void meshlib::VertCoords2::resize_2 ( newSize:usize ,
t:&meshlib::Vector2f  )

Generated from method MR::VertCoords2::resize.

Calls MR_VertCoords2_resize_2().

◆ resize_no_init()

void meshlib::VertCoords2::resize_no_init ( targetSize:usize ,
mode:Option< meshlib::ReserveMode >  )

resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor ) Generated from method MR::VertCoords2::resizeNoInit.

Calls MR_VertCoords2_resizeNoInit().

◆ resize_with_reserve_1()

void meshlib::VertCoords2::resize_with_reserve_1 ( newSize:usize )

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::VertCoords2::resizeWithReserve.

Calls MR_VertCoords2_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::VertCoords2::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::Vector2f  )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::VertCoords2::resizeWithReserve.

Calls MR_VertCoords2_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::VertCoords2::set_vec ( value:&meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f )

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::VertCoords2 named vec.

Calls MR_VertCoords2_Set_vec(). The reference to the parameter value might be preserved in this object in element vec.

◆ shrink_to_fit()

void meshlib::VertCoords2::shrink_to_fit ( )

Generated from method MR::VertCoords2::shrink_to_fit.

Calls MR_VertCoords2_shrink_to_fit().

◆ size()

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

Generated from method MR::VertCoords2::size.

Calls MR_VertCoords2_size().

◆ swap()

void meshlib::VertCoords2::swap ( b:&mut meshlib::VertCoords2 )

Generated from method MR::VertCoords2::swap.

Calls MR_VertCoords2_swap().

◆ vec()

auto meshlib::VertCoords2::vec ( ) const -> &meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::VertCoords2 named vec.

Calls MR_VertCoords2_Get_vec(). The reference to this object might be preserved as the return value.

◆ vec_mut()

auto meshlib::VertCoords2::vec_mut ( ) -> &mut meshlib::std_vector_MR_Vector2f_MR_Allocator_MR_Vector2f

The user can directly manipulate the vector, they can't break anything anyway. Returns a mutable pointer to a member variable of class MR::VertCoords2 named vec.

Calls MR_VertCoords2_GetMutable_vec(). The reference to this object might be preserved as the return value.


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