12#ifndef ARCANE_CORE_ANYITEM_ANYITEMARRAY2_H
13#define ARCANE_CORE_ANYITEM_ANYITEMARRAY2_H
17#include "arcane/utils/Array2.h"
19#include "arcane/core/IItemFamily.h"
20#include "arcane/core/anyitem/AnyItemGlobal.h"
25namespace Arcane::AnyItem
50template <
typename DataType>
55 Array2(
const Group& group)
59 if (e.groupIndex() >=
m_values.size())
63 m_values[e.groupIndex()].resize(e.group().itemFamily()->maxLocalId(),
m_size);
77 void fill(
const DataType& data)
88 return m_values[item.groupIndex()][item.varIndex()];
95 return m_values[item.groupIndex()][item.varIndex()];
Arcane::UniqueArray< Arcane::UniqueArray2< DataType > > m_values
Container for generic variables.
void resize(Integer size)
Resizing the second dimension of the array.
Integer size() const
Returns the size of the array.
ArrayView< DataType > operator[](const T &item)
Accessor.
void fill(const DataType &data)
Filling the array.
Integer m_size
Size of the array's second dimension.
Enumerator of item blocks.
AnyItem Group Aggregation of Arcane group + information {partial or not} for variables Construction w...
Enumerator enumerator() const
Enumerator of the group.
Modifiable view of an array of type T.
Constant view of an array of type T.
1D data vector with value semantics (STL style).
Int32 Integer
Type representing an integer.