The Array4 class represents a 4-dimensional array that minimizes the number of new and delete calls. The T objects are stored in a contiguous array.
More...
#include <NeArray4.h>
Public Member Functions | |
Array4 (size_t bound0, size_t bound1, size_t bound2, size_t bound3) | |
Constructor. More... | |
Array4 (size_t bound0, size_t bound1, size_t bound2, size_t bound3, T *objects) | |
Constructor. More... | |
Array4 () | |
Default constructor. More... | |
Array4 (Array4 const &) | |
Array4 & | operator= (Array4 const &) |
Array4 (Array4 &&) | |
Array4 & | operator= (Array4 &&) |
size_t | GetBound0 () const |
size_t | GetBound1 () const |
size_t | GetBound2 () const |
size_t | GetBound3 () const |
T **const * | operator[] (int cuboid) const |
T *** | operator[] (int cuboid) |
Private Member Functions | |
void | SetPointers (T *objects) |
void | SetPointers (Array4 const &other) |
Private Attributes | |
size_t | mBound0 |
size_t | mBound1 |
size_t | mBound2 |
size_t | mBound3 |
std::vector< T > | mObjects |
std::vector< T * > | mIndirect1 |
std::vector< T ** > | mIndirect2 |
std::vector< T *** > | mIndirect3 |
The Array4 class represents a 4-dimensional array that minimizes the number of new and delete calls. The T objects are stored in a contiguous array.
Hmetal T, 04.08.2016.
Definition at line 30 of file NeArray4.h.
Array4::Array4 | ( | size_t | bound0, |
size_t | bound1, | ||
size_t | bound2, | ||
size_t | bound3 | ||
) |
Constructor.
<note> The first constructor generates an array of objects that are owned by Array4. The array has bound0 columns, bound1 rows, bound2 slices, and bound3 cuboids. </note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
bound2 | The second bound. |
bound3 | The third bound. |
File: NECore/DataTypes/NeArray4.inl
Author:
Email:
Site:
Copyright (c) 2016 . All rights reserved.
Definition at line 12 of file NeArray4.inl.
Array4::Array4 | ( | size_t | bound0, |
size_t | bound1, | ||
size_t | bound2, | ||
size_t | bound3, | ||
T * | objects | ||
) |
Constructor.
<note> The second constructor is given an array of objects that are owned by the caller. The array has bound0 columns, bound1 rows, bound2 slices, and bound3 cuboids. </note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
bound2 | The second bound. |
bound3 | The third bound. |
objects | [in,out] If non-null, the objects. |
Definition at line 27 of file NeArray4.inl.
Array4::Array4 | ( | ) |
Default constructor.
<note> Support for dynamic resizing, copying, or moving. If 'other' does not own the original 'objects', they are not copied by the assignment operator. </note>
Hmetal T, 04.08.2016.
Definition at line 41 of file NeArray4.inl.
|
inline |
Definition at line 81 of file NeArray4.inl.
|
inline |
Definition at line 87 of file NeArray4.inl.
|
inline |
Definition at line 93 of file NeArray4.inl.
|
inline |
Definition at line 99 of file NeArray4.inl.
|
inline |
Definition at line 105 of file NeArray4.inl.
|
inline |
Definition at line 111 of file NeArray4.inl.
|
private |
Definition at line 117 of file NeArray4.inl.
|
private |
Definition at line 137 of file NeArray4.inl.
|
private |
Definition at line 106 of file NeArray4.h.
|
private |
Definition at line 106 of file NeArray4.h.
|
private |
Definition at line 106 of file NeArray4.h.
|
private |
Definition at line 106 of file NeArray4.h.
|
private |
Definition at line 107 of file NeArray4.h.
|
private |
Definition at line 108 of file NeArray4.h.
|
private |
Definition at line 109 of file NeArray4.h.
|
private |
Definition at line 110 of file NeArray4.h.