14#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/IMesh.h"
17#include "arcane/IIncrementalItemConnectivity.h"
19#include "arcane/mesh/ItemConnectivitySelector.h"
20#include "arcane/mesh/ItemFamily.h"
32ItemConnectivitySelector::
33ItemConnectivitySelector(ItemFamily* source_family,IItemFamily* target_family,
34 const String& connectivity_name,Integer connectivity_index)
35: TraceAccessor(source_family->traceMng())
36, m_source_family(source_family)
37, m_target_family(target_family)
38, m_connectivity_name(connectivity_name)
39, m_pre_allocated_size(0)
40, m_item_connectivity_index(connectivity_index)
41, m_item_connectivity_list(m_source_family->itemInternalConnectivityList())
49void ItemConnectivitySelector::
55 _createCustomConnectivity(m_connectivity_name);
56 info(4) <<
"Family: " << m_source_family->fullName()
57 <<
" create new connectivity: " << m_connectivity_name;
59 _buildCustomConnectivity();
66void ItemConnectivitySelector::
67setPreAllocatedSize(Integer size)
69 m_pre_allocated_size = size;
70 auto c = customConnectivity();
74 c->setPreAllocatedSize(size);