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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ assign()

void meshlib::ObjMap::assign ( count:usize ,
val:&meshlib::ObjId  )

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

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

◆ assign_from_another()

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

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

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

◆ auto_resize_at()

auto meshlib::ObjMap::auto_resize_at ( i:meshlib::ObjId ) -> &mut meshlib::ObjId

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

Calls MR_ObjMap_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::ObjMap::auto_resize_set_2 ( i:meshlib::ObjId ,
val:meshlib::ObjId  )

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

Calls MR_ObjMap_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::ObjMap::auto_resize_set_3 ( pos:meshlib::ObjId ,
len:usize ,
val:meshlib::ObjId  )

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

Calls MR_ObjMap_autoResizeSet_3().

◆ back()

auto meshlib::ObjMap::back ( ) const -> &meshlib::ObjId

Generated from method MR::ObjMap::back.

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

◆ back_id()

auto meshlib::ObjMap::back_id ( ) const -> meshlib::ObjId

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

Calls MR_ObjMap_backId().

◆ back_mut()

auto meshlib::ObjMap::back_mut ( ) -> &mut meshlib::ObjId

Generated from method MR::ObjMap::back.

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

◆ begin_id()

auto meshlib::ObjMap::begin_id ( ) const -> meshlib::ObjId

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

Calls MR_ObjMap_beginId().

◆ capacity()

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

Generated from method MR::ObjMap::capacity.

Calls MR_ObjMap_capacity().

◆ clear()

void meshlib::ObjMap::clear ( )

Generated from method MR::ObjMap::clear.

Calls MR_ObjMap_clear().

◆ construct()

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

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

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

◆ construct_fill()

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

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

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

Generated from constructor MR::ObjMap::ObjMap.

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

◆ data()

auto meshlib::ObjMap::data ( ) const -> Option<&meshlib::ObjId >

Generated from method MR::ObjMap::data.

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

◆ data_mut()

auto meshlib::ObjMap::data_mut ( ) -> Option<&mut meshlib::ObjId >

Generated from method MR::ObjMap::data.

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

◆ empty()

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

Generated from method MR::ObjMap::empty.

Calls MR_ObjMap_empty().

◆ end_id()

auto meshlib::ObjMap::end_id ( ) const -> meshlib::ObjId

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

Calls MR_ObjMap_endId().

◆ front()

auto meshlib::ObjMap::front ( ) const -> &meshlib::ObjId

Generated from method MR::ObjMap::front.

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

◆ front_mut()

auto meshlib::ObjMap::front_mut ( ) -> &mut meshlib::ObjId

Generated from method MR::ObjMap::front.

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

◆ heap_bytes()

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

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

Calls MR_ObjMap_heapBytes().

◆ index()

auto meshlib::ObjMap::index ( i:meshlib::ObjId ) const -> &meshlib::ObjId

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

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

◆ index_mut()

auto meshlib::ObjMap::index_mut ( i:meshlib::ObjId ) -> &mut meshlib::ObjId

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

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

◆ max_size()

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

Generated from method MR::ObjMap::max_size.

Calls MR_ObjMap_max_size().

◆ new()

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

creates empty vector

Calls MR_ObjMap_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_ObjMap().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_ObjMap().

◆ pop_back()

void meshlib::ObjMap::pop_back ( )

Generated from method MR::ObjMap::pop_back.

Calls MR_ObjMap_pop_back().

◆ push_back_const_mr_obj_id_ref()

void meshlib::ObjMap::push_back_const_mr_obj_id_ref ( t:&meshlib::ObjId )

Generated from method MR::ObjMap::push_back.

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

◆ push_back_mr_obj_id_rvalue_ref()

void meshlib::ObjMap::push_back_mr_obj_id_rvalue_ref ( t:&mut meshlib::ObjId )

Generated from method MR::ObjMap::push_back.

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

◆ reserve()

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

Generated from method MR::ObjMap::reserve.

Calls MR_ObjMap_reserve().

◆ resize_1()

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

Generated from method MR::ObjMap::resize.

Calls MR_ObjMap_resize_1().

◆ resize_2()

void meshlib::ObjMap::resize_2 ( newSize:usize ,
t:&meshlib::ObjId  )

Generated from method MR::ObjMap::resize.

Calls MR_ObjMap_resize_2().

◆ resize_no_init()

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

Calls MR_ObjMap_resizeNoInit().

◆ resize_with_reserve_1()

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

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

Calls MR_ObjMap_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::ObjMap::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::ObjId  )

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

Calls MR_ObjMap_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::ObjMap::set_vec ( value:&meshlib::std_vector_MR_ObjId_MR_Allocator_MR_ObjId )

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

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

◆ shrink_to_fit()

void meshlib::ObjMap::shrink_to_fit ( )

Generated from method MR::ObjMap::shrink_to_fit.

Calls MR_ObjMap_shrink_to_fit().

◆ size()

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

Generated from method MR::ObjMap::size.

Calls MR_ObjMap_size().

◆ swap()

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

Generated from method MR::ObjMap::swap.

Calls MR_ObjMap_swap().

◆ vec()

auto meshlib::ObjMap::vec ( ) const -> &meshlib::std_vector_MR_ObjId_MR_Allocator_MR_ObjId

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

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

◆ vec_mut()

auto meshlib::ObjMap::vec_mut ( ) -> &mut meshlib::std_vector_MR_ObjId_MR_Allocator_MR_ObjId

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

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