DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::ArrayPairDeviceViewConst< B, TArray > Struct Template Reference

Const device view of a father-son array pair. More...

#include <ArrayPair.hpp>

Inheritance diagram for DNDS::ArrayPairDeviceViewConst< B, TArray >:
[legend]
Collaboration diagram for DNDS::ArrayPairDeviceViewConst< B, TArray >:
[legend]

Public Types

using t_arrayDeviceView = typename TArray::template t_deviceViewConst< B >
 
using t_self = ArrayPairDeviceViewConst< B, TArray >
 

Public Member Functions

DNDS_DEVICE_CALLABLE ArrayPairDeviceViewConst (const t_arrayDeviceView &n_father, const t_arrayDeviceView &n_son)
 
- Public Member Functions inherited from DNDS::ArrayPairDeviceView_Base< Derived >
DNDS_DEVICE_CALLABLE index Size () const
 Combined father + son row count.
 
DNDS_DEVICE_CALLABLE auto RowSize () const
 Uniform row width (delegates to father; father/son share it).
 
DNDS_DEVICE_CALLABLE auto RowSize (index i) const
 Per-row width in the combined address space.
 
DNDS_DEVICE_CALLABLE auto operator[] (index i) const
 Row pointer for index i in the combined address space (const).
 
DNDS_DEVICE_CALLABLE auto operator[] (index i)
 Row pointer for index i (mutable).
 
template<class... TOthers>
DNDS_DEVICE_CALLABLE decltype(autooperator() (index i, TOthers... aOthers)
 N-ary element access in the combined address space (mutable). Forwards extra arguments to the underlying operator().
 
template<class... TOthers>
DNDS_DEVICE_CALLABLE decltype(autooperator() (index i, TOthers... aOthers) const
 N-ary element access (const).
 

Public Attributes

t_arrayDeviceView father
 the only difference from non-const
 
t_arrayDeviceView son
 

Detailed Description

template<DeviceBackend B, class TArray = ParArray<real, 1>>
struct DNDS::ArrayPairDeviceViewConst< B, TArray >

Const device view of a father-son array pair.

Definition at line 121 of file ArrayPair.hpp.

Member Typedef Documentation

◆ t_arrayDeviceView

template<DeviceBackend B, class TArray = ParArray<real, 1>>
using DNDS::ArrayPairDeviceViewConst< B, TArray >::t_arrayDeviceView = typename TArray::template t_deviceViewConst<B>

Definition at line 123 of file ArrayPair.hpp.

◆ t_self

template<DeviceBackend B, class TArray = ParArray<real, 1>>
using DNDS::ArrayPairDeviceViewConst< B, TArray >::t_self = ArrayPairDeviceViewConst<B, TArray>

Definition at line 128 of file ArrayPair.hpp.

Constructor & Destructor Documentation

◆ ArrayPairDeviceViewConst()

template<DeviceBackend B, class TArray = ParArray<real, 1>>
DNDS_DEVICE_CALLABLE DNDS::ArrayPairDeviceViewConst< B, TArray >::ArrayPairDeviceViewConst ( const t_arrayDeviceView n_father,
const t_arrayDeviceView n_son 
)
inline

Definition at line 132 of file ArrayPair.hpp.

Member Data Documentation

◆ father

template<DeviceBackend B, class TArray = ParArray<real, 1>>
t_arrayDeviceView DNDS::ArrayPairDeviceViewConst< B, TArray >::father

the only difference from non-const

Definition at line 125 of file ArrayPair.hpp.

◆ son

template<DeviceBackend B, class TArray = ParArray<real, 1>>
t_arrayDeviceView DNDS::ArrayPairDeviceViewConst< B, TArray >::son

Definition at line 126 of file ArrayPair.hpp.


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