MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::Buffer_MR_NodeId_MR_NodeId Struct Reference

std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods More...

Inheritance diagram for meshlib::Buffer_MR_NodeId_MR_NodeId:

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >) -> &mut meshlib::Buffer_MR_NodeId_MR_NodeId
auto capacity () const -> usize
auto size () const -> usize
auto empty () const -> bool
void clear ()
void resize (newSize:usize)
auto index (i:meshlib::NodeId) const -> &meshlib::NoDefInit_MR_NodeId
auto index_mut (i:meshlib::NodeId) -> &mut meshlib::NoDefInit_MR_NodeId
auto data_mut () -> Option<&mut meshlib::NoDefInit_MR_NodeId >
auto data () const -> Option<&mut meshlib::NoDefInit_MR_NodeId >
auto begin_id () const -> meshlib::NodeId
auto back_id () const -> meshlib::NodeId
auto end_id () const -> meshlib::NodeId
auto heap_bytes () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >
static auto construct_from_another (_other:meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >) -> meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >
static auto construct (size:usize) -> meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods

Template Parameters
Vtype of stored elements
Itype of index (shall be convertible to size_t)

Generated from class MR::Buffer<MR::NodeId, MR::NodeId>.

Generated from class MR::Buffer<MR::NodeId, MR::NodeId>. Heap-allocated instances are held in Owned<Buffer_MR_NodeId_MR_NodeId>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::assign_from_another ( _other:meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId > ) -> &mut meshlib::Buffer_MR_NodeId_MR_NodeId

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::operator=.

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

◆ back_id()

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

returns the identifier of the back() element Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::backId.

Calls MR_Buffer_MR_NodeId_MR_NodeId_backId().

◆ begin_id()

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

returns the identifier of the first element Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::beginId.

Calls MR_Buffer_MR_NodeId_MR_NodeId_beginId().

◆ capacity()

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

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::capacity.

Calls MR_Buffer_MR_NodeId_MR_NodeId_capacity().

◆ clear()

void meshlib::Buffer_MR_NodeId_MR_NodeId::clear ( )

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::clear.

Calls MR_Buffer_MR_NodeId_MR_NodeId_clear().

◆ construct()

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

Generated from constructor MR::Buffer<MR::NodeId, MR::NodeId>::Buffer.

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

◆ construct_from_another()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::construct_from_another ( _other:meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId > ) -> meshlib::Owned< meshlib::Buffer_MR_NodeId_MR_NodeId >
static

Generated from constructor MR::Buffer<MR::NodeId, MR::NodeId>::Buffer.

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

◆ data()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::data ( ) const -> Option<&mut meshlib::NoDefInit_MR_NodeId >

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::data.

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

◆ data_mut()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::data_mut ( ) -> Option<&mut meshlib::NoDefInit_MR_NodeId >

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::data.

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

◆ empty()

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

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::empty.

Calls MR_Buffer_MR_NodeId_MR_NodeId_empty().

◆ end_id()

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

returns backId() + 1 Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::endId.

Calls MR_Buffer_MR_NodeId_MR_NodeId_endId().

◆ heap_bytes()

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

returns the amount of memory this object occupies on heap Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::heapBytes.

Calls MR_Buffer_MR_NodeId_MR_NodeId_heapBytes().

◆ index()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::index ( i:meshlib::NodeId ) const -> &meshlib::NoDefInit_MR_NodeId

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::operator[].

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

◆ index_mut()

auto meshlib::Buffer_MR_NodeId_MR_NodeId::index_mut ( i:meshlib::NodeId ) -> &mut meshlib::NoDefInit_MR_NodeId

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::operator[].

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Buffer_MR_NodeId_MR_NodeId_DefaultConstruct().

◆ resize()

void meshlib::Buffer_MR_NodeId_MR_NodeId::resize ( newSize:usize )

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::resize.

Calls MR_Buffer_MR_NodeId_MR_NodeId_resize().

◆ size()

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

Generated from method MR::Buffer<MR::NodeId, MR::NodeId>::size.

Calls MR_Buffer_MR_NodeId_MR_NodeId_size().


The documentation for this struct was generated from the following file: