12#ifndef ARCANE_MATERIALS_MESHBLOCK_H
13#define ARCANE_MATERIALS_MESHBLOCK_H
17#include "arcane/utils/TraceAccessor.h"
19#include "arcane/core/ItemGroup.h"
21#include "arcane/materials/IMeshBlock.h"
22#include "arcane/materials/MeshBlockBuildInfo.h"
48 virtual ~MeshBlock() {}
Constant view of an array of type T.
View over a list of cells with environment information.
Interface of a mesh block.
Interface of a mesh environment.
Interface for the material and environment manager of a mesh.
Brief: Information for the creation of a block.
void addEnvironment(IMeshEnvironment *env)
Adds the environment env to the block.
String m_name
Material name.
UniqueArray< IMeshEnvironment * > m_environments
List of materials/environments in this block.
IMeshMaterialMng * m_material_mng
Material manager.
Int32 m_block_id
Material identifier (index of this material in the list of materials).
virtual const String & name() const
Block name.
virtual IMeshMaterialMng * materialMng()
Associated manager.
CellGroup m_cells
List of cells for this material.
virtual Integer nbEnvironment() const
Number of environments in the block.
void build()
Public functions but reserved for IMeshMaterialMng.
void removeEnvironment(IMeshEnvironment *env)
Removes the environment env from the block.
virtual AllEnvCellVectorView view()
View of the environments cells corresponding to this block.
virtual Int32 id() const
Block identifier. It is also the index (starting from 0) of this block in the list of blocks.
virtual const CellGroup & cells() const
Cell group of this block.
virtual ConstArrayView< IMeshEnvironment * > environments()
List of environments in this block.
Unicode character string.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
1D data vector with value semantics (STL style).
ItemGroupT< Cell > CellGroup
Group of cells.
Always enables tracing in Arcane parts concerning materials.
Int32 Integer
Type representing an integer.
std::int32_t Int32
Signed integer type of 32 bits.