Public Member Functions |
| | Array2D () |
| | Creates a two-dimensional array with empty index set.
|
| | Array2D (int a, int b, int c, int d) |
| | Creates a two-dimensional array with index set [a..b]*[c..d].
|
| | Array2D (int a, int b, int c, int d, const E &x) |
| | Creates a two-dimensional array with index set [a..b]*[c..d] and initailizes all elements with x.
|
| | Array2D (const Array2D< E > &array2) |
| | Creates a two-dimensional array that is a copy of A.
|
| | ~Array2D () |
| float | det () const |
| | Returns the determinant of the matrix.
|
| void | fill (const E &x) |
| | Sets all elements to x.
|
| int | high1 () const |
| | Returns the maximal array index in dimension 1.
|
| int | high2 () const |
| | Returns the maximal array index in dimension 2.
|
| void | init () |
| | Reinitializes the array to an array with empty index set.
|
| void | init (int a, int b, int c, int d) |
| | Reinitializes the array to an array with index set [a..b]*[c,d].
|
| void | init (int a, int b, int c, int d, const E &x) |
| | Reinitializes the array to an array with index set [a..b]*[c,d] and initializes all entries with x.
|
| int | low1 () const |
| | Returns the minimal array index in dimension 1.
|
| int | low2 () const |
| | Returns the minimal array index in dimension 2.
|
| const E & | operator() (int i, int j) const |
| | Returns a reference to the element with index (i,j).
|
| E & | operator() (int i, int j) |
| | Returns a reference to the element with index (i,j).
|
| Array2D< E > & | operator= (const Array2D< E > &array2) |
| | Assignment operator.
|
| int | size () const |
| | Returns the size (number of elements) of the array.
|
| int | size1 () const |
| | Returns the length of the index interval (number of entries) in dimension 1.
|
| int | size2 () const |
| | Returns the length of the index interval (number of entries) in dimension 2.
|
Private Attributes |
| int | m_a |
| | The lowest index in dimension 1.
|
| int | m_b |
| | The highest index in dimension 1.
|
| int | m_c |
| | The lowest index in dimension 2.
|
| int | m_d |
| | The highest index in dimension 2.
|
| int | m_lenDim2 |
| | The number of elements in dimension 2.
|
| E * | m_pStart |
| | The real start of the array (address of A[low1,low2]).
|
| E * | m_pStop |
| | Successor of last element (address of A[high1,high2+1]).
|
| E * | m_vpStart |
| | The virtual start of the array (address of A[0,0]).
|
template<class E>
class ogdf::Array2D< E >
The parameterized class Array2D<E> implements dynamic two-dimensional arrays.
- Template Parameters:
-
| E | denotes the element type. |
Definition at line 63 of file Array2D.h.