The Array3 class represents a 3-dimensional array that minimizes the number of new and delete calls. The T objects are stored in a contiguous array.
More...
#include <NeArray3.h>
Public Member Functions | |
Array3 (size_t bound0, size_t bound1, size_t bound2) | |
Constructor. More... | |
Array3 (size_t bound0, size_t bound1, size_t bound2, T *objects) | |
Constructor. More... | |
Array3 () | |
Default constructor. More... | |
Array3 (Array3 const &) | |
Array3 & | operator= (Array3 const &) |
Array3 (Array3 &&) | |
Array3 & | operator= (Array3 &&) |
size_t | GetBound0 () const |
size_t | GetBound1 () const |
size_t | GetBound2 () const |
T *const * | operator[] (int slice) const |
T ** | operator[] (int slice) |
Private Member Functions | |
void | SetPointers (T *objects) |
void | SetPointers (Array3 const &other) |
Private Attributes | |
size_t | mBound0 |
size_t | mBound1 |
size_t | mBound2 |
std::vector< T > | mObjects |
std::vector< T * > | mIndirect1 |
std::vector< T ** > | mIndirect2 |
The Array3 class represents a 3-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 NeArray3.h.
Array3::Array3 | ( | size_t | bound0, |
size_t | bound1, | ||
size_t | bound2 | ||
) |
Constructor.
<note> Construction. The first constructor generates an array of objects that are owned by Array3. The array has bound0 columns, bound1 rows, and bound2 slices. </note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
bound2 | The second bound. |
File: NECore/DataTypes/NeArray3.inl
Author:
Email:
Site:
Copyright (c) 2016 . All rights reserved.
Definition at line 12 of file NeArray3.inl.
Array3::Array3 | ( | size_t | bound0, |
size_t | bound1, | ||
size_t | bound2, | ||
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, and bound2 slices. </note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
bound2 | The second bound. |
objects | [in,out] If non-null, the objects. |
Definition at line 25 of file NeArray3.inl.
Array3::Array3 | ( | ) |
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 37 of file NeArray3.inl.
|
inline |
Definition at line 76 of file NeArray3.inl.
|
inline |
Definition at line 82 of file NeArray3.inl.
|
inline |
Definition at line 88 of file NeArray3.inl.
|
inline |
Definition at line 94 of file NeArray3.inl.
|
inline |
Definition at line 100 of file NeArray3.inl.
|
private |
Definition at line 106 of file NeArray3.inl.
|
private |
Definition at line 121 of file NeArray3.inl.
|
private |
Definition at line 102 of file NeArray3.h.
|
private |
Definition at line 102 of file NeArray3.h.
|
private |
Definition at line 102 of file NeArray3.h.
|
private |
Definition at line 103 of file NeArray3.h.
|
private |
Definition at line 104 of file NeArray3.h.
|
private |
Definition at line 105 of file NeArray3.h.