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

Minimal cell storing only population data. More...

#include <cellD.h>

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

Public Types

using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

template<typename POPULATIONS >
 PopulationCellD (POPULATIONS &&pops) any_platform
 
const T & operator[] (unsigned iPop) const any_platform
 
T & operator[] (unsigned iPop) any_platform
 

Detailed Description

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

Minimal cell storing only population data.

Definition at line 33 of file cellD.h.

Member Typedef Documentation

◆ descriptor_t

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

Definition at line 39 of file cellD.h.

◆ value_t

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

Definition at line 38 of file cellD.h.

Constructor & Destructor Documentation

◆ PopulationCellD()

template<typename T , typename DESCRIPTOR >
template<typename POPULATIONS >
olb::PopulationCellD< T, DESCRIPTOR >::PopulationCellD ( POPULATIONS && pops)
inline

Definition at line 42 of file cellD.h.

42 :
43 _data{pops} { }

Member Function Documentation

◆ operator[]() [1/2]

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

Definition at line 49 of file cellD.h.

49 {
50 return _data[iPop];
51 }

◆ operator[]() [2/2]

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

Definition at line 45 of file cellD.h.

45 {
46 return _data[iPop];
47 }

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