OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
olb::ColumnVector< COLUMN, D >::const_ptr Class Reference

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

#include <columnVector.h>

+ Inheritance diagram for olb::ColumnVector< COLUMN, D >::const_ptr:
+ Collaboration diagram for olb::ColumnVector< COLUMN, D >::const_ptr:

Public Member Functions

 const_ptr (const ColumnVector< COLUMN, D > &columns, 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 COLUMN::value_t, D, 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 COLUMN::value_t * getComponentPointer (unsigned iDim) const
 

Additional Inherited Members

- Public Types inherited from olb::ScalarVector< const COLUMN::value_t, D, 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 COLUMN, unsigned D>
class olb::ColumnVector< COLUMN, D >::const_ptr

Read-only proxy for accessing a column vector entry.

Definition at line 190 of file columnVector.h.

Constructor & Destructor Documentation

◆ const_ptr() [1/2]

template<typename COLUMN , unsigned D>
olb::ColumnVector< COLUMN, D >::const_ptr::const_ptr ( const ColumnVector< COLUMN, D > & columns,
std::size_t index )
inline

Definition at line 204 of file columnVector.h.

204 :
205 _data(columns),
206 _index(index) { }

◆ const_ptr() [2/2]

template<typename COLUMN , unsigned D>
olb::ColumnVector< COLUMN, D >::const_ptr::const_ptr ( const_ptr && rhs)
inline

Definition at line 208 of file columnVector.h.

208 :
209 _data(rhs._data),
210 _index(rhs._index) { }

Member Function Documentation

◆ getComponentPointer()

template<typename COLUMN , unsigned D>
const COLUMN::value_t * olb::ColumnVector< COLUMN, D >::const_ptr::getComponentPointer ( unsigned iDim) const
inlineprotected

Definition at line 198 of file columnVector.h.

199 {
200 return &_data[iDim][_index];
201 }

◆ getIndex()

template<typename COLUMN , unsigned D>
std::size_t olb::ColumnVector< COLUMN, D >::const_ptr::getIndex ( ) const
inline

Definition at line 212 of file columnVector.h.

213 {
214 return _index;
215 }

◆ setIndex()

template<typename COLUMN , unsigned D>
void olb::ColumnVector< COLUMN, D >::const_ptr::setIndex ( std::size_t index)
inline

Definition at line 217 of file columnVector.h.

218 {
219 _index = index;
220 }

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