it is a template for arrays. It can be used like a “normal” C-style array
#include <array.h>
Inheritance diagram for ABA_ARRAY< Type >::
|
The destructor.
To assign an object of the class ABA_BUFFER to an object of the class ABA_ARRAY the size of the left hand side must be at least the size of rhs. Then all buffered elements of rhs are copied.
This version of the function copy() copies the elements rhs[l], rhs[l+1]„ rhs[r] into the components 0„r-l of the array.
Removes the components listed in ind by shifting the remaining components to the left.
This version of the function leftShift() removes all components i with marked[i]==true from the array by shifting the other components to the left.
This version of the function set() initializes all components of the array with the same value.
The length of an array can be changed with the function realloc(). If the array is enlarged all elements of the old array are copied and the values of the additional new elements are undefined. If the array is shortened only the first newSize elements are copied.
Is overloaded such that also an initialization with a new value of the elements of the array after reallocation is possible.
Stops the program with an error message if the index i is not within the bounds of the array.
The output operator writes first the number of the element and a ’:’ followed by the value of the element line by line to the stream out.
it is a template for arrays. It can be used like a “normal” C-style array
Definition at line 53 of file array.h.
A constructor without initialization.
A constructor with initialization.
A constructor.
The copy constructor.
The destructor.
The assignment operator can only be used for arrays with equal length.
A reference to the array on the left hand side.
To assign an object of the class ABA_BUFFER to an object of the class ABA_ARRAY the size of the left hand side must be at least the size of rhs. Then all buffered elements of rhs are copied.
A reference to the array on the left hand side.
template<class Type> Type& ABA_ARRAY< Type >::operator[ ] (int i)
The operator [].
The i-th element of the array.
template<class Type> const Type& ABA_ARRAY< Type >::operator[ ] (int i) const
The operator [] is overloaded for constant use.
Copies all elements of rhs.
The difference to the operator = is that also copying between arrays of different size is allowed. If necessary the array on the left hand side is reallocated.
This version of the function copy() copies the elements rhs[l], rhs[l+1]„ rhs[r] into the components 0„r-l of the array.
If the size of the array is smaller than r-l+1 storage is reallocated.
Removes the components listed in ind by shifting the remaining components to the left.
Memory management of the removed components must be carefully implemented by the user of this function to avoid memory leaks.
This version of the function leftShift() removes all components i with marked[i]==true from the array by shifting the other components to the left.
Assigns the same value to a subset of the components of the array.
This version of the function set() initializes all components of the array with the same value.
The length of the array.
The length of an array can be changed with the function realloc(). If the array is enlarged all elements of the old array are copied and the values of the additional new elements are undefined. If the array is shortened only the first newSize elements are copied.
Is overloaded such that also an initialization with a new value of the elements of the array after reallocation is possible.
Stops the program with an error message if the index i is not within the bounds of the array.
The output operator writes first the number of the element and a ’:’ followed by the value of the element line by line to the stream out.
A reference to the output stream.
A pointer to the corresponding global object.
Definition at line 257 of file array.h.
The length of the array.
Definition at line 261 of file array.h.
The /-style array storing the elements of the ABA_ARRAY.
Definition at line 265 of file array.h.
The documentation for this class was generated from the following file: