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

Public Member Functions

auto assign_from_another (_other:&meshlib::Vector_MR_VertId_MR_EdgeId) -> &mut meshlib::Vector_MR_VertId_MR_EdgeId
void assign (count:usize, val:&meshlib::VertId)
auto op_equal (b:&meshlib::Vector_MR_VertId_MR_EdgeId) const -> bool
auto op_not_equal (b:&meshlib::Vector_MR_VertId_MR_EdgeId) 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::VertId)
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::EdgeId) const -> &meshlib::VertId
auto index_mut (i:meshlib::EdgeId) -> &mut meshlib::VertId
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::VertId)
void auto_resize_set_3 (pos:meshlib::EdgeId, len:usize, val:meshlib::VertId)
void auto_resize_set_2 (i:meshlib::EdgeId, val:meshlib::VertId)
auto auto_resize_at (i:meshlib::EdgeId) -> &mut meshlib::VertId
void push_back_const_mr_vert_id_ref (t:&meshlib::VertId)
void push_back_mr_vert_id_rvalue_ref (t:&mut meshlib::VertId)
void pop_back ()
auto front () const -> &meshlib::VertId
auto front_mut () -> &mut meshlib::VertId
auto back () const -> &meshlib::VertId
auto back_mut () -> &mut meshlib::VertId
auto begin_id () const -> meshlib::EdgeId
auto back_id () const -> meshlib::EdgeId
auto end_id () const -> meshlib::EdgeId
auto data_mut () -> Option<&mut meshlib::VertId >
auto data () const -> Option<&meshlib::VertId >
void swap (b:&mut meshlib::Vector_MR_VertId_MR_EdgeId)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId
auto vec_mut () -> &mut meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId
void set_vec (value:&meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Vector_MR_VertId_MR_EdgeId >
static auto construct_from_another (_other:&meshlib::Vector_MR_VertId_MR_EdgeId) -> meshlib::Owned< meshlib::Vector_MR_VertId_MR_EdgeId >
static auto construct (size:usize) -> meshlib::Owned< meshlib::Vector_MR_VertId_MR_EdgeId >
static auto construct_fill (size:usize, val:&meshlib::VertId) -> meshlib::Owned< meshlib::Vector_MR_VertId_MR_EdgeId >
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::Vector<MR::VertId, MR::EdgeId>.

Generated from class MR::Vector<MR::VertId, MR::EdgeId>. Heap-allocated instances are held in Owned<Vector_MR_VertId_MR_EdgeId>.

Member Function Documentation

◆ assign()

void meshlib::Vector_MR_VertId_MR_EdgeId::assign ( count:usize ,
val:&meshlib::VertId  )

replaces the contents with count copies of val Generated from method MR::Vector<MR::VertId, MR::EdgeId>::assign.

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

◆ assign_from_another()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::operator=.

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

◆ auto_resize_at()

auto meshlib::Vector_MR_VertId_MR_EdgeId::auto_resize_at ( i:meshlib::EdgeId ) -> &mut meshlib::VertId

this accessor automatically adjusts the size of the vector Generated from method MR::Vector<MR::VertId, MR::EdgeId>::autoResizeAt.

Calls MR_Vector_MR_VertId_MR_EdgeId_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::Vector_MR_VertId_MR_EdgeId::auto_resize_set_2 ( i:meshlib::EdgeId ,
val:meshlib::VertId  )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::Vector<MR::VertId, MR::EdgeId>::autoResizeSet.

Calls MR_Vector_MR_VertId_MR_EdgeId_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::Vector_MR_VertId_MR_EdgeId::auto_resize_set_3 ( pos:meshlib::EdgeId ,
len:usize ,
val:meshlib::VertId  )

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::Vector<MR::VertId, MR::EdgeId>::autoResizeSet.

Calls MR_Vector_MR_VertId_MR_EdgeId_autoResizeSet_3().

◆ back()

auto meshlib::Vector_MR_VertId_MR_EdgeId::back ( ) const -> &meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::back.

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

◆ back_id()

auto meshlib::Vector_MR_VertId_MR_EdgeId::back_id ( ) const -> meshlib::EdgeId

returns the identifier of the back() element Generated from method MR::Vector<MR::VertId, MR::EdgeId>::backId.

Calls MR_Vector_MR_VertId_MR_EdgeId_backId().

◆ back_mut()

auto meshlib::Vector_MR_VertId_MR_EdgeId::back_mut ( ) -> &mut meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::back.

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

◆ begin_id()

auto meshlib::Vector_MR_VertId_MR_EdgeId::begin_id ( ) const -> meshlib::EdgeId

returns the identifier of the first element Generated from method MR::Vector<MR::VertId, MR::EdgeId>::beginId.

Calls MR_Vector_MR_VertId_MR_EdgeId_beginId().

◆ capacity()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::capacity.

Calls MR_Vector_MR_VertId_MR_EdgeId_capacity().

◆ clear()

void meshlib::Vector_MR_VertId_MR_EdgeId::clear ( )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::clear.

Calls MR_Vector_MR_VertId_MR_EdgeId_clear().

◆ construct()

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

creates a vector with size elements with default value Generated from constructor MR::Vector<MR::VertId, MR::EdgeId>::Vector.

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

◆ construct_fill()

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

creates a vector with size elements with the given value Generated from constructor MR::Vector<MR::VertId, MR::EdgeId>::Vector.

Calls MR_Vector_MR_VertId_MR_EdgeId_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::Vector_MR_VertId_MR_EdgeId::construct_from_another ( _other:&meshlib::Vector_MR_VertId_MR_EdgeId ) -> meshlib::Owned< meshlib::Vector_MR_VertId_MR_EdgeId >
static

Generated from constructor MR::Vector<MR::VertId, MR::EdgeId>::Vector.

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

◆ data()

auto meshlib::Vector_MR_VertId_MR_EdgeId::data ( ) const -> Option<&meshlib::VertId >

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::data.

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

◆ data_mut()

auto meshlib::Vector_MR_VertId_MR_EdgeId::data_mut ( ) -> Option<&mut meshlib::VertId >

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::data.

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

◆ empty()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::empty.

Calls MR_Vector_MR_VertId_MR_EdgeId_empty().

◆ end_id()

auto meshlib::Vector_MR_VertId_MR_EdgeId::end_id ( ) const -> meshlib::EdgeId

returns backId() + 1 Generated from method MR::Vector<MR::VertId, MR::EdgeId>::endId.

Calls MR_Vector_MR_VertId_MR_EdgeId_endId().

◆ front()

auto meshlib::Vector_MR_VertId_MR_EdgeId::front ( ) const -> &meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::front.

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

◆ front_mut()

auto meshlib::Vector_MR_VertId_MR_EdgeId::front_mut ( ) -> &mut meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::front.

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

◆ heap_bytes()

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

returns the amount of memory this object occupies on heap Generated from method MR::Vector<MR::VertId, MR::EdgeId>::heapBytes.

Calls MR_Vector_MR_VertId_MR_EdgeId_heapBytes().

◆ index()

auto meshlib::Vector_MR_VertId_MR_EdgeId::index ( i:meshlib::EdgeId ) const -> &meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::operator[].

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

◆ index_mut()

auto meshlib::Vector_MR_VertId_MR_EdgeId::index_mut ( i:meshlib::EdgeId ) -> &mut meshlib::VertId

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::operator[].

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

◆ max_size()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::max_size.

Calls MR_Vector_MR_VertId_MR_EdgeId_max_size().

◆ new()

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

creates empty vector

Calls MR_Vector_MR_VertId_MR_EdgeId_DefaultConstruct().

◆ op_equal()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::operator==.

Calls MR_equal_MR_Vector_MR_VertId_MR_EdgeId().

◆ op_not_equal()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::operator!=.

Calls MR_not_equal_MR_Vector_MR_VertId_MR_EdgeId().

◆ pop_back()

void meshlib::Vector_MR_VertId_MR_EdgeId::pop_back ( )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::pop_back.

Calls MR_Vector_MR_VertId_MR_EdgeId_pop_back().

◆ push_back_const_mr_vert_id_ref()

void meshlib::Vector_MR_VertId_MR_EdgeId::push_back_const_mr_vert_id_ref ( t:&meshlib::VertId )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::push_back.

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

◆ push_back_mr_vert_id_rvalue_ref()

void meshlib::Vector_MR_VertId_MR_EdgeId::push_back_mr_vert_id_rvalue_ref ( t:&mut meshlib::VertId )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::push_back.

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

◆ reserve()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::reserve.

Calls MR_Vector_MR_VertId_MR_EdgeId_reserve().

◆ resize_1()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::resize.

Calls MR_Vector_MR_VertId_MR_EdgeId_resize_1().

◆ resize_2()

void meshlib::Vector_MR_VertId_MR_EdgeId::resize_2 ( newSize:usize ,
t:&meshlib::VertId  )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::resize.

Calls MR_Vector_MR_VertId_MR_EdgeId_resize_2().

◆ resize_no_init()

void meshlib::Vector_MR_VertId_MR_EdgeId::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::Vector<MR::VertId, MR::EdgeId>::resizeNoInit.

Calls MR_Vector_MR_VertId_MR_EdgeId_resizeNoInit().

◆ resize_with_reserve_1()

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

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::Vector<MR::VertId, MR::EdgeId>::resizeWithReserve.

Calls MR_Vector_MR_VertId_MR_EdgeId_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::Vector_MR_VertId_MR_EdgeId::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::VertId  )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::Vector<MR::VertId, MR::EdgeId>::resizeWithReserve.

Calls MR_Vector_MR_VertId_MR_EdgeId_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::Vector_MR_VertId_MR_EdgeId::set_vec ( value:&meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId )

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

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

◆ shrink_to_fit()

void meshlib::Vector_MR_VertId_MR_EdgeId::shrink_to_fit ( )

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::shrink_to_fit.

Calls MR_Vector_MR_VertId_MR_EdgeId_shrink_to_fit().

◆ size()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::size.

Calls MR_Vector_MR_VertId_MR_EdgeId_size().

◆ swap()

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

Generated from method MR::Vector<MR::VertId, MR::EdgeId>::swap.

Calls MR_Vector_MR_VertId_MR_EdgeId_swap().

◆ vec()

auto meshlib::Vector_MR_VertId_MR_EdgeId::vec ( ) const -> &meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId

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

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

◆ vec_mut()

auto meshlib::Vector_MR_VertId_MR_EdgeId::vec_mut ( ) -> &mut meshlib::std_vector_MR_VertId_MR_Allocator_MR_VertId

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

Calls MR_Vector_MR_VertId_MR_EdgeId_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: