Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::core::Array2D< T > Class Template Reference

#include <Array2D.h>

Public Member Functions

 Array2D (int width, int height)
 Constructor.
 Array2D (const Array2D &other)
 Copy constructor.
 ~Array2D ()
 Destructor.
Array2Doperator= (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

Detailed Description

template<class T>
class kge::core::Array2D< T >

Definition at line 17 of file Array2D.h.

Constructor & Destructor Documentation

template<class T >
kge::core::Array2D< T >::Array2D ( int  width,
int  height 
)
inline
template<class T >
kge::core::Array2D< T >::Array2D ( const Array2D< T > &  other)
inline
template<class T >
kge::core::Array2D< T >::~Array2D ( )
inline

Destructor.

Definition at line 38 of file Array2D.h.

References KGE_DELETE_ARRAY, and kge::core::Array2D< T >::m_pArray.

Member Function Documentation

template<class T >
T* kge::core::Array2D< T >::Get ( int  x,
int  y 
)
inline
template<class T >
T* kge::core::Array2D< T >::GetArray ( )
inline

Definition at line 57 of file Array2D.h.

References kge::core::Array2D< T >::m_pArray.

template<class T >
int kge::core::Array2D< T >::GetArraySize ( )
inline
template<class T >
Array2D& kge::core::Array2D< T >::operator= ( const Array2D< T > &  other)
inline

Definition at line 45 of file Array2D.h.

References kge::core::Array2D< T >::Swap().

template<class T >
void kge::core::Array2D< T >::Recreate ( int  width,
int  height 
)
inline
template<class T >
void kge::core::Array2D< T >::Set ( data,
int  x,
int  y 
)
inline
template<class T >
void kge::core::Array2D< T >::SetAll ( data)
inline
template<class T >
void kge::core::Array2D< T >::SetArray ( T *  pData,
int  width,
int  height 
)
inline
template<class T >
void kge::core::Array2D< T >::Swap ( Array2D< T > &  other)
inline

Member Data Documentation


The documentation for this class was generated from the following file: