Declaration and implementation of Array class and Array algorithms. More...
#include <ogdf/basic/basic.h>Go to the source code of this file.
Classes | |
| class | ogdf::Array< E, INDEX > |
| The parameterized class Array<E,INDEX> implements dynamic arrays of type E. More... | |
Namespaces | |
| namespace | ogdf |
| The namespace for all OGDF objects. | |
Macros | |
| #define | forall_arrayindices(i, A) for(i = (A).low(); i<=(A).high(); ++i) |
| Iteration over all indices i of an array A. | |
| #define | forall_rev_arrayindices(i, A) for(i = (A).high(); i>=(A).low(); --i) |
| Iteration over all indices i of an array A, in reverse order. | |
| #define | OGDF_ARRAY_H |
Functions | |
| template<class E , class INDEX > | |
| ostream & | ogdf::operator<< (ostream &os, const ogdf::Array< E, INDEX > &a) |
| template<class E , class INDEX > | |
| void | ogdf::print (ostream &os, const Array< E, INDEX > &a, char delim= ' ') |
Declaration and implementation of Array class and Array algorithms.
Definition in file Array.h.
| #define forall_arrayindices | ( | i, | |
| A | |||
| ) | for(i = (A).low(); i<=(A).high(); ++i) |
Iteration over all indices i of an array A.
Note that the index variable i has to be defined prior to this macro (just as for forall_edges, etc.).
Note that this code is equivalent to the following tedious long version
| #define forall_rev_arrayindices | ( | i, | |
| A | |||
| ) | for(i = (A).high(); i>=(A).low(); --i) |
Iteration over all indices i of an array A, in reverse order.
Note that the index variable i has to be defined prior to this macro (just as for forall_edges, etc.). See forall_arrayindices for an example