14#include "arcane/utils/NotImplementedException.h"
15#include "arcane/utils/TraceInfo.h"
17#include "arcane/core/AbstractDataVisitor.h"
18#include "arcane/core/IData.h"
29void AbstractDataVisitor::
30applyDataVisitor(IScalarData* data)
32 data->visitScalar(
this);
35void AbstractDataVisitor::
36applyDataVisitor(IArrayData* data)
38 data->visitArray(
this);
41void AbstractDataVisitor::
42applyDataVisitor(IArray2Data* data)
44 data->visitArray2(
this);
50void AbstractScalarDataVisitor::
53 String s = String::format(
"scalar visitor not implemented for data type '{0}'",
55 throw NotImplementedException(A_FUNCINFO,s);
58void AbstractScalarDataVisitor::
59applyVisitor(IScalarDataT<Byte>* data)
65void AbstractScalarDataVisitor::
66applyVisitor(IScalarDataT<Real>* data)
72void AbstractScalarDataVisitor::
73applyVisitor(IScalarDataT<Int16>* data)
79void AbstractScalarDataVisitor::
80applyVisitor(IScalarDataT<Int32>* data)
86void AbstractScalarDataVisitor::
87applyVisitor(IScalarDataT<Int64>* data)
93void AbstractScalarDataVisitor::
94applyVisitor(IScalarDataT<Real2>* data)
100void AbstractScalarDataVisitor::
101applyVisitor(IScalarDataT<Real3>* data)
107void AbstractScalarDataVisitor::
108applyVisitor(IScalarDataT<Real2x2>* data)
114void AbstractScalarDataVisitor::
115applyVisitor(IScalarDataT<Real3x3>* data)
121void AbstractScalarDataVisitor::
122applyVisitor(IScalarDataT<String>* data)
128void AbstractScalarDataVisitor::
129applyVisitor(IScalarDataT<Int8>* data)
135void AbstractScalarDataVisitor::
136applyVisitor(IScalarDataT<Float16>* data)
142void AbstractScalarDataVisitor::
143applyVisitor(IScalarDataT<BFloat16>* data)
149void AbstractScalarDataVisitor::
150applyVisitor(IScalarDataT<Float32>* data)
159void AbstractArrayDataVisitor::
162 String s = String::format(
"array visitor not implemented for data type '{0}'",
164 throw NotImplementedException(A_FUNCINFO,s);
167void AbstractArrayDataVisitor::
168applyVisitor(IArrayDataT<Byte>* data)
174void AbstractArrayDataVisitor::
175applyVisitor(IArrayDataT<Real>* data)
181void AbstractArrayDataVisitor::
182applyVisitor(IArrayDataT<Int16>* data)
188void AbstractArrayDataVisitor::
189applyVisitor(IArrayDataT<Int32>* data)
195void AbstractArrayDataVisitor::
196applyVisitor(IArrayDataT<Int64>* data)
202void AbstractArrayDataVisitor::
203applyVisitor(IArrayDataT<Real2>* data)
209void AbstractArrayDataVisitor::
210applyVisitor(IArrayDataT<Real3>* data)
216void AbstractArrayDataVisitor::
217applyVisitor(IArrayDataT<Real2x2>* data)
223void AbstractArrayDataVisitor::
224applyVisitor(IArrayDataT<Real3x3>* data)
230void AbstractArrayDataVisitor::
231applyVisitor(IArrayDataT<String>* data)
237void AbstractArrayDataVisitor::
238applyVisitor(IArrayDataT<Int8>* data)
244void AbstractArrayDataVisitor::
245applyVisitor(IArrayDataT<Float16>* data)
251void AbstractArrayDataVisitor::
252applyVisitor(IArrayDataT<BFloat16>* data)
258void AbstractArrayDataVisitor::
259applyVisitor(IArrayDataT<Float32>* data)
268void AbstractArray2DataVisitor::
271 String s = String::format(
"array2 visitor not implemented for data type '{0}'",
273 throw NotImplementedException(A_FUNCINFO,s);
276void AbstractArray2DataVisitor::
277applyVisitor(IArray2DataT<Byte>* data)
283void AbstractArray2DataVisitor::
284applyVisitor(IArray2DataT<Real>* data)
290void AbstractArray2DataVisitor::
291applyVisitor(IArray2DataT<Int16>* data)
297void AbstractArray2DataVisitor::
298applyVisitor(IArray2DataT<Int32>* data)
304void AbstractArray2DataVisitor::
305applyVisitor(IArray2DataT<Int64>* data)
311void AbstractArray2DataVisitor::
312applyVisitor(IArray2DataT<Real2>* data)
318void AbstractArray2DataVisitor::
319applyVisitor(IArray2DataT<Real3>* data)
325void AbstractArray2DataVisitor::
326applyVisitor(IArray2DataT<Real2x2>* data)
332void AbstractArray2DataVisitor::
333applyVisitor(IArray2DataT<Real3x3>* data)
339void AbstractArray2DataVisitor::
340applyVisitor(IArray2DataT<Int8>* data)
346void AbstractArray2DataVisitor::
347applyVisitor(IArray2DataT<Float16>* data)
353void AbstractArray2DataVisitor::
354applyVisitor(IArray2DataT<BFloat16>* data)
360void AbstractArray2DataVisitor::
361applyVisitor(IArray2DataT<Float32>* data)
370void AbstractMultiArray2DataVisitor::
373 String s = String::format(
"multiarray2 visitor not implemented for data type '{0}'",
375 throw NotImplementedException(A_FUNCINFO,s);
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eDataType
Type d'une donnée.
@ DT_Float32
Donnée de type 'Float32'.
@ DT_Real2x2
Donnée de type tenseur 3x3.
@ DT_Int16
Donnée de type entier 16 bits.
@ DT_Int8
Donnée de type entier sur 8 bits.
@ DT_Real3x3
Donnée de type tenseur 3x3.
@ DT_Int32
Donnée de type entier 32 bits.
@ DT_Real3
Donnée de type vecteur 3.
@ DT_Float16
Donnée de type 'Float16'.
@ DT_Int64
Donnée de type entier 64 bits.
@ DT_String
Donnée de type chaîne de caractère UTF-8.
@ DT_BFloat16
Donnée de type 'BFloat16'.
@ DT_Real2
Donnée de type vecteur 2.
@ DT_Real
Donnée de type réel.
@ DT_Byte
Donnée de type octet.
const char * dataTypeName(eDataType type)
Nom du type de donnée.