|
|
| Data2D () |
| | Default constructor which initializes to size 0.
|
| |
| | Data2D (size_t d_size1, size_t d_size2) |
| | Constructor which sets the initial sizes. More...
|
| |
| | Data2D (const Data2D< T > ©) |
| | Copy constructor that copies all elements. More...
|
| |
|
| Data2D (const std::initializer_list< Data1D< T >> &new_data) |
| | Initializer list constructor, initializes with nested brackets.
|
| |
|
| ~Data2D () |
| | 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 |
| |
| Data2D & | operator= (const Data2D &other) |
| | Assignment operator which copies all contents from other. More...
|
| |
| RAIter< Data1D< Data1D< T > >, Data1D< T > > | begin () |
| | Copy data from any other object of a type with a compatible. More...
|
| |
|
const RAIter< Data1D< Data1D< T > >, Data1D< T > > | begin () const |
| | Const version of begin.
|
| |
| RAIter< Data1D< Data1D< T > >, Data1D< T > > | end () |
| | Return a bounds-checked random-access iterator starting just past the last element. More...
|
| |
|
RAIter< Data1D< Data1D< T > >, Data1D< T > > | end () const |
| | Const version end.
|
| |
| Data1D< T > & | operator[] (size_t x) |
| | Bounds-checked access of a Data1D corresponding to the data at index x in dimension 2. More...
|
| |
|
Data1D< T > & | operator() (size_t x) |
| | Identical to Data2D::operator[].
|
| |
|
const Data1D< T > & | operator[] (size_t x) const |
| | Const version of Data2D::operator[].
|
| |
|
const Data1D< T > & | operator() (size_t x) const |
| | Const version of Data2D::operator[].
|
| |
| T & | operator() (size_t x, size_t y) |
| | Bounds-checked access of an element. More...
|
| |
|
const T & | operator() (size_t x, size_t y) const |
| | Const version of Data2D::operator()(size_t x, size_t y)
|
| |
|
T & | At (size_t x, size_t y) |
| | Equivalent to Data2D::operator()(size_t x, size_t y)
|
| |
|
const T & | At (size_t x, size_t y) const |
| | Const version of Data2D::operator()(size_t x, size_t y)
|
| |
|
size_t | size1 () const |
| | Get the size of dimension 1.
|
| |
|
size_t | size2 () const |
| | Get the size of dimension 2.
|
| |
|
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 |
| | Check if the indices x and y are in bounds. More...
|
| |
| void | Assert (const size_t x, const size_t y) const |
| | Throw an ErrorMsgBounds exception if either x or y is out of bounds. More...
|
| |
| void | Resize (const size_t resize_size1, const size_t resize_size2) |
| | Resize the array, reallocating if necessary. More...
|
| |
| T ** | Raw () |
| | Access a raw unprotected 2-dimensional C-array for the enclosed data. More...
|
| |
| Data1D< Data1D< T > > & | RawData () |
| | Access the underlying nested Data1D structure for this object. More...
|
| |
|
const Data1D< Data1D< T > > & | RawData () const |
| | 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::Data2D< T >
A bounds-safe two-dimensional resizeable structure.
Note: Non-POD classes stored in Data2D containers must have a default constructor with default values or no arguments.
- See also
- Data1D
-
Data3D