EasyNav Plugins
Loading...
Searching...
No Matches
Grid< DataT > Class Template Reference

The Grid class is used to store data in a cube. More...

#include <bonxai.hpp>

Public Member Functions

DataT & cell (size_t index)
const DataT & cell (size_t index) const
 Grid (const Grid &other)=delete
 Grid (Grid &&other)
 Grid (size_t log2dim)
 Grid (size_t log2dim, DataT *preAllocatedMemory)
Bonxai::Maskmask ()
const Bonxai::Maskmask () const
size_t memUsage () const
Gridoperator= (const Grid &other)=delete
Gridoperator= (Grid &&other)
size_t size () const
 ~Grid ()

Detailed Description

template<typename DataT>
class Bonxai::Grid< DataT >

The Grid class is used to store data in a cube.

The size (DIM) of the cube can only be a power of 2.

For instance, given Grid(3), DIM will be 8 and SIZE 512 (8³)

Constructor & Destructor Documentation

◆ Grid() [1/4]

template<typename DataT>
Grid ( size_t log2dim)

◆ Grid() [2/4]

template<typename DataT>
Grid ( size_t log2dim,
DataT * preAllocatedMemory )

◆ Grid() [3/4]

template<typename DataT>
Grid ( const Grid< DataT > & other)
delete

◆ Grid() [4/4]

template<typename DataT>
Grid ( Grid< DataT > && other)

◆ ~Grid()

template<typename DataT>
~Grid ( )

Member Function Documentation

◆ cell() [1/2]

template<typename DataT>
DataT & cell ( size_t index)
nodiscard

◆ cell() [2/2]

template<typename DataT>
const DataT & cell ( size_t index) const
nodiscard

◆ mask() [1/2]

template<typename DataT>
Bonxai::Mask & mask ( )
nodiscard

◆ mask() [2/2]

template<typename DataT>
const Bonxai::Mask & mask ( ) const
nodiscard

◆ memUsage()

template<typename DataT>
size_t memUsage ( ) const
nodiscard

◆ operator=() [1/2]

template<typename DataT>
Grid & operator= ( const Grid< DataT > & other)
delete

◆ operator=() [2/2]

template<typename DataT>
Grid< DataT > & operator= ( Grid< DataT > && other)

◆ size()

template<typename DataT>
size_t size ( ) const
nodiscard

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