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

Public Member Functions

auto assign_from_another (_other:&meshlib::Dipoles) -> &mut meshlib::Dipoles
void assign (count:usize, val:&meshlib::Dipole)
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::Dipole)
auto capacity () const -> usize
void reserve (capacity:usize)
void shrink_to_fit ()
auto index (i:meshlib::NodeId) const -> &meshlib::Dipole
auto index_mut (i:meshlib::NodeId) -> &mut meshlib::Dipole
void resize_with_reserve_1 (newSize:usize)
void resize_with_reserve_2 (newSize:usize, value:&meshlib::Dipole)
void auto_resize_set_3 (pos:meshlib::NodeId, len:usize, val:&meshlib::Dipole)
void auto_resize_set_2 (i:meshlib::NodeId, val:&meshlib::Dipole)
auto auto_resize_at (i:meshlib::NodeId) -> &mut meshlib::Dipole
void push_back_const_mr_dipole_ref (t:&meshlib::Dipole)
void push_back_mr_dipole_rvalue_ref (t:&mut meshlib::Dipole)
void pop_back ()
auto front () const -> &meshlib::Dipole
auto front_mut () -> &mut meshlib::Dipole
auto back () const -> &meshlib::Dipole
auto back_mut () -> &mut meshlib::Dipole
auto begin_id () const -> meshlib::NodeId
auto back_id () const -> meshlib::NodeId
auto end_id () const -> meshlib::NodeId
auto data_mut () -> Option<&mut meshlib::Dipole >
auto data () const -> Option<&meshlib::Dipole >
void swap (b:&mut meshlib::Dipoles)
auto heap_bytes () const -> usize
auto vec () const -> &meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole
auto vec_mut () -> &mut meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole
void set_vec (value:&meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole)

Static Public Member Functions

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

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

Member Function Documentation

◆ assign()

void meshlib::Dipoles::assign ( count:usize ,
val:&meshlib::Dipole  )

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

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

◆ assign_from_another()

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

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

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

◆ auto_resize_at()

auto meshlib::Dipoles::auto_resize_at ( i:meshlib::NodeId ) -> &mut meshlib::Dipole

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

Calls MR_Dipoles_autoResizeAt().

◆ auto_resize_set_2()

void meshlib::Dipoles::auto_resize_set_2 ( i:meshlib::NodeId ,
val:&meshlib::Dipole  )

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

Calls MR_Dipoles_autoResizeSet_2().

◆ auto_resize_set_3()

void meshlib::Dipoles::auto_resize_set_3 ( pos:meshlib::NodeId ,
len:usize ,
val:&meshlib::Dipole  )

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

Calls MR_Dipoles_autoResizeSet_3().

◆ back()

auto meshlib::Dipoles::back ( ) const -> &meshlib::Dipole

Generated from method MR::Dipoles::back.

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

◆ back_id()

auto meshlib::Dipoles::back_id ( ) const -> meshlib::NodeId

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

Calls MR_Dipoles_backId().

◆ back_mut()

auto meshlib::Dipoles::back_mut ( ) -> &mut meshlib::Dipole

Generated from method MR::Dipoles::back.

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

◆ begin_id()

auto meshlib::Dipoles::begin_id ( ) const -> meshlib::NodeId

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

Calls MR_Dipoles_beginId().

◆ capacity()

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

Generated from method MR::Dipoles::capacity.

Calls MR_Dipoles_capacity().

◆ clear()

void meshlib::Dipoles::clear ( )

Generated from method MR::Dipoles::clear.

Calls MR_Dipoles_clear().

◆ construct()

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

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

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

◆ construct_fill()

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

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

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

Generated from constructor MR::Dipoles::Dipoles.

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

◆ data()

auto meshlib::Dipoles::data ( ) const -> Option<&meshlib::Dipole >

Generated from method MR::Dipoles::data.

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

◆ data_mut()

auto meshlib::Dipoles::data_mut ( ) -> Option<&mut meshlib::Dipole >

Generated from method MR::Dipoles::data.

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

◆ empty()

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

Generated from method MR::Dipoles::empty.

Calls MR_Dipoles_empty().

◆ end_id()

auto meshlib::Dipoles::end_id ( ) const -> meshlib::NodeId

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

Calls MR_Dipoles_endId().

◆ front()

auto meshlib::Dipoles::front ( ) const -> &meshlib::Dipole

Generated from method MR::Dipoles::front.

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

◆ front_mut()

auto meshlib::Dipoles::front_mut ( ) -> &mut meshlib::Dipole

Generated from method MR::Dipoles::front.

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

◆ heap_bytes()

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

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

Calls MR_Dipoles_heapBytes().

◆ index()

auto meshlib::Dipoles::index ( i:meshlib::NodeId ) const -> &meshlib::Dipole

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

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

◆ index_mut()

auto meshlib::Dipoles::index_mut ( i:meshlib::NodeId ) -> &mut meshlib::Dipole

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

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

◆ max_size()

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

Generated from method MR::Dipoles::max_size.

Calls MR_Dipoles_max_size().

◆ new()

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

creates empty vector

Calls MR_Dipoles_DefaultConstruct().

◆ pop_back()

void meshlib::Dipoles::pop_back ( )

Generated from method MR::Dipoles::pop_back.

Calls MR_Dipoles_pop_back().

◆ push_back_const_mr_dipole_ref()

void meshlib::Dipoles::push_back_const_mr_dipole_ref ( t:&meshlib::Dipole )

Generated from method MR::Dipoles::push_back.

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

◆ push_back_mr_dipole_rvalue_ref()

void meshlib::Dipoles::push_back_mr_dipole_rvalue_ref ( t:&mut meshlib::Dipole )

Generated from method MR::Dipoles::push_back.

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

◆ reserve()

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

Generated from method MR::Dipoles::reserve.

Calls MR_Dipoles_reserve().

◆ resize_1()

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

Generated from method MR::Dipoles::resize.

Calls MR_Dipoles_resize_1().

◆ resize_2()

void meshlib::Dipoles::resize_2 ( newSize:usize ,
t:&meshlib::Dipole  )

Generated from method MR::Dipoles::resize.

Calls MR_Dipoles_resize_2().

◆ resize_with_reserve_1()

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

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

Calls MR_Dipoles_resizeWithReserve_1().

Deprecated
use resize() instead

◆ resize_with_reserve_2()

void meshlib::Dipoles::resize_with_reserve_2 ( newSize:usize ,
value:&meshlib::Dipole  )

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

Calls MR_Dipoles_resizeWithReserve_2().

Deprecated
use resize() instead

◆ set_vec()

void meshlib::Dipoles::set_vec ( value:&meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole )

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

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

◆ shrink_to_fit()

void meshlib::Dipoles::shrink_to_fit ( )

Generated from method MR::Dipoles::shrink_to_fit.

Calls MR_Dipoles_shrink_to_fit().

◆ size()

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

Generated from method MR::Dipoles::size.

Calls MR_Dipoles_size().

◆ swap()

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

Generated from method MR::Dipoles::swap.

Calls MR_Dipoles_swap().

◆ vec()

auto meshlib::Dipoles::vec ( ) const -> &meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole

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

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

◆ vec_mut()

auto meshlib::Dipoles::vec_mut ( ) -> &mut meshlib::std_vector_MR_Dipole_MR_Allocator_MR_Dipole

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

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