Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::CNC_Vector< T > Class Template Reference
Collaboration diagram for Arcane::CNC_Vector< T >:

Public Types

typedef CNC_Vector< T > thisclass

Public Member Functions

 CNC_Vector (unsigned int size=0, unsigned int alignment=1)
void allocate (unsigned int size, unsigned int alignment=1)
void set_all (const T &value)
T & operator() (unsigned int i)
const T & operator() (unsigned int i) const
T & operator[] (unsigned int index)
const T & operator[] (unsigned int index) const
T & from_linear_index (unsigned int index)
const T & from_linear_index (unsigned int index) const
unsigned int size () const
unsigned int alignment () const
void clear ()
const T * data () const
T * data ()
unsigned int mem_usage () const
void print () const

Protected Member Functions

void deallocate ()

Protected Attributes

T * data_
unsigned int size_
char * base_mem_
unsigned int alignment_

Private Member Functions

 CNC_Vector (const thisclass &rhs)
thisclass & operator= (const thisclass &rhs)

Detailed Description

template<class T>
class Arcane::CNC_Vector< T >

Definition at line 17 of file AlephCudaVector.h.

Member Typedef Documentation

◆ thisclass

template<class T>
typedef CNC_Vector<T> Arcane::CNC_Vector< T >::thisclass

Definition at line 21 of file AlephCudaVector.h.

Constructor & Destructor Documentation

◆ CNC_Vector()

template<class T>
Arcane::CNC_Vector< T >::CNC_Vector ( unsigned int size = 0,
unsigned int alignment = 1 )

Definition at line 15 of file AlephCudaVector.cc.

◆ ~CNC_Vector()

template<class T>
Arcane::CNC_Vector< T >::~CNC_Vector ( )

Definition at line 23 of file AlephCudaVector.cc.

Member Function Documentation

◆ alignment()

template<class T>
unsigned int Arcane::CNC_Vector< T >::alignment ( ) const

Definition at line 110 of file AlephCudaVector.cc.

◆ allocate()

template<class T>
void Arcane::CNC_Vector< T >::allocate ( unsigned int size,
unsigned int alignment = 1 )

does not preserve previous values stored in the array

Definition at line 31 of file AlephCudaVector.cc.

◆ clear()

template<class T>
void Arcane::CNC_Vector< T >::clear ( )

Definition at line 117 of file AlephCudaVector.cc.

◆ data() [1/2]

template<class T>
T * Arcane::CNC_Vector< T >::data ( )

low-level access, for experts only.

Definition at line 133 of file AlephCudaVector.cc.

◆ data() [2/2]

template<class T>
const T * Arcane::CNC_Vector< T >::data ( ) const

low-level access, for experts only.

Definition at line 125 of file AlephCudaVector.cc.

◆ deallocate()

template<class T>
void Arcane::CNC_Vector< T >::deallocate ( )
protected

Definition at line 156 of file AlephCudaVector.cc.

◆ from_linear_index() [1/2]

template<class T>
T & Arcane::CNC_Vector< T >::from_linear_index ( unsigned int index)

Definition at line 89 of file AlephCudaVector.cc.

◆ from_linear_index() [2/2]

template<class T>
const T & Arcane::CNC_Vector< T >::from_linear_index ( unsigned int index) const

Definition at line 96 of file AlephCudaVector.cc.

◆ mem_usage()

template<class T>
unsigned int Arcane::CNC_Vector< T >::mem_usage ( ) const

Definition at line 140 of file AlephCudaVector.cc.

◆ operator()() [1/2]

template<class T>
T & Arcane::CNC_Vector< T >::operator() ( unsigned int i)

Definition at line 61 of file AlephCudaVector.cc.

◆ operator()() [2/2]

template<class T>
const T & Arcane::CNC_Vector< T >::operator() ( unsigned int i) const

Definition at line 68 of file AlephCudaVector.cc.

◆ operator[]() [1/2]

template<class T>
T & Arcane::CNC_Vector< T >::operator[] ( unsigned int index)

Definition at line 75 of file AlephCudaVector.cc.

◆ operator[]() [2/2]

template<class T>
const T & Arcane::CNC_Vector< T >::operator[] ( unsigned int index) const

Definition at line 82 of file AlephCudaVector.cc.

◆ print()

template<class T>
void Arcane::CNC_Vector< T >::print ( ) const

Definition at line 147 of file AlephCudaVector.cc.

◆ set_all()

template<class T>
void Arcane::CNC_Vector< T >::set_all ( const T & value)

Definition at line 52 of file AlephCudaVector.cc.

◆ size()

template<class T>
unsigned int Arcane::CNC_Vector< T >::size ( ) const

Definition at line 103 of file AlephCudaVector.cc.

Member Data Documentation

◆ alignment_

template<class T>
unsigned int Arcane::CNC_Vector< T >::alignment_
protected

Definition at line 93 of file AlephCudaVector.h.

◆ base_mem_

template<class T>
char* Arcane::CNC_Vector< T >::base_mem_
protected

Definition at line 92 of file AlephCudaVector.h.

◆ data_

template<class T>
T* Arcane::CNC_Vector< T >::data_
protected

Definition at line 90 of file AlephCudaVector.h.

◆ size_

template<class T>
unsigned int Arcane::CNC_Vector< T >::size_
protected

Definition at line 91 of file AlephCudaVector.h.


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