OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr Class Reference

Read-only proxy for accessing a column vector entry. More...

#include <fieldArrayD.h>

+ Inheritance diagram for olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr:
+ Collaboration diagram for olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr:

Public Member Functions

 const_ptr (const AbstractFieldArrayD< T, DESCRIPTOR, FIELD > &data, std::size_t index)
 
 const_ptr (const_ptr &&rhs)
 
std::size_t getIndex () const
 
void setIndex (std::size_t index)
 
- Public Member Functions inherited from olb::ScalarVector< const FIELD::template value_type< T >, DESCRIPTOR::template size< FIELD >(), const_ptr >
constexpr ScalarVector ()=default
 
 ScalarVector (const ScalarVector &)=delete
 
 ScalarVector (ScalarVector &&)=delete
 
- Public Member Functions inherited from olb::GenericVector< T, D, IMPL >
constexpr GenericVector ()=default
 
 GenericVector (const GenericVector &)=delete
 
 GenericVector (GenericVector &&)=delete
 
GenericVectoroperator= (GenericVector &&rhs)=delete
 
constexpr const T & operator[] (unsigned iDim) const any_platform
 
constexpr T & operator[] (unsigned iDim) any_platform
 
template<typename IMPL_ >
constexpr IMPL & operator= (const GenericVector< T, D, IMPL_ > &rhs) any_platform
 
template<typename U , typename IMPL_ >
constexpr IMPL & operator+= (const GenericVector< U, D, IMPL_ > &rhs) any_platform
 
template<typename IMPL_ >
constexpr IMPL & operator-= (const GenericVector< T, D, IMPL_ > &rhs) any_platform
 
template<typename U , typename IMPL_ >
constexpr IMPL & operator*= (const GenericVector< U, D, IMPL_ > &rhs) any_platform
 
template<typename U >
constexpr meta::enable_if_arithmetic_t< U, IMPL & > operator+= (const U &rhs) any_platform
 
template<typename U >
constexpr meta::enable_if_arithmetic_t< U, IMPL & > operator-= (const U &rhs) any_platform
 
template<typename U >
constexpr meta::enable_if_arithmetic_t< U, IMPL & > operator*= (const U &rhs) any_platform
 
template<typename U >
constexpr meta::enable_if_arithmetic_t< U, IMPL & > operator/= (const U &rhs) any_platform
 
template<typename IMPL_ >
constexpr bool operator== (const GenericVector< T, D, IMPL_ > &rhs) const any_platform
 
template<typename IMPL_ >
constexpr bool operator!= (const GenericVector< T, D, IMPL_ > &rhs) const any_platform
 

Protected Member Functions

const FIELD::template value_type< T > * getComponentPointer (unsigned iDim) const
 

Additional Inherited Members

- Public Types inherited from olb::ScalarVector< const FIELD::template value_type< T >, DESCRIPTOR::template size< FIELD >(), const_ptr >
using type
 
- Public Types inherited from olb::GenericVector< T, D, IMPL >
using value_type = T
 
- Static Public Member Functions inherited from olb::GenericVector< T, D, IMPL >
static constexpr unsigned size ()
 
- Static Public Attributes inherited from olb::GenericVector< T, D, IMPL >
static constexpr unsigned d = D
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename FIELD>
class olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr

Read-only proxy for accessing a column vector entry.

Definition at line 106 of file fieldArrayD.h.

Constructor & Destructor Documentation

◆ const_ptr() [1/2]

template<typename T , typename DESCRIPTOR , typename FIELD >
olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr::const_ptr ( const AbstractFieldArrayD< T, DESCRIPTOR, FIELD > & data,
std::size_t index )
inline

Definition at line 125 of file fieldArrayD.h.

125 :
126 _data(data),
127 _index(index) { }

◆ const_ptr() [2/2]

template<typename T , typename DESCRIPTOR , typename FIELD >
olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr::const_ptr ( const_ptr && rhs)
inline

Definition at line 129 of file fieldArrayD.h.

129 :
130 _data(rhs._data),
131 _index(rhs._index) { }

Member Function Documentation

◆ getComponentPointer()

template<typename T , typename DESCRIPTOR , typename FIELD >
const FIELD::template value_type< T > * olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr::getComponentPointer ( unsigned iDim) const
inlineprotected

Definition at line 119 of file fieldArrayD.h.

120 {
121 return &_data[iDim][_index];
122 }

◆ getIndex()

template<typename T , typename DESCRIPTOR , typename FIELD >
std::size_t olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr::getIndex ( ) const
inline

Definition at line 133 of file fieldArrayD.h.

134 {
135 return _index;
136 }

◆ setIndex()

template<typename T , typename DESCRIPTOR , typename FIELD >
void olb::AbstractFieldArrayD< T, DESCRIPTOR, FIELD >::const_ptr::setIndex ( std::size_t index)
inline

Definition at line 138 of file fieldArrayD.h.

139 {
140 _index = index;
141 }

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