#include <Array2D.h>
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 () | |
| int | low1 () const |
| Returns the minimal array index in dimension 1. | |
| int | high1 () const |
| Returns the maximal array index in dimension 1. | |
| int | low2 () const |
| Returns the minimal array index in dimension 2. | |
| int | high2 () const |
| Returns the maximal array index in dimension 2. | |
| 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. | |
| float | det () |
| Returns the determinant of the matrix. | |
| const E & | operator() (int i, int j) const |
| Returns a reference to the elment with index (i,j). | |
| E & | operator() (int i, int j) |
| Returns a reference to the elment with index (i,j). | |
| 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. | |
| Array2D< E > & | operator= (const Array2D< E > &array2) |
| Assignment operator. | |
| void | fill (const E &x) |
| Sets all elements to x. | |
Private Member Functions | |
| void | construct (int a, int b, int c, int d) |
| void | initialize () |
| void | initialize (const E &x) |
| void | deconstruct () |
| void | copy (const Array2D< E > &array2) |
Private Attributes | |
| E * | m_vpStart |
| The virtual start of the array (address of A[0,0]). | |
| int | m_a |
| The lowest index in dimension 1. | |
| 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]). | |
| 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. | |
Definition at line 68 of file Array2D.h.
| ogdf::Array2D< E >::Array2D | ( | ) | [inline] |
| ogdf::Array2D< E >::Array2D | ( | int | a, | |
| int | b, | |||
| int | c, | |||
| int | d | |||
| ) | [inline] |
| ogdf::Array2D< E >::Array2D | ( | int | a, | |
| int | b, | |||
| int | c, | |||
| int | d, | |||
| const E & | x | |||
| ) | [inline] |
| ogdf::Array2D< E >::Array2D | ( | const Array2D< E > & | array2 | ) | [inline] |
| ogdf::Array2D< E >::~Array2D | ( | ) | [inline] |
| int ogdf::Array2D< E >::low1 | ( | ) | const [inline] |
| int ogdf::Array2D< E >::high1 | ( | ) | const [inline] |
| int ogdf::Array2D< E >::low2 | ( | ) | const [inline] |
| int ogdf::Array2D< E >::high2 | ( | ) | const [inline] |
| int ogdf::Array2D< E >::size | ( | ) | const [inline] |
| int ogdf::Array2D< E >::size1 | ( | ) | const [inline] |
| int ogdf::Array2D< E >::size2 | ( | ) | const [inline] |
| float ogdf::Array2D< E >::det | ( | ) | [inline] |
| const E& ogdf::Array2D< E >::operator() | ( | int | i, | |
| int | j | |||
| ) | const [inline] |
| E& ogdf::Array2D< E >::operator() | ( | int | i, | |
| int | j | |||
| ) | [inline] |
| void ogdf::Array2D< E >::init | ( | ) | [inline] |
| void ogdf::Array2D< E >::init | ( | int | a, | |
| int | b, | |||
| int | c, | |||
| int | d | |||
| ) | [inline] |
| void ogdf::Array2D< E >::init | ( | int | a, | |
| int | b, | |||
| int | c, | |||
| int | d, | |||
| const E & | x | |||
| ) | [inline] |
| Array2D<E>& ogdf::Array2D< E >::operator= | ( | const Array2D< E > & | array2 | ) | [inline] |
| void ogdf::Array2D< E >::fill | ( | const E & | x | ) | [inline] |
| void ogdf::Array2D< E >::construct | ( | int | a, | |
| int | b, | |||
| int | c, | |||
| int | d | |||
| ) | [inline, private] |
| void ogdf::Array2D< E >::initialize | ( | ) | [inline, private] |
| void ogdf::Array2D< E >::initialize | ( | const E & | x | ) | [inline, private] |
| void ogdf::Array2D< E >::deconstruct | ( | ) | [inline, private] |
| void ogdf::Array2D< E >::copy | ( | const Array2D< E > & | array2 | ) | [inline, private] |
E* ogdf::Array2D< E >::m_vpStart [private] |
int ogdf::Array2D< E >::m_a [private] |
int ogdf::Array2D< E >::m_lenDim2 [private] |
E* ogdf::Array2D< E >::m_pStart [private] |
E* ogdf::Array2D< E >::m_pStop [private] |
int ogdf::Array2D< E >::m_b [private] |
int ogdf::Array2D< E >::m_c [private] |
int ogdf::Array2D< E >::m_d [private] |