|
| Data3D () |
| Default constructor which initializes to size 0, 0, 0.
|
|
| Data3D (size_t d_size1, size_t d_size2, size_t d_size3) |
| Constructor which sets the initial sizes. More...
|
|
| Data3D (const Data3D< T > ©) |
| Copy constructor that copies all elements. More...
|
|
| Data3D (const std::initializer_list< Data2D< T >> &new_data) |
| Initializer list constructor, initializes with nested brackets.
|
|
| ~Data3D () |
| Deletes all contents upon destruction.
|
|
void | Delete () |
| Delete all the elements and free all allocated memory.
|
|
void | Clear () |
| Identical to Delete().
|
|
void | Crop () |
| Reduces memory consumption to only that necessary for the current size. More...
|
|
bool | IsEmpty () const |
|
Data3D & | operator= (const Data3D &other) |
| Assignment operator which copies all contents from other. More...
|
|
Data2D< T > & | operator[] (size_t x) |
| Bounds-checked access of a Data2D corresponding to the data at index x in dimension 3. More...
|
|
Data2D< T > & | operator() (size_t x) |
| Identical to Data3D::operator[].
|
|
const Data2D< T > & | operator[] (size_t x) const |
| Const version of Data3D::operator[].
|
|
const Data2D< T > & | operator() (size_t x) const |
| Const version of Data3D::operator[].
|
|
T & | operator() (size_t x, size_t y, size_t z) |
| Bounds-checked access of an element. More...
|
|
const T & | operator() (size_t x, size_t y, size_t z) const |
| Const version of Data3D::operator()(size_t x, size_t y, size_t z)
|
|
T & | At (size_t x, size_t y, size_t z) |
| Equivalent to Data3D::operator()(size_t x, size_t y, size_t z)
|
|
const T & | At (size_t x, size_t y, size_t z) const |
| Const version of Data3D::operator()(size_t x, size_t y, size_t z))
|
|
size_t | size1 () const |
| Get the size of dimension 1.
|
|
size_t | size2 () const |
| Get the size of dimension 2.
|
|
size_t | size3 () const |
| Get the size of dimension 3.
|
|
size_t | TypeSize () const |
| Returns sizeof(T).
|
|
void | Zero () |
| Sets all elements equal to 0. More...
|
|
bool | Check (const size_t x, const size_t y, const size_t z) const |
| Check if the indices x, y, and z are in bounds. More...
|
|
void | Assert (const size_t x, const size_t y, const size_t z) const |
| Throw an ErrorMsgBounds exception if either x, y, or z is out of bounds. More...
|
|
void | Resize (const size_t resize_size1, const size_t resize_size2, const size_t resize_size3) |
| Resize the array, reallocating if necessary. More...
|
|
T *** | Raw () |
| Access a raw unprotected 3-dimensional C-array for the enclosed data. More...
|
|
const Data1D< Data2D< T > > & | RawData () const |
| Access the underlying nested Data1D/Data2D structure for this object. More...
|
|
Data1D< Data2D< T > > & | RawData () |
| Const version of RawData().
|
|
void | ToLilEndian () |
| Convert endianness of all elements if needed, for supported types.
|
|
void | FromLilEndian () |
| Convert endianness of all elements if needed, for supported types.
|
|
void | ToBigEndian () |
| Convert endianness of all elements if needed, for supported types.
|
|
void | FromBigEndian () |
| Convert endianness of all elements if needed, for supported types.
|
|
template<class T>
class RC::Data3D< T >
A bounds-safe three-dimensional resizeable structure.
- See also
- Data1D
-
Data2D