Grid base class without memory management This class will simply share the memory pointers with other objects. More...
#include <Radiant/Grid.hpp>
Public Member Functions | |
| void | clear () |
| Clears the internal variables. Does not release memory. | |
| GridNoMemT (T *data=0, unsigned w=0, unsigned h=0) | |
| Constructs a new grid with the given size. More... | |
| template<class S > | |
| GridNoMemT (S &that) | |
| Constructs a shallow copy of the grid. More... | |
| template<class S > | |
| GridNoMemT & | operator= (S &that) |
| Makes a shallow copy of the grid. More... | |
Protected Attributes | |
| T * | m_data |
| Pointer to raw data. | |
| unsigned | m_height |
| Height of the grid. | |
| unsigned | m_width |
| Width of the grid. | |
Grid base class without memory management This class will simply share the memory pointers with other objects.
It is up the the user to ensure that the memory area is not invalidated while this object is being used.
|
inline |
Constructs a new grid with the given size.
| data | Grid data |
| w | Width of the grid |
| h | Height of the grid |
Constructs a shallow copy of the grid.
| that | Object to copy |
| S | Type of target object |
|
inline |
Makes a shallow copy of the grid.
| that | Object to copy |
| S | Type of target object |