Alien  1.3.0
User documentation
Loading...
Searching...
No Matches
Alien::IReverseIndexer Class Referenceabstract

Reverse indexer: associates an Index (i,j) to an offset. More...

#include <core/alien/kernels/dok/IReverseIndexer.h>

Public Types

typedef std::pair< Arccore::Int32, Arccore::Int32 > Index
typedef Arccore::Integer Offset

Public Member Functions

virtual std::optional< Index > operator[] (Offset off) const =0
virtual void record (Offset off, Index i)=0
virtual Arccore::Int32 size () const =0

Detailed Description

Reverse indexer: associates an Index (i,j) to an offset.

Definition at line 28 of file IReverseIndexer.h.

Member Typedef Documentation

◆ Index

typedef std::pair<Arccore::Int32, Arccore::Int32> Alien::IReverseIndexer::Index

Definition at line 31 of file IReverseIndexer.h.

◆ Offset

typedef Arccore::Integer Alien::IReverseIndexer::Offset

Definition at line 32 of file IReverseIndexer.h.

Constructor & Destructor Documentation

◆ ~IReverseIndexer()

virtual Alien::IReverseIndexer::~IReverseIndexer ( )
inlinevirtual

Definition at line 35 of file IReverseIndexer.h.

Member Function Documentation

◆ operator[]()

virtual std::optional< Index > Alien::IReverseIndexer::operator[] ( Offset off) const
pure virtual

Returns the Index (i,j) corresponding to an offset

Parameters
off
Returns
Index (i,j)

Implemented in Alien::DoKReverseIndexer.

◆ record()

virtual void Alien::IReverseIndexer::record ( Offset off,
Index i )
pure virtual

Registers a offset and its corresponding index

Parameters
off
i

Implemented in Alien::DoKReverseIndexer.


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