The Array2 class represents a 2-dimensional array that minimizes the number of new and delete calls. The T objects are stored in a contiguous array.
More...
#include <NeArray2.h>
Public Member Functions | |
Array2 (size_t bound0, size_t bound1) | |
Constructor. More... | |
Array2 (size_t bound0, size_t bound1, T *objects) | |
Constructor. More... | |
Array2 () | |
Default constructor. More... | |
Array2 (Array2 const &other) | |
Array2 & | operator= (Array2 const &other) |
Array2 (Array2 &&other) | |
Array2 & | operator= (Array2 &&other) |
size_t | GetBound0 () const |
size_t | GetBound1 () const |
T const * | operator[] (int row) const |
T * | operator[] (int row) |
Private Member Functions | |
void | SetPointers (T *objects) |
void | SetPointers (Array2 const &other) |
Private Attributes | |
size_t | mBound0 |
size_t | mBound1 |
std::vector< T > | mObjects |
std::vector< T * > | mIndirect1 |
The Array2 class represents a 2-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 NeArray2.h.
Array2::Array2 | ( | size_t | bound0, |
size_t | bound1 | ||
) |
Constructor.
<note> Construction. The first constructor generates an array of objects that are owned by Array2.
</note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
File: NECore/DataTypes/NeArray2.inl
Author:
Email:
Site:
Copyright (c) 2016 . All rights reserved.
Definition at line 12 of file NeArray2.inl.
Array2::Array2 | ( | size_t | bound0, |
size_t | bound1, | ||
T * | objects | ||
) |
Constructor.
<note> The second constructor is given an array of objects that are owned by the caller. The array has bound0 columns and bound1 rows. </note>
Hmetal T, 04.08.2016.
bound0 | The bound 0. |
bound1 | The first bound. |
objects | [in,out] If non-null, the objects. |
Definition at line 23 of file NeArray2.inl.
Array2::Array2 | ( | ) |
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 33 of file NeArray2.inl.
Array2::Array2 | ( | Array2< T > const & | other | ) |
Definition at line 41 of file NeArray2.inl.
Array2::Array2 | ( | Array2< T > && | other | ) |
Definition at line 56 of file NeArray2.inl.
Definition at line 47 of file NeArray2.inl.
Definition at line 62 of file NeArray2.inl.
|
inline |
Definition at line 71 of file NeArray2.inl.
|
inline |
Definition at line 77 of file NeArray2.inl.
|
inline |
Definition at line 83 of file NeArray2.inl.
|
inline |
Definition at line 89 of file NeArray2.inl.
|
private |
Definition at line 95 of file NeArray2.inl.
|
private |
Definition at line 105 of file NeArray2.inl.
|
private |
Definition at line 97 of file NeArray2.h.
|
private |
Definition at line 97 of file NeArray2.h.
|
private |
Definition at line 98 of file NeArray2.h.
|
private |
Definition at line 99 of file NeArray2.h.