MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::Buffer_MR_GraphVertId_MR_GraphVertId 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_GraphVertId_MR_GraphVertId:

Public Member Functions

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

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Buffer_MR_GraphVertId_MR_GraphVertId >
static auto construct_from_another (_other:meshlib::Owned< meshlib::Buffer_MR_GraphVertId_MR_GraphVertId >) -> meshlib::Owned< meshlib::Buffer_MR_GraphVertId_MR_GraphVertId >
static auto construct (size:usize) -> meshlib::Owned< meshlib::Buffer_MR_GraphVertId_MR_GraphVertId >
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::GraphVertId, MR::GraphVertId>.

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

Member Function Documentation

◆ assign_from_another()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_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_GraphVertId_MR_GraphVertId::back_id ( ) const -> meshlib::GraphVertId

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_backId().

◆ begin_id()

auto meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::begin_id ( ) const -> meshlib::GraphVertId

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_beginId().

◆ capacity()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_capacity().

◆ clear()

void meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::clear ( )

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_clear().

◆ construct()

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

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

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

◆ construct_from_another()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_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_GraphVertId_MR_GraphVertId::data ( ) const -> Option<&mut meshlib::NoDefInit_MR_GraphVertId >

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

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

◆ data_mut()

auto meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::data_mut ( ) -> Option<&mut meshlib::NoDefInit_MR_GraphVertId >

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

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

◆ empty()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_empty().

◆ end_id()

auto meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::end_id ( ) const -> meshlib::GraphVertId

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_endId().

◆ heap_bytes()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_heapBytes().

◆ index()

auto meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::index ( i:meshlib::GraphVertId ) const -> &meshlib::NoDefInit_MR_GraphVertId

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

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

◆ index_mut()

auto meshlib::Buffer_MR_GraphVertId_MR_GraphVertId::index_mut ( i:meshlib::GraphVertId ) -> &mut meshlib::NoDefInit_MR_GraphVertId

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_DefaultConstruct().

◆ resize()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_resize().

◆ size()

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

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

Calls MR_Buffer_MR_GraphVertId_MR_GraphVertId_size().


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