Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Alina::CSRArray< DataType > Class Template Reference

Array for internal CSRMatrix fields. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/alina/arccore/alina/CSRMatrix.h>

Collaboration diagram for Arcane::Alina::CSRArray< DataType >:

Public Types

using val_type = DataType

Public Member Functions

 CSRArray (const CSRArray &)=delete
CSRArray & operator= (const CSRArray &)=delete
val_type & operator[] (Int64 i)
const val_type & operator[] (Int64 i) const
 operator val_type * ()
 operator const val_type * () const
val_type * operator+ (Int64 i)
const val_type * operator+ (Int64 i) const
val_type * data ()
const val_type * data () const
void resize (size_t new_size)
 Set the new size. WARNING: this method do not handle the delete of the current value.
void reset ()
void setPointerZeroCopy (val_type *new_ptr)

Private Attributes

val_type * ptr = nullptr

Detailed Description

template<typename DataType>
class Arcane::Alina::CSRArray< DataType >

Array for internal CSRMatrix fields.

Definition at line 43 of file CSRMatrix.h.

Member Typedef Documentation

◆ val_type

template<typename DataType>
using Arcane::Alina::CSRArray< DataType >::val_type = DataType

Definition at line 47 of file CSRMatrix.h.

Constructor & Destructor Documentation

◆ ~CSRArray()

template<typename DataType>
Arcane::Alina::CSRArray< DataType >::~CSRArray ( )
inline

Definition at line 52 of file CSRMatrix.h.

Member Function Documentation

◆ data() [1/2]

template<typename DataType>
val_type * Arcane::Alina::CSRArray< DataType >::data ( )
inline

Definition at line 66 of file CSRMatrix.h.

◆ data() [2/2]

template<typename DataType>
const val_type * Arcane::Alina::CSRArray< DataType >::data ( ) const
inline

Definition at line 67 of file CSRMatrix.h.

◆ operator const val_type *()

template<typename DataType>
Arcane::Alina::CSRArray< DataType >::operator const val_type * ( ) const
inline

Definition at line 63 of file CSRMatrix.h.

◆ operator val_type *()

template<typename DataType>
Arcane::Alina::CSRArray< DataType >::operator val_type * ( )
inline

Definition at line 62 of file CSRMatrix.h.

◆ operator+() [1/2]

template<typename DataType>
val_type * Arcane::Alina::CSRArray< DataType >::operator+ ( Int64 i)
inline

Definition at line 64 of file CSRMatrix.h.

◆ operator+() [2/2]

template<typename DataType>
const val_type * Arcane::Alina::CSRArray< DataType >::operator+ ( Int64 i) const
inline

Definition at line 65 of file CSRMatrix.h.

◆ operator[]() [1/2]

template<typename DataType>
val_type & Arcane::Alina::CSRArray< DataType >::operator[] ( Int64 i)
inline

Definition at line 60 of file CSRMatrix.h.

◆ operator[]() [2/2]

template<typename DataType>
const val_type & Arcane::Alina::CSRArray< DataType >::operator[] ( Int64 i) const
inline

Definition at line 61 of file CSRMatrix.h.

◆ reset()

template<typename DataType>
void Arcane::Alina::CSRArray< DataType >::reset ( )
inline

Definition at line 76 of file CSRMatrix.h.

◆ resize()

template<typename DataType>
void Arcane::Alina::CSRArray< DataType >::resize ( size_t new_size)
inline

Set the new size. WARNING: this method do not handle the delete of the current value.

Definition at line 72 of file CSRMatrix.h.

◆ setPointerZeroCopy()

template<typename DataType>
void Arcane::Alina::CSRArray< DataType >::setPointerZeroCopy ( val_type * new_ptr)
inline

Definition at line 81 of file CSRMatrix.h.

Member Data Documentation

◆ ptr

template<typename DataType>
val_type* Arcane::Alina::CSRArray< DataType >::ptr = nullptr
private

Definition at line 88 of file CSRMatrix.h.


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