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() {}
57 return m_environments;
61 return m_environments.size();
Constant view of an array of type T.
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.
virtual const String & name() const
Block name.
virtual IMeshMaterialMng * materialMng()
Associated manager.
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.