Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::INumArrayDataT< DataType, RankValue > Class Template Referenceabstract

Interface of an 'IData' whose container is based on a 'NumArray'. More...

Inheritance diagram for Arcane::INumArrayDataT< DataType, RankValue >:
Collaboration diagram for Arcane::INumArrayDataT< DataType, RankValue >:

Public Types

typedef INumArrayDataT< DataType, RankValue > ThatClass
using ExtentType = typename MDDimType<RankValue>::DimType

Public Member Functions

virtual MDSpan< const DataType, ExtentType > view () const =0
 Constant view of the data.
virtual MDSpan< DataType, ExtentType > view ()=0
 View of the data.
virtual Ref< ThatClass > cloneTrueRef ()=0
 Clone the data.
virtual Ref< ThatClass > cloneTrueEmptyRef ()=0
 Clone the data but without elements.
Public Member Functions inherited from Arcane::IData
virtual eDataType dataType () const =0
 Data type.
virtual Integer dimension () const =0
 Dimension. 0 for a scalar, 1 for a mono-dim array, 2 for a bi-dim array.
virtual Integer multiTag () const =0
 Multi-tag. 0 if not multiple, 1 if multiple, 2 if multiple for MultiArray variables (obsolete).
virtual IDataclone ()=0
 Clone the data. The created instance must be destroyed by the 'delete' operator.
virtual IDatacloneEmpty ()=0
 Clone the data but without elements. The created instance must be destroyed by the 'delete' operator.
virtual Ref< IDatacloneRef ()=0
 Clone the data.
virtual Ref< IDatacloneEmptyRef ()=0
 Clone the data but without elements.
virtual DataStorageTypeInfo storageTypeInfo () const =0
 Information about the data container type.
virtual void serialize (ISerializer *sbuf, IDataOperation *operation)=0
 Serializes the data by applying the operation.
virtual void resize (Integer new_size)=0
 Resize the data.
virtual void serialize (ISerializer *sbuf, Int32ConstArrayView ids, IDataOperation *operation)=0
 Serialize the data for the indices ids.
virtual void fillDefault ()=0
 Fills the data with its default value.
virtual void setName (const String &name)=0
 Sets the name of the data (internal).
virtual Ref< ISerializedDatacreateSerializedDataRef (bool use_basic_type) const =0
 Serialize the data.
virtual void assignSerializedData (const ISerializedData *sdata)=0
 Assign the serialized values sdata to the data.
virtual void allocateBufferForSerializedData (ISerializedData *sdata)=0
 Allocate memory to read the serialized values sdata.
virtual void copy (const IData *data)=0
 Copy the data data into the current instance.
virtual void swapValues (IData *data)=0
 Swap the values of data with those of the instance.
virtual void computeHash (IHashAlgorithm *algo, ByteArray &output) const =0
 Compute a hash key on this data.
virtual ArrayShape shape () const =0
 Array shape for a 1D or 2D data item.
virtual void setShape (const ArrayShape &new_shape)=0
 Sets the array shape.
virtual void setAllocationInfo (const DataAllocationInfo &v)=0
 Sets the allocation information.
virtual DataAllocationInfo allocationInfo () const =0
 Allocation information.
virtual void visit (IDataVisitor *visitor)=0
 Applies the visitor to the data.
virtual void visitScalar (IScalarDataVisitor *visitor)=0
 Apply the visitor to the data.
virtual void visitArray (IArrayDataVisitor *visitor)=0
 Apply the visitor to the data.
virtual void visitArray2 (IArray2DataVisitor *visitor)=0
 Apply the visitor to the data.
virtual void visitMultiArray2 (IMultiArray2DataVisitor *visitor)
 Apply the visitor to the data.
virtual IDataInternal_commonInternal ()=0

Detailed Description

template<class DataType, int RankValue>
class Arcane::INumArrayDataT< DataType, RankValue >

Interface of an 'IData' whose container is based on a 'NumArray'.

Definition at line 69 of file NumArrayData.cc.

Member Typedef Documentation

◆ ExtentType

template<class DataType, int RankValue>
using Arcane::INumArrayDataT< DataType, RankValue >::ExtentType = typename MDDimType<RankValue>::DimType

Definition at line 75 of file NumArrayData.cc.

◆ ThatClass

template<class DataType, int RankValue>
typedef INumArrayDataT<DataType, RankValue> Arcane::INumArrayDataT< DataType, RankValue >::ThatClass

Definition at line 74 of file NumArrayData.cc.

Member Function Documentation

◆ cloneTrueEmptyRef()

template<class DataType, int RankValue>
virtual Ref< ThatClass > Arcane::INumArrayDataT< DataType, RankValue >::cloneTrueEmptyRef ( )
pure virtual

Clone the data but without elements.

Implemented in Arcane::NumArrayDataT< DataType, RankValue >.

◆ cloneTrueRef()

template<class DataType, int RankValue>
virtual Ref< ThatClass > Arcane::INumArrayDataT< DataType, RankValue >::cloneTrueRef ( )
pure virtual

Clone the data.

Implemented in Arcane::NumArrayDataT< DataType, RankValue >.

◆ view() [1/2]

template<class DataType, int RankValue>
virtual MDSpan< const DataType, ExtentType > Arcane::INumArrayDataT< DataType, RankValue >::view ( ) const
pure virtual

Constant view of the data.

Implemented in Arcane::NumArrayDataT< DataType, RankValue >.

◆ view() [2/2]

template<class DataType, int RankValue>
virtual MDSpan< DataType, ExtentType > Arcane::INumArrayDataT< DataType, RankValue >::view ( )
pure virtual

View of the data.

Implemented in Arcane::NumArrayDataT< DataType, RankValue >.


The documentation for this class was generated from the following file: