Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ForLoopRange< IndexType_ > Class Template Reference

Iteration range for a loop. More...

#include <arccore/base/ForLoopRanges.h>

Public Member Functions

 ForLoopRange (IndexType_ lower_bound, IndexType_ size)
 Creates an interval between *[lower_bound,lower_bound+size[*.
 explicit (false) ForLoopRange(IndexType_ size)
 Creates an interval between *[0,size[*.
constexpr IndexType_ lowerBound () const
constexpr IndexType_ size () const
constexpr IndexType_ upperBound () const

Detailed Description

template<typename IndexType_>
class Arcane::ForLoopRange< IndexType_ >

Iteration range for a loop.

Definition at line 32 of file arccore/src/base/arccore/base/ForLoopRanges.h.

Constructor & Destructor Documentation

◆ ForLoopRange()

template<typename IndexType_>
Arcane::ForLoopRange< IndexType_ >::ForLoopRange ( IndexType_ lower_bound,
IndexType_ size )
inline

Creates an interval between *[lower_bound,lower_bound+size[*.

Definition at line 37 of file arccore/src/base/arccore/base/ForLoopRanges.h.

Member Function Documentation

◆ explicit()

template<typename IndexType_>
Arcane::ForLoopRange< IndexType_ >::explicit ( false )
inline

Creates an interval between *[0,size[*.

Definition at line 42 of file arccore/src/base/arccore/base/ForLoopRanges.h.

◆ lowerBound()

template<typename IndexType_>
IndexType_ Arcane::ForLoopRange< IndexType_ >::lowerBound ( ) const
inlineconstexpr

◆ size()

template<typename IndexType_>
IndexType_ Arcane::ForLoopRange< IndexType_ >::size ( ) const
inlineconstexpr

◆ upperBound()

template<typename IndexType_>
IndexType_ Arcane::ForLoopRange< IndexType_ >::upperBound ( ) const
inlineconstexpr

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