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

A templated representation for vectors. More...

#include <PartBunchBase.h>

Inheritance diagram for FVector< T, int >:
Inheritance graph
[legend]
Collaboration diagram for FVector< T, int >:
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...
 
Toperator() (int n)
 Get element. More...
 
const Toperator() (int n) const
 Get element. More...
 
Toperator[] (int n)
 Get element. More...
 
const Toperator[] (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 Titerator
 Iterator for the array. More...
 
typedef const Tconst_iterator
 Iterator for constant array. More...
 
- Protected Attributes inherited from FArray1D< T, N >
T data [N]
 

Detailed Description

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

A templated representation for vectors.

Definition at line 26 of file PartBunchBase.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 113 of file FVector.h.

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

Constructor.

Definition at line 119 of file FVector.h.

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

Constructor.

Definition at line 125 of file FVector.h.

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

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.

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

Add FVector and assign.

Definition at line 161 of file FVector.h.

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

Here is the call graph for this function:

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

Change sign.

Definition at line 137 of file FVector.h.

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

Here is the call graph for this function:

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

Subtract FVector and assign.

Definition at line 169 of file FVector.h.

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

Here is the call graph for this function:

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.


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