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

Public Member Functions

auto assign_from_another (_other:&meshlib::Triangulation) -> &mut meshlib::Triangulation
void assign (count:usize, val:&meshlib::std_array_MR_VertId_3)
auto op_equal (b:&meshlib::Triangulation) const -> bool
auto op_not_equal (b:&meshlib::Triangulation) 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::std_array_MR_VertId_3)
auto capacity () const -> usize
void reserve (capacity:usize)
void shrink_to_fit ()
auto index (i:meshlib::FaceId) const -> &meshlib::std_array_MR_VertId_3
auto index_mut (i:meshlib::FaceId) -> &mut meshlib::std_array_MR_VertId_3
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::std_array_MR_VertId_3)
void auto_resize_set_3 (pos:meshlib::FaceId, len:usize, val:meshlib::std_array_MR_VertId_3)
void auto_resize_set_2 (i:meshlib::FaceId, val:meshlib::std_array_MR_VertId_3)
auto auto_resize_at (i:meshlib::FaceId) -> &mut meshlib::std_array_MR_VertId_3
void push_back_const_std_array_mr_vert_id_3_ref (t:&meshlib::std_array_MR_VertId_3)
void push_back_std_array_mr_vert_id_3_rvalue_ref (t:&mut meshlib::std_array_MR_VertId_3)
void pop_back ()
auto front () const -> &meshlib::std_array_MR_VertId_3
auto front_mut () -> &mut meshlib::std_array_MR_VertId_3
auto back () const -> &meshlib::std_array_MR_VertId_3
auto back_mut () -> &mut meshlib::std_array_MR_VertId_3
auto begin_id () const -> meshlib::FaceId
auto back_id () const -> meshlib::FaceId
auto end_id () const -> meshlib::FaceId
auto data_mut () -> Option<&mut meshlib::std_array_MR_VertId_3 >
auto data () const -> Option<&meshlib::std_array_MR_VertId_3 >
void swap (b:&mut meshlib::Triangulation)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3
auto vec_mut () -> &mut meshlib::std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3
void set_vec (value:&meshlib::std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3)

Static Public Member Functions

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

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

Member Function Documentation

◆ assign()

void meshlib::Triangulation::assign ( count:usize ,
val:&meshlib::std_array_MR_VertId_3  )

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

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

◆ assign_from_another()

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

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

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

◆ auto_resize_at()

auto meshlib::Triangulation::auto_resize_at ( i:meshlib::FaceId ) -> &mut meshlib::std_array_MR_VertId_3

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

Calls MR_Triangulation_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::Triangulation::auto_resize_set_2 ( i:meshlib::FaceId ,
val:meshlib::std_array_MR_VertId_3  )

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

Calls MR_Triangulation_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::Triangulation::auto_resize_set_3 ( pos:meshlib::FaceId ,
len:usize ,
val:meshlib::std_array_MR_VertId_3  )

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

Calls MR_Triangulation_autoResizeSet_3().

◆ back()

auto meshlib::Triangulation::back ( ) const -> &meshlib::std_array_MR_VertId_3

Generated from method MR::Triangulation::back.

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

◆ back_id()

auto meshlib::Triangulation::back_id ( ) const -> meshlib::FaceId

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

Calls MR_Triangulation_backId().

◆ back_mut()

auto meshlib::Triangulation::back_mut ( ) -> &mut meshlib::std_array_MR_VertId_3

Generated from method MR::Triangulation::back.

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

◆ begin_id()

auto meshlib::Triangulation::begin_id ( ) const -> meshlib::FaceId

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

Calls MR_Triangulation_beginId().

◆ capacity()

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

Generated from method MR::Triangulation::capacity.

Calls MR_Triangulation_capacity().

◆ clear()

void meshlib::Triangulation::clear ( )

Generated from method MR::Triangulation::clear.

Calls MR_Triangulation_clear().

◆ construct()

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

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

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

◆ construct_fill()

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

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

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

Generated from constructor MR::Triangulation::Triangulation.

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

◆ data()

auto meshlib::Triangulation::data ( ) const -> Option<&meshlib::std_array_MR_VertId_3 >

Generated from method MR::Triangulation::data.

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

◆ data_mut()

auto meshlib::Triangulation::data_mut ( ) -> Option<&mut meshlib::std_array_MR_VertId_3 >

Generated from method MR::Triangulation::data.

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

◆ empty()

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

Generated from method MR::Triangulation::empty.

Calls MR_Triangulation_empty().

◆ end_id()

auto meshlib::Triangulation::end_id ( ) const -> meshlib::FaceId

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

Calls MR_Triangulation_endId().

◆ front()

auto meshlib::Triangulation::front ( ) const -> &meshlib::std_array_MR_VertId_3

Generated from method MR::Triangulation::front.

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

◆ front_mut()

auto meshlib::Triangulation::front_mut ( ) -> &mut meshlib::std_array_MR_VertId_3

Generated from method MR::Triangulation::front.

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

◆ heap_bytes()

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

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

Calls MR_Triangulation_heapBytes().

◆ index()

auto meshlib::Triangulation::index ( i:meshlib::FaceId ) const -> &meshlib::std_array_MR_VertId_3

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

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

◆ index_mut()

auto meshlib::Triangulation::index_mut ( i:meshlib::FaceId ) -> &mut meshlib::std_array_MR_VertId_3

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

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

◆ max_size()

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

Generated from method MR::Triangulation::max_size.

Calls MR_Triangulation_max_size().

◆ new()

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

creates empty vector

Calls MR_Triangulation_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_Triangulation().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_Triangulation().

◆ pop_back()

void meshlib::Triangulation::pop_back ( )

Generated from method MR::Triangulation::pop_back.

Calls MR_Triangulation_pop_back().

◆ push_back_const_std_array_mr_vert_id_3_ref()

void meshlib::Triangulation::push_back_const_std_array_mr_vert_id_3_ref ( t:&meshlib::std_array_MR_VertId_3 )

Generated from method MR::Triangulation::push_back.

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

◆ push_back_std_array_mr_vert_id_3_rvalue_ref()

void meshlib::Triangulation::push_back_std_array_mr_vert_id_3_rvalue_ref ( t:&mut meshlib::std_array_MR_VertId_3 )

Generated from method MR::Triangulation::push_back.

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

◆ reserve()

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

Generated from method MR::Triangulation::reserve.

Calls MR_Triangulation_reserve().

◆ resize_1()

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

Generated from method MR::Triangulation::resize.

Calls MR_Triangulation_resize_1().

◆ resize_2()

void meshlib::Triangulation::resize_2 ( newSize:usize ,
t:&meshlib::std_array_MR_VertId_3  )

Generated from method MR::Triangulation::resize.

Calls MR_Triangulation_resize_2().

◆ resize_with_reserve_1()

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

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

Calls MR_Triangulation_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::Triangulation::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::std_array_MR_VertId_3  )

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

Calls MR_Triangulation_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

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

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

◆ shrink_to_fit()

void meshlib::Triangulation::shrink_to_fit ( )

Generated from method MR::Triangulation::shrink_to_fit.

Calls MR_Triangulation_shrink_to_fit().

◆ size()

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

Generated from method MR::Triangulation::size.

Calls MR_Triangulation_size().

◆ swap()

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

Generated from method MR::Triangulation::swap.

Calls MR_Triangulation_swap().

◆ vec()

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

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

◆ vec_mut()

auto meshlib::Triangulation::vec_mut ( ) -> &mut meshlib::std_vector_std_array_MR_VertId_3_MR_Allocator_std_array_MR_VertId_3

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

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