14#include "arcane/core/VariableComparer.h"
16#include "arcane/core/IVariable.h"
17#include "arcane/core/internal/IVariableInternal.h"
56 compare_args.setDataReader(data_reader);
67 return var->
_internalApi()->compareVariable(compare_args);
#define ARCANE_CHECK_POINTER(ptr)
Macro returning the pointer ptr if it is not null or throwing an exception if it is null.
Interface for reading variable data.
virtual IVariableInternal * _internalApi()=0
Internal Arcane API.
Arguments for VariableComparer methods.
Results of a comparison operation.
VariableComparerArgs buildForCheckIfSameOnAllReplica()
Creates a comparison to verify that a variable is identical on all replicas.
VariableComparerResults apply(IVariable *var, const VariableComparerArgs &compare_args)
Applies the comparison compare_args to the variable var.
VariableComparerArgs buildForCheckIfSame(IDataReader *data_reader)
Creates a comparison to verify that a variable is identical to a reference value.
VariableComparerArgs buildForCheckIfSync()
Creates a comparison to verify that a variable is synchronized.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
@ SameOnAllReplica
Checks that the variable values are the same on all replicas.
@ Same
Compares with a reference.
@ Sync
Checks that the variable is synchronized.