|
Scopira
20080306
|
#include <array.h>
Public Member Functions | |
| basic_matrix (void) | |
| basic_matrix (size_t w, size_t h) | |
| void | resize (size_t w, size_t h) |
| size_t | width (void) const |
| size_t | height (void) const |
| void | set (size_t x, size_t y, const T &v) |
| const T & | get (size_t x, size_t y) const |
| T & | get (size_t x, size_t y) |
| const T & | operator() (size_t x, size_t y) const |
| T & | operator() (size_t x, size_t y) |
Public Member Functions inherited from scopira::tool::basic_array< T > | |
| basic_array (void) | |
| basic_array (size_t len) | |
| basic_array (const basic_array &rhs) | |
| ~basic_array () | |
| Destructor. | |
| void | resize (size_t newlen) |
| void | array_swap (basic_array< T > &other) |
| T * | array (void) |
| const T * | array (void) const |
| T * | c_array (void) |
| const T * | c_array (void) const |
| iterator | begin (void) |
| iterator | end (void) |
| const_iterator | begin (void) const |
| const_iterator | end (void) const |
| basic_array & | operator= (const basic_array &rhs) |
| void | clear (void) |
| void | clear_zero (void) |
| size_t | size (void) const |
| bool | empty (void) const |
| void | set (size_t idx, const T &v) |
| const T & | get (size_t idx) const |
| T & | get (size_t idx) |
| const T & | operator[] (size_t idx) const |
| T & | operator[] (size_t idx) |
Protected Member Functions | |
| void | resize (size_t newlen) |
Protected Attributes | |
| size_t | dm_w |
| size_t | dm_h |
Protected Attributes inherited from scopira::tool::basic_array< T > | |
| T * | dm_ary |
| size_t | dm_len |
Additional Inherited Members | |
Public Types inherited from scopira::tool::basic_array< T > | |
| typedef T | data_type |
| typedef T * | iterator |
| typedef const T * | const_iterator |
A basic_matrix adds 2 dimentional (matrix) like operations to basic_array.
|
inline |
Makes a 0 by 0 matrix.
|
inline |
Makes a w by h matrix.
|
inline |
Individual element setter
|
inline |
Individual element setter
|
inline |
Returns the height of the matrix.
|
inline |
Nice reference access
|
inline |
Nice reference access
|
inline |
Resizes the matrix to the new, given dimensions. Please see basic_array::resize for what happens to the data.
|
inline |
Individual element setter
|
inline |
Returns the width of the matrix.