14#include "arcane/core/materials/ComponentItemInternal.h"
16#include "arcane/utils/FixedArray.h"
17#include "arcane/utils/FatalErrorException.h"
55ComponentItemSharedInfo* ComponentItemSharedInfo::null_shared_info_pointer = &ComponentItemSharedInfo::null_shared_info;
58 std::once_flag component_set_null_instance_once_flag;
64void ComponentItemSharedInfo::
67 auto init_func = []() {
68 ComponentItemSharedInfo* x = null_shared_info_pointer;
69 NullComponentItemSharedInfoContainer& c = global_null_component_item_shared_info_container;
71 x->m_storage_size = 0;
72 x->m_first_sub_constituent_item_id_data = c.m_first_sub_constituent_item_id_list.data() + 1;
73 x->m_super_component_item_local_id_data = c.m_super_component_item_local_id_list.data() + 1;
74 x->m_component_id_data = c.m_component_id_list.data() + 1;
76 x->m_nb_sub_constituent_item_data = c.m_nb_sub_constituent_item_list.data() + 1;
77 x->m_global_item_local_id_data = c.m_global_item_local_id_list.data() + 1;
78 x->m_var_index_data = c.m_var_index_list.data() + 1;
82 std::call_once(component_set_null_instance_once_flag, init_func);
89operator<<(std::ostream& o,
const ConstituentItemIndex&
id)
98void ConstituentItemLocalIdListView::
99_checkCoherency()
const
101 if (!m_component_shared_info)
#define ARCANE_FATAL(...)
Macro envoyant une exception FatalErrorException.
Tableau 1D de taille fixe.
Représente un index sur les variables matériaux et milieux.
Conteneur pour l'entité nulle.
Active toujours les traces dans les parties Arcane concernant les matériaux.
std::ostream & operator<<(std::ostream &ostr, eItemKind item_kind)
Opérateur de sortie sur un flot.