12#ifndef ARCANE_CORE_ANYITEM_ANYITEMLINKVARIABLEARRAY_H
13#define ARCANE_CORE_ANYITEM_ANYITEMLINKVARIABLEARRAY_H
17#include "arcane/core/anyitem/AnyItemGlobal.h"
22namespace Arcane::AnyItem
52template <
typename DataType>
53class LinkVariableArray
66 LinkVariableArray(
const LinkVariableArray& v)
AnyItem link family observer interface.
AnyItem link family (flyweight pattern).
void notifyFamilyIsReserved()
Action if the family is reserved: we resize.
ArrayView< DataType > operator[](const LinkFamily::LinkIndex &item)
Accessor.
void notifyFamilyIsInvalidate()
Action if the family is invalidated: we resize.
ConstArrayView< DataType > operator[](const LinkFamily::LinkIndex &item) const
Accessor const.
Integer size() const
Returns the size of the array.
const LinkFamily m_family
Link family.
Arcane::UniqueArray2< DataType > m_values
Values.
void resize(Integer size)
Resizing of the second dimension of the array.
Integer m_size
Size of the 2nd dimension of the array.
Modifiable view of an array of type T.
Constant view of an array of type T.
2D data vector with value semantics (STL style).
Int32 Integer
Type representing an integer.
void arcaneCallFunctionAndTerminateIfThrow(std::function< void()> function)
Calls the function function and calls std::terminate() if an exception occurs.