12#ifndef ARCANE_CORE_ANYITEM_ANYITEMLINKVARIABLE_H
13#define ARCANE_CORE_ANYITEM_ANYITEMLINKVARIABLE_H
17#include "arcane/core/anyitem/AnyItemGlobal.h"
22namespace Arcane::AnyItem
50template <
typename DataType>
63 LinkVariable(
const LinkVariable& v)
76 inline DataType&
operator[](
const LinkFamily::LinkIndex& item)
82 inline DataType
operator[](
const LinkFamily::LinkIndex& item)
const
AnyItem link family observer interface.
AnyItem link family (flyweight pattern).
Arcane::UniqueArray< DataType > m_values
Values.
DataType & operator[](const LinkFamily::LinkIndex &item)
Accessor.
void notifyFamilyIsInvalidate()
Action if the family is invalidated: we resize.
DataType operator[](const LinkFamily::LinkIndex &item) const
Accessor.
const LinkFamily m_family
Link family.
void notifyFamilyIsReserved()
Action if the family is reserved: we resize.
1D data vector with value semantics (STL style).
void arcaneCallFunctionAndTerminateIfThrow(std::function< void()> function)
Calls the function function and calls std::terminate() if an exception occurs.