Inheritance diagram for Array2d:

Definition at line 136 of file Array.H.
STL integration | |
| typedef T | value_type |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef ptrdiff_t | difference_type |
| typedef size_t | size_type |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
Public Member Functions | |
| Array2d (const int rows, const int columns) | |
| Array2d (const int rows, const int columns, const T &value) | |
| Array2d (const Array2d< T > &array) | |
| ~Array2d () | |
Assignment | |
| Array2d< T > & | operator= (const Array2d< T > &array) |
| Assign one array to another. | |
| Array2d< T > & | operator= (const T &value) |
| Assign a value to all elements of the array. | |
Element access | |
| reference | operator() (const size_type row, const size_type column) |
| const_reference | operator() (const size_type row, const size_type column) const |
Sizes | |
| size_type | size () const |
| size_type | rows () const |
| size_type | columns () const |
Private Attributes | |
| size_type | m_rows |
| size_type | m_columns |
| T * | m_data |
| typedef T value_type |
| typedef value_type* pointer |
| typedef const value_type* const_pointer |
| typedef value_type& reference |
| typedef const value_type& const_reference |
| typedef ptrdiff_t difference_type |
| typedef const_pointer const_iterator |
| typedef std::reverse_iterator<iterator> reverse_iterator |
| typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
| Array2d | ( | const int | rows, | |
| const int | columns | |||
| ) | [inline] |
| Array2d | ( | const int | rows, | |
| const int | columns, | |||
| const T & | value | |||
| ) | [inline] |
Allocate an array with the given sizes, and initialize each element to a particular value.
| [in] | rows | The number of rows in the array. |
| [in] | columns | The number of columns in the array. |
| [in] | value | The initial value for each element. |
Definition at line 147 of file Array.H.
References m_data.
| ~Array2d | ( | ) | [inline] |
Assign one array to another.
If the array being assigned from is larger than the array being assigned to, data block holding the array will be deleted and reallocated.
| [in] | array | The array to be assigned from. |
| Array2d<T>& operator= | ( | const T & | value | ) | [inline] |
| iterator begin | ( | ) | [inline] |
| iterator end | ( | ) | [inline] |
| const_iterator begin | ( | ) | const [inline] |
| const_iterator end | ( | ) | const [inline] |
| reverse_iterator rbegin | ( | ) | [inline] |
| reverse_iterator rend | ( | ) | [inline] |
| const_reverse_iterator rbegin | ( | ) | const [inline] |
| const_reverse_iterator rend | ( | ) | const [inline] |
| const_reference operator() | ( | const size_type | row, | |
| const size_type | column | |||
| ) | const [inline] |
| size_type size | ( | ) | const [inline] |
| size_type rows | ( | ) | const [inline] |
| size_type columns | ( | ) | const [inline] |
Definition at line 222 of file Array.H.
Referenced by Array2d(), end(), operator()(), operator=(), rows(), and size().
Definition at line 223 of file Array.H.
Referenced by Array2d(), columns(), end(), operator()(), operator=(), and size().
T* m_data [private] |
Definition at line 224 of file Array.H.
Referenced by Array2d(), begin(), end(), operator()(), operator=(), and ~Array2d().
1.5.1