Documentation 6b54b78464
Loading...
Searching...
No Matches
helpers::IndexAccumulator_Base< N_, Nd_t_, Check > Class Template Reference

Parent class of IndexAccumulator. More...

#include <ndflattener.hpp>

Inheritance diagram for helpers::IndexAccumulator_Base< N_, Nd_t_, Check >:
[legend]

Public Types

using Nd_t = Nd_t_
 
using Index_t = typename Nd_t::Index_t
 

Public Member Functions

Index_t size () const
 Return exclusive upper bound for next index.
 

Static Public Attributes

static constexpr size_t N = N_
 

Protected Member Functions

 IndexAccumulator_Base (Nd_t &nd, Index_t offset, Index_t size)
 
void CheckBound (Index_t i) const
 

Protected Attributes

Nd_t & nd
 The accessed NdFlattener.
 
const Index_t offset
 Index in the currently accessed layer.
 
const Index_t size_
 Exclusive upper bound for the next index.
 

Detailed Description

template<size_t N_, typename Nd_t_, bool Check>
class helpers::IndexAccumulator_Base< N_, Nd_t_, Check >

Parent class of IndexAccumulator.

IndexAccumulator provides the operator[] method.

Member Typedef Documentation

◆ Index_t

template<size_t N_, typename Nd_t_ , bool Check>
using helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::Index_t = typename Nd_t::Index_t

◆ Nd_t

template<size_t N_, typename Nd_t_ , bool Check>
using helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::Nd_t = Nd_t_

Constructor & Destructor Documentation

◆ IndexAccumulator_Base()

template<size_t N_, typename Nd_t_ , bool Check>
helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::IndexAccumulator_Base ( Nd_t &  nd,
Index_t  offset,
Index_t  size 
)
inlineprotected

Member Function Documentation

◆ CheckBound()

template<size_t N_, typename Nd_t_ , bool Check>
void helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::CheckBound ( Index_t  i) const
inlineprotected

◆ size()

template<size_t N_, typename Nd_t_ , bool Check>
Index_t helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::size ( ) const
inline

Return exclusive upper bound for next index.

Member Data Documentation

◆ N

template<size_t N_, typename Nd_t_ , bool Check>
constexpr size_t helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::N = N_
staticconstexpr

◆ nd

template<size_t N_, typename Nd_t_ , bool Check>
Nd_t& helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::nd
protected

The accessed NdFlattener.

◆ offset

template<size_t N_, typename Nd_t_ , bool Check>
const Index_t helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::offset
protected

Index in the currently accessed layer.

◆ size_

template<size_t N_, typename Nd_t_ , bool Check>
const Index_t helpers::IndexAccumulator_Base< N_, Nd_t_, Check >::size_
protected

Exclusive upper bound for the next index.


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