A dense 3D grid of templated Cells.
More...
Inherits G3D::ReferenceCountedObject.
|
static shared_ptr< Grid > | create () |
| A grid can also be directly constructed as an object instead of a pointer...see the public constructor. More...
|
|
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
template<typename Cell>
class G3D::Grid< Cell >
A dense 3D grid of templated Cells.
- See also
- Array, RayGridIterator, PointHashGrid, FastPointHashGrid
◆ Grid() [1/2]
◆ Grid() [2/2]
◆ ~Grid()
◆ clearAndResize() [1/2]
◆ clearAndResize() [2/2]
◆ create()
A grid can also be directly constructed as an object instead of a pointer...see the public constructor.
◆ createShared()
template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared |
( |
ArgTypes &&... |
args | ) |
|
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
◆ emptyValue()
template<typename Cell >
const Cell& G3D::Grid< Cell >::emptyValue |
( |
| ) |
const |
|
inline |
◆ get()
◆ inBounds()
◆ operator=()
◆ operator[]() [1/2]
Assumes that p is in bounds.
◆ operator[]() [2/2]
Assumes that p is in bounds.
◆ set()
◆ setEmptyValue()
template<typename Cell >
void G3D::Grid< Cell >::setEmptyValue |
( |
const Cell & |
e | ) |
|
|
inline |
◆ size()
◆ m_cell
◆ m_empty
◆ m_size