OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | List of all members
FVector< T, N > Class Template Reference

A templated representation for vectors. More...

#include <FVector.h>

Inheritance diagram for FVector< T, N >:
Inheritance graph
[legend]
Collaboration diagram for FVector< T, N >:
Collaboration graph
[legend]

Public Member Functions

 FVector ()
 Constructor. More...
 
 FVector (const T &t)
 Constructor. More...
 
 FVector (const T *t)
 Constructor. More...
 
 FVector (const FArray1D< T, N > &)
 Conversion from one-dimensional array. More...
 
FVector operator- () const
 Change sign. More...
 
FVectoroperator*= (const T &)
 Multiply by scalar and assign. More...
 
FVectoroperator/= (const T &)
 Divide by scalar and assign. More...
 
FVectoroperator+= (const FVector &)
 Add FVector and assign. More...
 
FVectoroperator-= (const FVector &)
 Subtract FVector and assign. More...
 
- Public Member Functions inherited from FArray1D< T, N >
 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 FArray1Doperator= (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...
 

Additional Inherited Members

- Public Types inherited from FArray1D< T, N >
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...
 
- Protected Attributes inherited from FArray1D< T, N >
data [N]
 

Detailed Description

template<class T, int N>
class FVector< T, N >

A templated representation for vectors.

Definition at line 38 of file FVector.h.

Constructor & Destructor Documentation

◆ FVector() [1/4]

template<class T , int N>
FVector< T, N >::FVector

Constructor.

Definition at line 113 of file FVector.h.

◆ FVector() [2/4]

template<class T , int N>
FVector< T, N >::FVector ( const T &  t)
explicit

Constructor.

Definition at line 119 of file FVector.h.

◆ FVector() [3/4]

template<class T , int N>
FVector< T, N >::FVector ( const T *  t)
explicit

Constructor.

Definition at line 125 of file FVector.h.

◆ FVector() [4/4]

template<class T , int N>
FVector< T, N >::FVector ( const FArray1D< T, N > &  rhs)

Conversion from one-dimensional array.

Definition at line 131 of file FVector.h.

Member Function Documentation

◆ operator*=()

template<class T , int N>
FVector< T, N > & FVector< T, N >::operator*= ( const T &  val)

Multiply by scalar and assign.

Definition at line 145 of file FVector.h.

References begin(), and end().

Here is the call graph for this function:

◆ operator+=()

template<class T , int N>
FVector< T, N > & FVector< T, N >::operator+= ( const FVector< T, N > &  rhs)

Add FVector and assign.

Definition at line 161 of file FVector.h.

References FArray1D< T, N >::begin(), begin(), and end().

Here is the call graph for this function:

◆ operator-()

template<class T , int N>
FVector< T, N > FVector< T, N >::operator-

Change sign.

Definition at line 137 of file FVector.h.

References FArray1D< T, N >::begin(), begin(), and end().

Here is the call graph for this function:

◆ operator-=()

template<class T , int N>
FVector< T, N > & FVector< T, N >::operator-= ( const FVector< T, N > &  rhs)

Subtract FVector and assign.

Definition at line 169 of file FVector.h.

References FArray1D< T, N >::begin(), begin(), and end().

Here is the call graph for this function:

◆ operator/=()

template<class T , int N>
FVector< T, N > & FVector< T, N >::operator/= ( const T &  val)

Divide by scalar and assign.

Definition at line 153 of file FVector.h.

References begin(), and end().

Here is the call graph for this function:

The documentation for this class was generated from the following files: