#include <vbl_array_2d.h>
Definition at line 24 of file vbl_array_2d.h.
Public Types | |
| typedef T * | iterator |
| typedef T const * | const_iterator |
Public Member Functions | |
| vbl_array_2d () | |
| Default constructor. | |
| vbl_array_2d (int m, int n) | |
| Construct m-by-n array. | |
| vbl_array_2d (int m, int n, const T &v) | |
| Construct and fill an m-by-n array. | |
| vbl_array_2d (vbl_array_2d< T > const &that) | |
| Construct from a 2d array. | |
| ~vbl_array_2d () | |
| Destructor. | |
| vbl_array_2d< T > & | operator= (vbl_array_2d< T > const &that) |
| Assignment. | |
| bool | operator== (vbl_array_2d< T > const &that) const |
| Comparison. | |
| bool | operator!= (vbl_array_2d< T > const &that) const |
| void | fill (T value) |
| fill with `value'. | |
| void | resize (int m, int n) |
| change size. | |
| void | clear () |
| make as if default-constructed. | |
| T const & | operator() (int i, int j) const |
| T & | operator() (int i, int j) |
| void | put (int i, int j, T const &x) |
| T | get (int i, int j) const |
| T const * | operator[] (int i) const |
| T * | operator[] (int i) |
| int | rows () const |
| Return number of rows. | |
| int | cols () const |
| Return number of columns. | |
| int | columns () const |
| Return number of columns. | |
| int | size () const |
| Return size = (number of rows) * (number of columns). | |
| T ** | get_rows () |
| T const *const * | get_rows () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
Private Member Functions | |
| void | construct () |
| void | construct (int m, int n) |
| void | destruct () |
Private Attributes | |
| T ** | rows_ |
| int | num_rows_ |
| int | num_cols_ |
|
|||||
|
Definition at line 124 of file vbl_array_2d.h. |
|
|||||
|
Definition at line 120 of file vbl_array_2d.h. |
|
|||||||||
|
Default constructor.
Definition at line 29 of file vbl_array_2d.h. |
|
||||||||||||||||
|
Construct m-by-n array.
Definition at line 32 of file vbl_array_2d.h. |
|
||||||||||||||||||||
|
Construct and fill an m-by-n array.
Definition at line 35 of file vbl_array_2d.h. |
|
||||||||||
|
Construct from a 2d array.
Definition at line 38 of file vbl_array_2d.h. |
|
|||||||||
|
Destructor.
Definition at line 44 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 125 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 121 of file vbl_array_2d.h. |
|
|||||||||
|
make as if default-constructed.
Definition at line 87 of file vbl_array_2d.h. |
|
|||||||||
|
Return number of columns.
Definition at line 109 of file vbl_array_2d.h. |
|
|||||||||
|
Return number of columns.
Definition at line 112 of file vbl_array_2d.h. |
|
||||||||||||||||
|
Definition at line 139 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 133 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 153 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 126 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 122 of file vbl_array_2d.h. |
|
||||||||||
|
fill with `value'.
Definition at line 72 of file vbl_array_2d.h. |
|
||||||||||||||||
|
Definition at line 99 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 118 of file vbl_array_2d.h. |
|
|||||||||
|
Definition at line 117 of file vbl_array_2d.h. |
|
||||||||||
|
Definition at line 67 of file vbl_array_2d.h. |
|
||||||||||||||||
|
Definition at line 96 of file vbl_array_2d.h. |
|
||||||||||||||||
|
Definition at line 95 of file vbl_array_2d.h. |
|
||||||||||
|
Assignment.
Definition at line 47 of file vbl_array_2d.h. |
|
||||||||||
|
Comparison.
Definition at line 56 of file vbl_array_2d.h. |
|
||||||||||
|
Definition at line 102 of file vbl_array_2d.h. |
|
||||||||||
|
Definition at line 101 of file vbl_array_2d.h. |
|
||||||||||||||||||||
|
Definition at line 98 of file vbl_array_2d.h. |
|
||||||||||||||||
|
change size.
Definition at line 79 of file vbl_array_2d.h. |
|
|||||||||
|
Return number of rows.
Definition at line 106 of file vbl_array_2d.h. |
|
|||||||||
|
Return size = (number of rows) * (number of columns).
Definition at line 115 of file vbl_array_2d.h. |
|
|||||
|
Definition at line 131 of file vbl_array_2d.h. |
|
|||||
|
Definition at line 130 of file vbl_array_2d.h. |
|
|||||
|
Definition at line 129 of file vbl_array_2d.h. |
1.4.4