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

Public Member Functions

auto assign_from_another (_other:&meshlib::mesh_components::ComponentsFaces) -> &mut meshlib::mesh_components::ComponentsFaces
void set_component_bits (compId:meshlib::RegionId, bs:&mut meshlib::FaceBitSet) const
auto faces () const -> &meshlib::std_vector_MR_FaceId
auto faces_mut () -> &mut meshlib::std_vector_MR_FaceId
void set_faces (value:&meshlib::std_vector_MR_FaceId)
auto offsets () const -> &meshlib::Vector_int_MR_RegionId
auto offsets_mut () -> &mut meshlib::Vector_int_MR_RegionId
void set_offsets (value:&meshlib::Vector_int_MR_RegionId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
static auto construct_from (faces:&meshlib::std_vector_MR_FaceId, offsets:&meshlib::Vector_int_MR_RegionId) -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
static auto construct_from_another (_other:&meshlib::mesh_components::ComponentsFaces) -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
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

faces of all components in one flat array Generated from class MR::MeshComponents::ComponentsFaces.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::mesh_components::ComponentsFaces::assign_from_another ( _other:&meshlib::mesh_components::ComponentsFaces ) -> &mut meshlib::mesh_components::ComponentsFaces

Generated from method MR::MeshComponents::ComponentsFaces::operator=.

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

◆ construct_from()

auto meshlib::mesh_components::ComponentsFaces::construct_from ( faces:&meshlib::std_vector_MR_FaceId ,
offsets:&meshlib::Vector_int_MR_RegionId  ) -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
static

Constructs MR::MeshComponents::ComponentsFaces elementwise.

Calls MR_MeshComponents_ComponentsFaces_ConstructFrom(). The reference to the parameter faces might be preserved in the constructed object. The reference to the parameter offsets might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::mesh_components::ComponentsFaces::construct_from_another ( _other:&meshlib::mesh_components::ComponentsFaces ) -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
static

Generated from constructor MR::MeshComponents::ComponentsFaces::ComponentsFaces.

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

◆ faces()

auto meshlib::mesh_components::ComponentsFaces::faces ( ) const -> &meshlib::std_vector_MR_FaceId

faces of component 0, then faces of component 1, ...; the faces of component i are faces[offsets[i]], ..., faces[offsets[i+1]-1] in increasing order Returns a pointer to a member variable of class MR::MeshComponents::ComponentsFaces named faces.

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

◆ faces_mut()

auto meshlib::mesh_components::ComponentsFaces::faces_mut ( ) -> &mut meshlib::std_vector_MR_FaceId

faces of component 0, then faces of component 1, ...; the faces of component i are faces[offsets[i]], ..., faces[offsets[i+1]-1] in increasing order Returns a mutable pointer to a member variable of class MR::MeshComponents::ComponentsFaces named faces.

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

◆ new()

auto meshlib::mesh_components::ComponentsFaces::new ( ) -> meshlib::Owned< meshlib::mesh_components::ComponentsFaces >
static

Constructs an empty (default-constructed) instance.

Calls MR_MeshComponents_ComponentsFaces_DefaultConstruct().

◆ offsets()

auto meshlib::mesh_components::ComponentsFaces::offsets ( ) const -> &meshlib::Vector_int_MR_RegionId

< the number of components + 1 elements, offsets.back() == faces.size() Returns a pointer to a member variable of class MR::MeshComponents::ComponentsFaces named offsets.

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

◆ offsets_mut()

auto meshlib::mesh_components::ComponentsFaces::offsets_mut ( ) -> &mut meshlib::Vector_int_MR_RegionId

< the number of components + 1 elements, offsets.back() == faces.size() Returns a mutable pointer to a member variable of class MR::MeshComponents::ComponentsFaces named offsets.

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

◆ set_component_bits()

void meshlib::mesh_components::ComponentsFaces::set_component_bits ( compId:meshlib::RegionId ,
bs:&mut meshlib::FaceBitSet  ) const

sets in given bit set the bits of all faces of component compId; bs must be large enough to contain them Generated from method MR::MeshComponents::ComponentsFaces::setComponentBits.

Calls MR_MeshComponents_ComponentsFaces_setComponentBits().

◆ set_faces()

void meshlib::mesh_components::ComponentsFaces::set_faces ( value:&meshlib::std_vector_MR_FaceId )

faces of component 0, then faces of component 1, ...; the faces of component i are faces[offsets[i]], ..., faces[offsets[i+1]-1] in increasing order Modifies a member variable of class MR::MeshComponents::ComponentsFaces named faces.

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

◆ set_offsets()

void meshlib::mesh_components::ComponentsFaces::set_offsets ( value:&meshlib::Vector_int_MR_RegionId )

< the number of components + 1 elements, offsets.back() == faces.size() Modifies a member variable of class MR::MeshComponents::ComponentsFaces named offsets.

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


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