SPH
Public Member Functions | List of all members
SparseGrid< T > Class Template Reference

#include <Grid.h>

Public Member Functions

 SparseGrid ()=default
 
 SparseGrid (const Size dimensions, const T &value=T())
 
INLINE T & operator[] (const Indices &idxs)
 
INLINE const T & operator[] (const Indices &idxs) const
 
template<typename TFunctor >
void iterate (const TFunctor &functor)
 
INLINE Size size () const
 
INLINE bool empty () const
 
INLINE uint64_t voxelCount () const
 

Detailed Description

template<typename T>
class SparseGrid< T >

Definition at line 187 of file Grid.h.

Constructor & Destructor Documentation

◆ SparseGrid() [1/2]

template<typename T >
SparseGrid< T >::SparseGrid ( )
default

◆ SparseGrid() [2/2]

template<typename T >
SparseGrid< T >::SparseGrid ( const Size  dimensions,
const T &  value = T() 
)
inline

Definition at line 197 of file Grid.h.

Member Function Documentation

◆ empty()

template<typename T >
INLINE bool SparseGrid< T >::empty ( ) const
inline

Definition at line 231 of file Grid.h.

◆ iterate()

template<typename T >
template<typename TFunctor >
void SparseGrid< T >::iterate ( const TFunctor &  functor)
inline

Definition at line 223 of file Grid.h.

◆ operator[]() [1/2]

template<typename T >
INLINE T& SparseGrid< T >::operator[] ( const Indices idxs)
inline

Definition at line 203 of file Grid.h.

◆ operator[]() [2/2]

template<typename T >
INLINE const T& SparseGrid< T >::operator[] ( const Indices idxs) const
inline

Definition at line 213 of file Grid.h.

◆ size()

template<typename T >
INLINE Size SparseGrid< T >::size ( ) const
inline

Definition at line 227 of file Grid.h.

◆ voxelCount()

template<typename T >
INLINE uint64_t SparseGrid< T >::voxelCount ( ) const
inline

Definition at line 235 of file Grid.h.


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