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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ assign()

void meshlib::Vert2RegionMap::assign ( count:usize ,
val:&meshlib::RegionId  )

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

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

◆ assign_from_another()

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

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

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

◆ auto_resize_at()

auto meshlib::Vert2RegionMap::auto_resize_at ( i:meshlib::VertId ) -> &mut meshlib::RegionId

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

Calls MR_Vert2RegionMap_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::Vert2RegionMap::auto_resize_set_2 ( i:meshlib::VertId ,
val:meshlib::RegionId  )

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

Calls MR_Vert2RegionMap_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::Vert2RegionMap::auto_resize_set_3 ( pos:meshlib::VertId ,
len:usize ,
val:meshlib::RegionId  )

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::Vert2RegionMap::autoResizeSet.

Calls MR_Vert2RegionMap_autoResizeSet_3().

◆ back()

auto meshlib::Vert2RegionMap::back ( ) const -> &meshlib::RegionId

Generated from method MR::Vert2RegionMap::back.

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

◆ back_id()

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

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

Calls MR_Vert2RegionMap_backId().

◆ back_mut()

auto meshlib::Vert2RegionMap::back_mut ( ) -> &mut meshlib::RegionId

Generated from method MR::Vert2RegionMap::back.

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

◆ begin_id()

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

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

Calls MR_Vert2RegionMap_beginId().

◆ capacity()

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

Generated from method MR::Vert2RegionMap::capacity.

Calls MR_Vert2RegionMap_capacity().

◆ clear()

void meshlib::Vert2RegionMap::clear ( )

Generated from method MR::Vert2RegionMap::clear.

Calls MR_Vert2RegionMap_clear().

◆ construct()

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

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

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

◆ construct_fill()

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

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

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

Generated from constructor MR::Vert2RegionMap::Vert2RegionMap.

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

◆ data()

auto meshlib::Vert2RegionMap::data ( ) const -> Option<&meshlib::RegionId >

Generated from method MR::Vert2RegionMap::data.

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

◆ data_mut()

auto meshlib::Vert2RegionMap::data_mut ( ) -> Option<&mut meshlib::RegionId >

Generated from method MR::Vert2RegionMap::data.

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

◆ empty()

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

Generated from method MR::Vert2RegionMap::empty.

Calls MR_Vert2RegionMap_empty().

◆ end_id()

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

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

Calls MR_Vert2RegionMap_endId().

◆ front()

auto meshlib::Vert2RegionMap::front ( ) const -> &meshlib::RegionId

Generated from method MR::Vert2RegionMap::front.

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

◆ front_mut()

auto meshlib::Vert2RegionMap::front_mut ( ) -> &mut meshlib::RegionId

Generated from method MR::Vert2RegionMap::front.

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

◆ heap_bytes()

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

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

Calls MR_Vert2RegionMap_heapBytes().

◆ index()

auto meshlib::Vert2RegionMap::index ( i:meshlib::VertId ) const -> &meshlib::RegionId

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

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

◆ index_mut()

auto meshlib::Vert2RegionMap::index_mut ( i:meshlib::VertId ) -> &mut meshlib::RegionId

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

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

◆ max_size()

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

Generated from method MR::Vert2RegionMap::max_size.

Calls MR_Vert2RegionMap_max_size().

◆ new()

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

creates empty vector

Calls MR_Vert2RegionMap_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_Vert2RegionMap().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_Vert2RegionMap().

◆ pop_back()

void meshlib::Vert2RegionMap::pop_back ( )

Generated from method MR::Vert2RegionMap::pop_back.

Calls MR_Vert2RegionMap_pop_back().

◆ push_back_const_mr_region_id_ref()

void meshlib::Vert2RegionMap::push_back_const_mr_region_id_ref ( t:&meshlib::RegionId )

Generated from method MR::Vert2RegionMap::push_back.

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

◆ push_back_mr_region_id_rvalue_ref()

void meshlib::Vert2RegionMap::push_back_mr_region_id_rvalue_ref ( t:&mut meshlib::RegionId )

Generated from method MR::Vert2RegionMap::push_back.

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

◆ reserve()

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

Generated from method MR::Vert2RegionMap::reserve.

Calls MR_Vert2RegionMap_reserve().

◆ resize_1()

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

Generated from method MR::Vert2RegionMap::resize.

Calls MR_Vert2RegionMap_resize_1().

◆ resize_2()

void meshlib::Vert2RegionMap::resize_2 ( newSize:usize ,
t:&meshlib::RegionId  )

Generated from method MR::Vert2RegionMap::resize.

Calls MR_Vert2RegionMap_resize_2().

◆ resize_no_init()

void meshlib::Vert2RegionMap::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::Vert2RegionMap::resizeNoInit.

Calls MR_Vert2RegionMap_resizeNoInit().

◆ resize_with_reserve_1()

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

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

Calls MR_Vert2RegionMap_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::Vert2RegionMap::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::RegionId  )

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

Calls MR_Vert2RegionMap_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::Vert2RegionMap::set_vec ( value:&meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId )

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

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

◆ shrink_to_fit()

void meshlib::Vert2RegionMap::shrink_to_fit ( )

Generated from method MR::Vert2RegionMap::shrink_to_fit.

Calls MR_Vert2RegionMap_shrink_to_fit().

◆ size()

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

Generated from method MR::Vert2RegionMap::size.

Calls MR_Vert2RegionMap_size().

◆ swap()

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

Generated from method MR::Vert2RegionMap::swap.

Calls MR_Vert2RegionMap_swap().

◆ vec()

auto meshlib::Vert2RegionMap::vec ( ) const -> &meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId

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

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

◆ vec_mut()

auto meshlib::Vert2RegionMap::vec_mut ( ) -> &mut meshlib::std_vector_MR_RegionId_MR_Allocator_MR_RegionId

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

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