OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A templated representation for one-dimensional arrays. More...
#include <FArray1D.h>
Public Types | |
typedef T | value_type |
The value type of this array. More... | |
typedef T * | iterator |
Iterator for the array. More... | |
typedef const T * | const_iterator |
Iterator for constant array. More... | |
Public Member Functions | |
FArray1D () | |
Default constructor. More... | |
FArray1D (const T &t) | |
Constructor. More... | |
FArray1D (const FArray1D &) | |
Copy constructor. More... | |
FArray1D (const std::initializer_list< T > &) | |
Consructor with initializer list (needs C++11) (see http://en.cppreference.com/w/cpp/utility/initializer_list) More... | |
const FArray1D & | operator= (const FArray1D &) |
Assignment. More... | |
T & | operator() (int n) |
Get element. More... | |
const T & | operator() (int n) const |
Get element. More... | |
T & | operator[] (int n) |
Get element. More... | |
const T & | operator[] (int n) const |
Get element. More... | |
iterator | begin () |
Get iterator pointing to beginning of array. More... | |
iterator | end () |
Get iterator pointing past end of array. More... | |
const_iterator | begin () const |
Get iterator pointing to beginning of array. More... | |
const_iterator | end () const |
Get iterator pointing past end of array. More... | |
int | size () const |
Get array size. More... | |
Protected Attributes | |
T | data [N] |
A templated representation for one-dimensional arrays.
Definition at line 39 of file FArray1D.h.
typedef const T* FArray1D< T, N >::const_iterator |
Iterator for constant array.
Definition at line 50 of file FArray1D.h.
Iterator for the array.
Definition at line 47 of file FArray1D.h.
typedef T FArray1D< T, N >::value_type |
The value type of this array.
Definition at line 44 of file FArray1D.h.
Default constructor.
Definition at line 119 of file FArray1D.h.
References begin(), end(), and Attrib::Legacy::Distribution::T.
Constructor.
Definition at line 131 of file FArray1D.h.
References begin(), and end().
Copy constructor.
Definition at line 125 of file FArray1D.h.
References FArray1D< T, N >::begin(), begin(), and FArray1D< T, N >::end().
Consructor with initializer list (needs C++11) (see http://en.cppreference.com/w/cpp/utility/initializer_list)
Definition at line 138 of file FArray1D.h.
References begin(), end(), and Attrib::Legacy::Distribution::T.
Get iterator pointing to beginning of array.
Definition at line 192 of file FArray1D.h.
Referenced by FLUMatrix< T, N >::backSubstitute(), euclidean_norm(), FTps< T, N >::evalMonoms(), FTps< T, N >::evaluate(), FArray1D< T, N >::FArray1D(), FArray2D< T, M, N >::getColumn(), FArray2D< T, M, N >::getRow(), operator*(), operator+(), FVector< T, N >::operator+=(), FVector< T, N >::operator-(), operator-(), FVector< T, N >::operator-=(), FArray1D< T, N >::operator=(), FArray2D< T, M, N >::putColumn(), and FArray2D< T, M, N >::putRow().
|
inline |
Get iterator pointing to beginning of array.
Definition at line 204 of file FArray1D.h.
Get iterator pointing past end of array.
Definition at line 198 of file FArray1D.h.
Referenced by euclidean_norm(), FArray1D< T, N >::FArray1D(), operator*(), operator+(), operator-(), FArray1D< T, N >::operator=(), FArray2D< T, M, N >::putColumn(), and FArray2D< T, M, N >::putRow().
|
inline |
Get iterator pointing past end of array.
Definition at line 210 of file FArray1D.h.
T & FArray1D< T, N >::operator() | ( | int | n | ) |
Get element.
Definition at line 174 of file FArray1D.h.
const T & FArray1D< T, N >::operator() | ( | int | n | ) | const |
Get element.
Definition at line 183 of file FArray1D.h.
const FArray1D< T, N > & FArray1D< T, N >::operator= | ( | const FArray1D< T, N > & | rhs | ) |
Assignment.
Definition at line 155 of file FArray1D.h.
References FArray1D< T, N >::begin(), begin(), and FArray1D< T, N >::end().
|
inline |
Get element.
Definition at line 162 of file FArray1D.h.
|
inline |
Get element.
Definition at line 168 of file FArray1D.h.
|
inline |
|
protected |
Definition at line 111 of file FArray1D.h.