#include <glh_array.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
array2 (int width=1, int height=1) | |
array2 (const array2< T > &t) | |
void | clear (const T &val) |
void | copy (const array2< T > &src, int i_offset=0, int j_offset=0, int width=0, int height=0) |
int | get_height () const |
T * | get_pointer () |
const T * | get_pointer () const |
int | get_width () const |
T & | operator() (int i, int j) |
const T & | operator() (int i, int j) const |
const array2 & | operator= (const array2< T > &t) |
void | set_size (int width, int height) |
~array2 () | |
Private Attributes | |
T * | data |
int | h |
int | w |
Definition at line 54 of file glh_array.h.
typedef T glh::array2< T >::value_type |
Definition at line 57 of file glh_array.h.
glh::array2< T >::array2 | ( | int | width = 1 , |
int | height = 1 |
||
) | [inline] |
Definition at line 59 of file glh_array.h.
glh::array2< T >::array2 | ( | const array2< T > & | t | ) | [inline] |
Definition at line 67 of file glh_array.h.
glh::array2< T >::~array2 | ( | ) | [inline] |
Definition at line 75 of file glh_array.h.
void glh::array2< T >::clear | ( | const T & | val | ) | [inline] |
Definition at line 114 of file glh_array.h.
void glh::array2< T >::copy | ( | const array2< T > & | src, |
int | i_offset = 0 , |
||
int | j_offset = 0 , |
||
int | width = 0 , |
||
int | height = 0 |
||
) | [inline] |
Definition at line 121 of file glh_array.h.
int glh::array2< T >::get_height | ( | ) | const [inline] |
Definition at line 112 of file glh_array.h.
T* glh::array2< T >::get_pointer | ( | ) | [inline] |
Definition at line 148 of file glh_array.h.
const T* glh::array2< T >::get_pointer | ( | ) | const [inline] |
Definition at line 150 of file glh_array.h.
int glh::array2< T >::get_width | ( | ) | const [inline] |
Definition at line 110 of file glh_array.h.
T& glh::array2< T >::operator() | ( | int | i, |
int | j | ||
) | [inline] |
Definition at line 103 of file glh_array.h.
const T& glh::array2< T >::operator() | ( | int | i, |
int | j | ||
) | const [inline] |
Definition at line 106 of file glh_array.h.
const array2& glh::array2< T >::operator= | ( | const array2< T > & | t | ) | [inline] |
Definition at line 77 of file glh_array.h.
void glh::array2< T >::set_size | ( | int | width, |
int | height | ||
) | [inline] |
Definition at line 86 of file glh_array.h.
T* glh::array2< T >::data [private] |
Definition at line 154 of file glh_array.h.
int glh::array2< T >::h [private] |
Definition at line 153 of file glh_array.h.
int glh::array2< T >::w [private] |
Definition at line 153 of file glh_array.h.