template
class
Array1D<class>
(Return to index)
One-dimensional array.
A templated representation for one-dimensional arrays.
This class implements storage management and component access,
but contains no arithmetic operations.
Type: |
Instantiable |
Include file: |
./Algebra/Array1D.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
- Protected Members:
Documentation:
- Public members:
-
Array1D
()
;
- Default constructor.
Constructs an array of zero length.
-
Array1D
(int)
;
- Constructor.
Reserves space for n elements and leaves them undefined.
-
Array1D
(int,const T&)
;
- Constructor.
Reserves space for n elements and store n copies of
t.
-
iterator begin
()
;
- Get beginning of data.
Return pointer to beginning of array.
Version for non-constant objects.
-
const_iterator begin
()const
;
- Get beginning of data.
Return pointer to beginning of array.
Version for constant objects.
-
typedef const T* const_iterator
;
- The iterator type for constant array.
-
iterator end
()
;
- Get end of data.
Return pointer past end of array.
Version for non-constant objects.
-
const_iterator end
()const
;
- Get end of data.
Return pointer past end of array.
Version for constant objects.
-
typedef T* iterator
;
- The iterator type for the array.
-
T& operator()
(int)
;
- Get reference to element.
Return a reference to the element in position n.
Throw RangeError, if n is out of range.
-
const T& operator()
(int)const
;
- Get value of element.
Return the value of the element in position n.
Throw RangeError, if n is out of range.
-
T& operator[]
(int)
;
- Get reference to element.
Return a reference to the element in position n.
Result is undefined, if n is out of range.
-
const T& operator[]
(int)const
;
- Get value of element.
Return the value of the element in position n.
Result is undefined, if n is out of range.
-
void resize
(int)
;
- Change array size.
Elements added are left undefined.
-
int size
()const
;
- Get array size.
-
typedef T value_type
;
- The value type of this array.
- Protected members:
Documentation generated by fci on Mon Feb 7 11:41:31 2000