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

Iteration range for a loop. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/ForLoopRanges.h>

Collaboration diagram for Arcane::ForLoopRange< IndexType_ >:

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

Private Attributes

IndexType_ m_lower_bound
IndexType_ m_size

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

Member Data Documentation

◆ m_lower_bound

template<typename IndexType_>
IndexType_ Arcane::ForLoopRange< IndexType_ >::m_lower_bound
private

◆ m_size

template<typename IndexType_>
IndexType_ Arcane::ForLoopRange< IndexType_ >::m_size
private

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