SPH
Classes | Functions
ArrayView.h File Reference

Simple non-owning view of a container. More...

#include "objects/utility/Iterator.h"

Go to the source code of this file.

Classes

class  ArrayView< T, TCounter >
 Object providing safe access to continuous memory of data. More...
 

Functions

template<typename T >
bool almostEqual (const ArrayView< T > v1, const ArrayView< T > v2, const Float &eps)
 
template<typename T >
INLINE ArrayView< T > getSingleValueView (T &value)
 

Detailed Description

Simple non-owning view of a container.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file ArrayView.h.

Function Documentation

◆ almostEqual()

template<typename T >
bool almostEqual ( const ArrayView< T >  v1,
const ArrayView< T >  v2,
const Float eps 
)

Definition at line 153 of file ArrayView.h.

◆ getSingleValueView()

template<typename T >
INLINE ArrayView<T> getSingleValueView ( T &  value)

Definition at line 167 of file ArrayView.h.