14#include "arcane/utils/NotImplementedException.h"
15#include "arcane/utils/TraceInfo.h"
16#include "arcane/AbstractDataVisitor.h"
17#include "arcane/IData.h"
28void AbstractDataVisitor::
29applyDataVisitor(IScalarData* data)
31 data->visitScalar(
this);
34void AbstractDataVisitor::
35applyDataVisitor(IArrayData* data)
37 data->visitArray(
this);
40void AbstractDataVisitor::
41applyDataVisitor(IArray2Data* data)
43 data->visitArray2(
this);
49void AbstractScalarDataVisitor::
52 String s = String::format(
"scalar visitor not implemented for data type '{0}'",
54 throw NotImplementedException(A_FUNCINFO,s);
57void AbstractScalarDataVisitor::
58applyVisitor(IScalarDataT<Byte>* data)
64void AbstractScalarDataVisitor::
65applyVisitor(IScalarDataT<Real>* data)
71void AbstractScalarDataVisitor::
72applyVisitor(IScalarDataT<Int16>* data)
78void AbstractScalarDataVisitor::
79applyVisitor(IScalarDataT<Int32>* data)
85void AbstractScalarDataVisitor::
86applyVisitor(IScalarDataT<Int64>* data)
92void AbstractScalarDataVisitor::
93applyVisitor(IScalarDataT<Real2>* data)
99void AbstractScalarDataVisitor::
100applyVisitor(IScalarDataT<Real3>* data)
106void AbstractScalarDataVisitor::
107applyVisitor(IScalarDataT<Real2x2>* data)
113void AbstractScalarDataVisitor::
114applyVisitor(IScalarDataT<Real3x3>* data)
120void AbstractScalarDataVisitor::
121applyVisitor(IScalarDataT<String>* data)
130void AbstractArrayDataVisitor::
133 String s = String::format(
"array visitor not implemented for data type '{0}'",
135 throw NotImplementedException(A_FUNCINFO,s);
138void AbstractArrayDataVisitor::
139applyVisitor(IArrayDataT<Byte>* data)
145void AbstractArrayDataVisitor::
146applyVisitor(IArrayDataT<Real>* data)
152void AbstractArrayDataVisitor::
153applyVisitor(IArrayDataT<Int16>* data)
159void AbstractArrayDataVisitor::
160applyVisitor(IArrayDataT<Int32>* data)
166void AbstractArrayDataVisitor::
167applyVisitor(IArrayDataT<Int64>* data)
173void AbstractArrayDataVisitor::
174applyVisitor(IArrayDataT<Real2>* data)
180void AbstractArrayDataVisitor::
181applyVisitor(IArrayDataT<Real3>* data)
187void AbstractArrayDataVisitor::
188applyVisitor(IArrayDataT<Real2x2>* data)
194void AbstractArrayDataVisitor::
195applyVisitor(IArrayDataT<Real3x3>* data)
201void AbstractArrayDataVisitor::
202applyVisitor(IArrayDataT<String>* data)
211void AbstractArray2DataVisitor::
214 String s = String::format(
"array2 visitor not implemented for data type '{0}'",
216 throw NotImplementedException(A_FUNCINFO,s);
219void AbstractArray2DataVisitor::
220applyVisitor(IArray2DataT<Byte>* data)
226void AbstractArray2DataVisitor::
227applyVisitor(IArray2DataT<Real>* data)
233void AbstractArray2DataVisitor::
234applyVisitor(IArray2DataT<Int16>* data)
240void AbstractArray2DataVisitor::
241applyVisitor(IArray2DataT<Int32>* data)
247void AbstractArray2DataVisitor::
248applyVisitor(IArray2DataT<Int64>* data)
254void AbstractArray2DataVisitor::
255applyVisitor(IArray2DataT<Real2>* data)
261void AbstractArray2DataVisitor::
262applyVisitor(IArray2DataT<Real3>* data)
268void AbstractArray2DataVisitor::
269applyVisitor(IArray2DataT<Real2x2>* data)
275void AbstractArray2DataVisitor::
276applyVisitor(IArray2DataT<Real3x3>* data)
285void AbstractMultiArray2DataVisitor::
288 String s = String::format(
"multiarray2 visitor not implemented for data type '{0}'",
290 throw NotImplementedException(A_FUNCINFO,s);
293void AbstractMultiArray2DataVisitor::
294applyVisitor(IMultiArray2DataT<Byte>* data)
300void AbstractMultiArray2DataVisitor::
301applyVisitor(IMultiArray2DataT<Real>* data)
307void AbstractMultiArray2DataVisitor::
308applyVisitor(IMultiArray2DataT<Int16>* data)
314void AbstractMultiArray2DataVisitor::
315applyVisitor(IMultiArray2DataT<Int32>* data)
321void AbstractMultiArray2DataVisitor::
322applyVisitor(IMultiArray2DataT<Int64>* data)
328void AbstractMultiArray2DataVisitor::
329applyVisitor(IMultiArray2DataT<Real2>* data)
335void AbstractMultiArray2DataVisitor::
336applyVisitor(IMultiArray2DataT<Real3>* data)
342void AbstractMultiArray2DataVisitor::
343applyVisitor(IMultiArray2DataT<Real2x2>* data)
349void AbstractMultiArray2DataVisitor::
350applyVisitor(IMultiArray2DataT<Real3x3>* data)
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eDataType
Type d'une donnée.
@ DT_Real2x2
Donnée de type tenseur 3x3.
@ DT_Int16
Donnée de type entier 16 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_Int64
Donnée de type entier 64 bits.
@ DT_String
Donnée de type chaîne de caractère UTF-8.
@ 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.