14#include "arcane/utils/ArgumentException.h"
16#include "arcane/IMesh.h"
18#include "arcane/materials/MeshBlock.h"
19#include "arcane/materials/IMeshMaterialMng.h"
20#include "arcane/materials/MatItemEnumerator.h"
29MATERIALS_BEGIN_NAMESPACE
38MeshBlock(IMeshMaterialMng* mm,Int32 block_id,
const MeshBlockBuildInfo& info)
39: TraceAccessor(mm->traceMng())
43, m_cells(info.cells())
44, m_environments(info.environments())
62 return m_material_mng->view(m_cells);
76 if (m_environments.contains(env))
78 String::format(
"environment {0} already in block {1}",
79 env->
name(),this->name()));
80 m_environments.add(env);
95 for( Integer i=0, n=m_environments.size(); i<n; ++i )
96 if (m_environments[i]==env){
102 String::format(
"environment {0} not in block {1}",
103 env->
name(),this->name()));
104 m_environments.remove(index);
110MATERIALS_END_NAMESPACE
virtual String name() const =0
Nom du composant.
Interface d'un milieu d'un maillage.
Exception lorsqu'un argument est invalide.