OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
olb::CellD< T, DESCRIPTOR > Class Template Reference

Single cell implementing the full field data interface. More...

#include <cellD.h>

+ Collaboration diagram for olb::CellD< T, DESCRIPTOR >:

Public Types

using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

 CellD ()
 
const T & operator[] (unsigned iPop) const
 
T & operator[] (unsigned iPop)
 
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 getFieldPointer () const
 
template<typename FIELD >
const auto & getFieldComponent (unsigned iD) const
 
template<typename FIELD >
auto & getFieldComponent (unsigned iD)
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::CellD< T, DESCRIPTOR >

Single cell implementing the full field data interface.

Definition at line 56 of file cellD.h.

Member Typedef Documentation

◆ descriptor_t

template<typename T , typename DESCRIPTOR >
using olb::CellD< T, DESCRIPTOR >::descriptor_t = DESCRIPTOR

Definition at line 62 of file cellD.h.

◆ value_t

template<typename T , typename DESCRIPTOR >
using olb::CellD< T, DESCRIPTOR >::value_t = T

Definition at line 61 of file cellD.h.

Constructor & Destructor Documentation

◆ CellD()

template<typename T , typename DESCRIPTOR >
olb::CellD< T, DESCRIPTOR >::CellD ( )
inline

Definition at line 64 of file cellD.h.

64: _fieldsD(1) { }

Member Function Documentation

◆ getField()

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
auto olb::CellD< T, DESCRIPTOR >::getField ( ) const
inline

Definition at line 75 of file cellD.h.

75 {
76 return _fieldsD.template getField<FIELD>(0);
77 }

◆ getFieldComponent() [1/2]

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
auto & olb::CellD< T, DESCRIPTOR >::getFieldComponent ( unsigned iD)
inline

Definition at line 100 of file cellD.h.

100 {
101 return _fieldsD.template getFieldComponent<FIELD>(0, iD);
102 }

◆ getFieldComponent() [2/2]

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
const auto & olb::CellD< T, DESCRIPTOR >::getFieldComponent ( unsigned iD) const
inline

Definition at line 95 of file cellD.h.

95 {
96 return _fieldsD.template getFieldComponent<FIELD>(0, iD);
97 }

◆ getFieldPointer() [1/2]

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
auto olb::CellD< T, DESCRIPTOR >::getFieldPointer ( )
inline

Definition at line 85 of file cellD.h.

85 {
86 return _fieldsD.template getFieldPointer<FIELD>(0);
87 }

◆ getFieldPointer() [2/2]

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
auto olb::CellD< T, DESCRIPTOR >::getFieldPointer ( ) const
inline

Definition at line 90 of file cellD.h.

90 {
91 return _fieldsD.template getFieldPointer<FIELD>(0);
92 }

◆ operator[]() [1/2]

template<typename T , typename DESCRIPTOR >
T & olb::CellD< T, DESCRIPTOR >::operator[] ( unsigned iPop)
inline

Definition at line 70 of file cellD.h.

70 {
71 return _fieldsD.template getFieldComponent<descriptors::POPULATION>(0, iPop);
72 }

◆ operator[]() [2/2]

template<typename T , typename DESCRIPTOR >
const T & olb::CellD< T, DESCRIPTOR >::operator[] ( unsigned iPop) const
inline

Definition at line 66 of file cellD.h.

66 {
67 return _fieldsD.template getFieldComponent<descriptors::POPULATION>(0, iPop);
68 }

◆ setField()

template<typename T , typename DESCRIPTOR >
template<typename FIELD >
void olb::CellD< T, DESCRIPTOR >::setField ( const FieldD< T, DESCRIPTOR, FIELD > & v)
inline

Definition at line 80 of file cellD.h.

80 {
81 _fieldsD.template setField<FIELD>(0, v);
82 }

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