Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::VectorElementT< T, Indexer > Class Template Reference

Tool to manipulate a vector entry while building a vector. More...

#include <core/alien/data/utils/VectorElement.h>

Collaboration diagram for Alien::VectorElementT< T, Indexer >:

Public Member Functions

 VectorElementT (Arccore::ArrayView< T > values, Arccore::ConstArrayView< Arccore::Integer > indexes, Arccore::Integer local_offset)
 Constructor.
void operator= (Arccore::ConstArrayView< T > values)
 Operator equal.
void operator+= (Arccore::ConstArrayView< T > values)
 Plus equal operator.
void operator-= (Arccore::ConstArrayView< T > values)
 Minus equal operator.

Private Attributes

Arccore::ArrayView< T > & m_values
 The array of values.
Arccore::ConstArrayView< Arccore::Integer > m_indexes
 The array of indexes.
Arccore::Integer m_local_offset
 The offset.

Detailed Description

template<typename T, typename Indexer>
class Alien::VectorElementT< T, Indexer >

Tool to manipulate a vector entry while building a vector.

Template Parameters
TThe data type of the vector
IndexerThe indexer

Definition at line 47 of file VectorElement.h.

Constructor & Destructor Documentation

◆ VectorElementT()

template<typename T, typename Indexer>
Alien::VectorElementT< T, Indexer >::VectorElementT ( Arccore::ArrayView< T > values,
Arccore::ConstArrayView< Arccore::Integer > indexes,
Arccore::Integer local_offset )

Constructor.

Parameters
[in]valuesThe array values
[in]indexesThe indexes to work on
[in]local_offsetThe offset

Definition at line 36 of file VectorElementT.h.

References m_indexes, m_local_offset, and m_values.

Member Function Documentation

◆ operator+=()

template<typename T, typename Indexer>
void Alien::VectorElementT< T, Indexer >::operator+= ( Arccore::ConstArrayView< T > values)

Plus equal operator.

Parameters
[in]valuesThe values to add

Definition at line 61 of file VectorElementT.h.

References m_indexes, m_local_offset, and m_values.

◆ operator-=()

template<typename T, typename Indexer>
void Alien::VectorElementT< T, Indexer >::operator-= ( Arccore::ConstArrayView< T > values)

Minus equal operator.

Parameters
[in]valuesThe values to substract

Definition at line 74 of file VectorElementT.h.

References m_indexes, m_local_offset, and m_values.

◆ operator=()

template<typename T, typename Indexer>
void Alien::VectorElementT< T, Indexer >::operator= ( Arccore::ConstArrayView< T > values)

Operator equal.

Parameters
[in]valuesThe values to set

Definition at line 48 of file VectorElementT.h.

References m_indexes, m_local_offset, and m_values.

Member Data Documentation

◆ m_indexes

template<typename T, typename Indexer>
Arccore::ConstArrayView<Arccore::Integer> Alien::VectorElementT< T, Indexer >::m_indexes
private

The array of indexes.

Definition at line 82 of file VectorElement.h.

Referenced by operator+=(), operator-=(), operator=(), and VectorElementT().

◆ m_local_offset

template<typename T, typename Indexer>
Arccore::Integer Alien::VectorElementT< T, Indexer >::m_local_offset
private

The offset.

Definition at line 84 of file VectorElement.h.

Referenced by operator+=(), operator-=(), operator=(), and VectorElementT().

◆ m_values

template<typename T, typename Indexer>
Arccore::ArrayView<T>& Alien::VectorElementT< T, Indexer >::m_values
private

The array of values.

Definition at line 80 of file VectorElement.h.

Referenced by operator+=(), operator-=(), operator=(), and VectorElementT().


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