template
class
FArray1D<class,int>
(Return to index)
A templated representation for one-dimensional arrays.
This version has fixed dimensions.
It implements array access, but contains no arithmetic operations.
The destructor generated by the compiler performs the correct operation.
For speed reasons it is not implemented.
Type: |
Instantiable |
Include file: |
./FixedAlgebra/FArray1D.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
- Protected Members:
Documentation:
- Public members:
-
FArray1D
()
;
- Default constructor.
Constructs a zero array.
-
FArray1D
(const T&)
;
- Constructor.
Set all array elements to t.
-
FArray1D
(const FArray1D&)
;
- Copy constructor.
-
iterator begin
()
;
- Get iterator pointing to beginning of array.
Version for non-constant array.
-
const_iterator begin
()const
;
- Get iterator pointing to beginning of array.
Version for constant array.
-
typedef const T* const_iterator
;
- Iterator for constant array.
-
iterator end
()
;
- Get iterator pointing past end of array.
Version for non-constant array.
-
const_iterator end
()const
;
- Get iterator pointing past end of array.
Version for constant array.
-
typedef T* iterator
;
- Iterator for the array.
-
T& operator()
(int)
;
- Get element.
Return a reference to element n.
Throw RangeError, if n is out of range.
-
const T& operator()
(int)const
;
- Get element.
Return a constant reference to element n.
Throw RangeError, if n is out of range.
-
const FArray1D& operator=
(const FArray1D&)
;
- Assignment.
-
T& operator[]
(int)
;
- Get element.
Return a reference to element n.
Result is undefined, if n is out of range.
-
const T& operator[]
(int)const
;
- Get element.
Return a reference to element n.
Result is undefined, if n is out of range.
-
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:38 2000