OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::cpu::Row< T, DESCRIPTOR, PLATFORM > Class Template Reference

Row concept for concrete non-LBM lattices on CPU platforms. More...

#include <cell.h>

+ Collaboration diagram for olb::cpu::Row< T, DESCRIPTOR, PLATFORM >:

Public Types

using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

 Row ()
 
 Row (ConcreteBlockD< T, DESCRIPTOR, PLATFORM > &lattice, CellID iCell=0)
 
CellID getCellId () const
 
void setCellId (CellID iCell)
 
template<typename FIELD >
auto getField () const
 
template<typename FIELD >
void setField (const FieldD< T, DESCRIPTOR, FIELD > &v)
 
template<typename FIELD >
auto getFieldPointer ()
 
template<typename FIELD >
auto & getFieldComponent (unsigned iD)
 

Detailed Description

template<typename T, typename DESCRIPTOR, Platform PLATFORM>
class olb::cpu::Row< T, DESCRIPTOR, PLATFORM >

Row concept for concrete non-LBM lattices on CPU platforms.

Definition at line 85 of file cell.h.

Member Typedef Documentation

◆ descriptor_t

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
using olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::descriptor_t = DESCRIPTOR

Definition at line 92 of file cell.h.

◆ value_t

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
using olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::value_t = T

Definition at line 91 of file cell.h.

Constructor & Destructor Documentation

◆ Row() [1/2]

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::Row ( )
inline

Definition at line 94 of file cell.h.

94 :
95 _lattice(nullptr),
96 _iCell(0) { }

◆ Row() [2/2]

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::Row ( ConcreteBlockD< T, DESCRIPTOR, PLATFORM > & lattice,
CellID iCell = 0 )
inline

Definition at line 98 of file cell.h.

98 :
99 _lattice(&lattice),
100 _iCell(iCell) { }

Member Function Documentation

◆ getCellId()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
CellID olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getCellId ( ) const
inline

Definition at line 102 of file cell.h.

102 {
103 return _iCell;
104 }

◆ getField()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
template<typename FIELD >
auto olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getField ( ) const
inline

Definition at line 111 of file cell.h.

111 {
112 return _lattice->template getField<FIELD>().getRow(_iCell);
113 }
auto getField() const
Definition cell.h:111

References olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getField().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFieldComponent()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
template<typename FIELD >
auto & olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getFieldComponent ( unsigned iD)
inline

Definition at line 126 of file cell.h.

126 {
127 return _lattice->template getField<FIELD>()[iD][_iCell];
128 }

References olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getField().

+ Here is the call graph for this function:

◆ getFieldPointer()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
template<typename FIELD >
auto olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getFieldPointer ( )
inline

Definition at line 121 of file cell.h.

121 {
122 return _lattice->template getField<FIELD>().getRowPointer(_iCell);
123 }

References olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getField().

+ Here is the call graph for this function:

◆ setCellId()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
void olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::setCellId ( CellID iCell)
inline

Definition at line 106 of file cell.h.

106 {
107 _iCell = iCell;
108 }

◆ setField()

template<typename T , typename DESCRIPTOR , Platform PLATFORM>
template<typename FIELD >
void olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::setField ( const FieldD< T, DESCRIPTOR, FIELD > & v)
inline

Definition at line 116 of file cell.h.

116 {
117 return _lattice->template getField<FIELD>().setRow(_iCell, v);
118 }

References olb::cpu::Row< T, DESCRIPTOR, PLATFORM >::getField().

+ Here is the call graph for this function:

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