![]() |
Kochol Game Engine
0.1.0
|
#include <Array2D.h>
Public Member Functions | |
Array2D (int width, int height) | |
Constructor. | |
Array2D (const Array2D &other) | |
Copy constructor. | |
~Array2D () | |
Destructor. | |
Array2D & | operator= (const Array2D &other) |
T * | Get (int x, int y) |
T * | GetArray () |
void | SetArray (T *pData, int width, int height) |
int | GetArraySize () |
void | Set (T data, int x, int y) |
void | Recreate (int width, int height) |
void | SetAll (T data) |
void | Swap (Array2D &other) |
Protected Attributes | |
T * | m_pArray |
int | m_iWidth |
int | m_iHeight |
|
inline |
Constructor.
Definition at line 22 of file Array2D.h.
References KGE_NEW_ARRAY, kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Copy constructor.
Definition at line 30 of file Array2D.h.
References kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Destructor.
Definition at line 38 of file Array2D.h.
References KGE_DELETE_ARRAY, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 52 of file Array2D.h.
References kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 57 of file Array2D.h.
References kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 70 of file Array2D.h.
References kge::core::Array2D< T >::m_iHeight, and kge::core::Array2D< T >::m_iWidth.
|
inline |
Definition at line 45 of file Array2D.h.
References kge::core::Array2D< T >::Swap().
|
inline |
Definition at line 82 of file Array2D.h.
References KGE_DELETE_ARRAY, KGE_NEW_ARRAY, kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 75 of file Array2D.h.
References kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 90 of file Array2D.h.
References kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 62 of file Array2D.h.
References KGE_DELETE_ARRAY, kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
|
inline |
Definition at line 97 of file Array2D.h.
References kge::core::Array2D< T >::m_iHeight, kge::core::Array2D< T >::m_iWidth, and kge::core::Array2D< T >::m_pArray.
Referenced by kge::core::Array2D< T >::operator=().
|
protected |
Definition at line 115 of file Array2D.h.
Referenced by kge::core::Array2D< T >::Array2D(), kge::core::Array2D< T >::GetArraySize(), kge::core::Array2D< T >::Recreate(), kge::core::Array2D< T >::Set(), kge::core::Array2D< T >::SetAll(), kge::core::Array2D< T >::SetArray(), and kge::core::Array2D< T >::Swap().
|
protected |
Definition at line 115 of file Array2D.h.
Referenced by kge::core::Array2D< T >::Array2D(), kge::core::Array2D< T >::Get(), kge::core::Array2D< T >::GetArraySize(), kge::core::Array2D< T >::Recreate(), kge::core::Array2D< T >::Set(), kge::core::Array2D< T >::SetAll(), kge::core::Array2D< T >::SetArray(), and kge::core::Array2D< T >::Swap().
|
protected |
Definition at line 114 of file Array2D.h.
Referenced by kge::core::Array2D< T >::Array2D(), kge::core::Array2D< T >::Get(), kge::core::Array2D< T >::GetArray(), kge::core::Array2D< T >::Recreate(), kge::core::Array2D< T >::Set(), kge::core::Array2D< T >::SetAll(), kge::core::Array2D< T >::SetArray(), kge::core::Array2D< T >::Swap(), and kge::core::Array2D< T >::~Array2D().