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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ assign()

void meshlib::UndirectedEdgeColors::assign ( count:usize ,
val:&meshlib::Color  )

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

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

◆ assign_from_another()

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

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

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

◆ auto_resize_at()

auto meshlib::UndirectedEdgeColors::auto_resize_at ( i:meshlib::UndirectedEdgeId ) -> &mut meshlib::Color

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

Calls MR_UndirectedEdgeColors_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::UndirectedEdgeColors::auto_resize_set_2 ( i:meshlib::UndirectedEdgeId ,
val:meshlib::Color  )

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

Calls MR_UndirectedEdgeColors_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::UndirectedEdgeColors::auto_resize_set_3 ( pos:meshlib::UndirectedEdgeId ,
len:usize ,
val:meshlib::Color  )

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

Calls MR_UndirectedEdgeColors_autoResizeSet_3().

◆ back()

auto meshlib::UndirectedEdgeColors::back ( ) const -> &meshlib::Color

Generated from method MR::UndirectedEdgeColors::back.

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

◆ back_id()

auto meshlib::UndirectedEdgeColors::back_id ( ) const -> meshlib::UndirectedEdgeId

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

Calls MR_UndirectedEdgeColors_backId().

◆ back_mut()

auto meshlib::UndirectedEdgeColors::back_mut ( ) -> &mut meshlib::Color

Generated from method MR::UndirectedEdgeColors::back.

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

◆ begin_id()

auto meshlib::UndirectedEdgeColors::begin_id ( ) const -> meshlib::UndirectedEdgeId

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

Calls MR_UndirectedEdgeColors_beginId().

◆ capacity()

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

Generated from method MR::UndirectedEdgeColors::capacity.

Calls MR_UndirectedEdgeColors_capacity().

◆ clear()

void meshlib::UndirectedEdgeColors::clear ( )

Generated from method MR::UndirectedEdgeColors::clear.

Calls MR_UndirectedEdgeColors_clear().

◆ construct()

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

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

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

◆ construct_fill()

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

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

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

Generated from constructor MR::UndirectedEdgeColors::UndirectedEdgeColors.

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

◆ data()

auto meshlib::UndirectedEdgeColors::data ( ) const -> Option<&meshlib::Color >

Generated from method MR::UndirectedEdgeColors::data.

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

◆ data_mut()

auto meshlib::UndirectedEdgeColors::data_mut ( ) -> Option<&mut meshlib::Color >

Generated from method MR::UndirectedEdgeColors::data.

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

◆ empty()

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

Generated from method MR::UndirectedEdgeColors::empty.

Calls MR_UndirectedEdgeColors_empty().

◆ end_id()

auto meshlib::UndirectedEdgeColors::end_id ( ) const -> meshlib::UndirectedEdgeId

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

Calls MR_UndirectedEdgeColors_endId().

◆ front()

auto meshlib::UndirectedEdgeColors::front ( ) const -> &meshlib::Color

Generated from method MR::UndirectedEdgeColors::front.

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

◆ front_mut()

auto meshlib::UndirectedEdgeColors::front_mut ( ) -> &mut meshlib::Color

Generated from method MR::UndirectedEdgeColors::front.

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

◆ heap_bytes()

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

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

Calls MR_UndirectedEdgeColors_heapBytes().

◆ index()

auto meshlib::UndirectedEdgeColors::index ( i:meshlib::UndirectedEdgeId ) const -> &meshlib::Color

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

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

◆ index_mut()

auto meshlib::UndirectedEdgeColors::index_mut ( i:meshlib::UndirectedEdgeId ) -> &mut meshlib::Color

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

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

◆ max_size()

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

Generated from method MR::UndirectedEdgeColors::max_size.

Calls MR_UndirectedEdgeColors_max_size().

◆ new()

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

creates empty vector

Calls MR_UndirectedEdgeColors_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_UndirectedEdgeColors().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_UndirectedEdgeColors().

◆ pop_back()

void meshlib::UndirectedEdgeColors::pop_back ( )

Generated from method MR::UndirectedEdgeColors::pop_back.

Calls MR_UndirectedEdgeColors_pop_back().

◆ push_back_const_mr_color_ref()

void meshlib::UndirectedEdgeColors::push_back_const_mr_color_ref ( t:&meshlib::Color )

Generated from method MR::UndirectedEdgeColors::push_back.

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

◆ push_back_mr_color_rvalue_ref()

void meshlib::UndirectedEdgeColors::push_back_mr_color_rvalue_ref ( t:&mut meshlib::Color )

Generated from method MR::UndirectedEdgeColors::push_back.

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

◆ reserve()

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

Generated from method MR::UndirectedEdgeColors::reserve.

Calls MR_UndirectedEdgeColors_reserve().

◆ resize_1()

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

Generated from method MR::UndirectedEdgeColors::resize.

Calls MR_UndirectedEdgeColors_resize_1().

◆ resize_2()

void meshlib::UndirectedEdgeColors::resize_2 ( newSize:usize ,
t:&meshlib::Color  )

Generated from method MR::UndirectedEdgeColors::resize.

Calls MR_UndirectedEdgeColors_resize_2().

◆ resize_no_init()

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

Calls MR_UndirectedEdgeColors_resizeNoInit().

◆ resize_with_reserve_1()

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

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

Calls MR_UndirectedEdgeColors_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::UndirectedEdgeColors::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::Color  )

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

Calls MR_UndirectedEdgeColors_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::UndirectedEdgeColors::set_vec ( value:&meshlib::std_vector_MR_Color_MR_Allocator_MR_Color )

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

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

◆ shrink_to_fit()

void meshlib::UndirectedEdgeColors::shrink_to_fit ( )

Generated from method MR::UndirectedEdgeColors::shrink_to_fit.

Calls MR_UndirectedEdgeColors_shrink_to_fit().

◆ size()

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

Generated from method MR::UndirectedEdgeColors::size.

Calls MR_UndirectedEdgeColors_size().

◆ swap()

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

Generated from method MR::UndirectedEdgeColors::swap.

Calls MR_UndirectedEdgeColors_swap().

◆ vec()

auto meshlib::UndirectedEdgeColors::vec ( ) const -> &meshlib::std_vector_MR_Color_MR_Allocator_MR_Color

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

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

◆ vec_mut()

auto meshlib::UndirectedEdgeColors::vec_mut ( ) -> &mut meshlib::std_vector_MR_Color_MR_Allocator_MR_Color

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

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