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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ assign_from_another()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_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_VoxelId_MR_VoxelId::back_id ( ) const -> meshlib::VoxelId

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_backId().

◆ begin_id()

auto meshlib::Buffer_MR_VoxelId_MR_VoxelId::begin_id ( ) const -> meshlib::VoxelId

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_beginId().

◆ capacity()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_capacity().

◆ clear()

void meshlib::Buffer_MR_VoxelId_MR_VoxelId::clear ( )

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_clear().

◆ construct()

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

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

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

◆ construct_from_another()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_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_VoxelId_MR_VoxelId::data ( ) const -> Option<&mut meshlib::NoDefInit_MR_VoxelId >

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

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

◆ data_mut()

auto meshlib::Buffer_MR_VoxelId_MR_VoxelId::data_mut ( ) -> Option<&mut meshlib::NoDefInit_MR_VoxelId >

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

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

◆ empty()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_empty().

◆ end_id()

auto meshlib::Buffer_MR_VoxelId_MR_VoxelId::end_id ( ) const -> meshlib::VoxelId

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_endId().

◆ heap_bytes()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_heapBytes().

◆ index()

auto meshlib::Buffer_MR_VoxelId_MR_VoxelId::index ( i:meshlib::VoxelId ) const -> &meshlib::NoDefInit_MR_VoxelId

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

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

◆ index_mut()

auto meshlib::Buffer_MR_VoxelId_MR_VoxelId::index_mut ( i:meshlib::VoxelId ) -> &mut meshlib::NoDefInit_MR_VoxelId

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_DefaultConstruct().

◆ resize()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_resize().

◆ size()

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

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

Calls MR_Buffer_MR_VoxelId_MR_VoxelId_size().


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