OSHUN  beta
Arbitrary Order Spherical-Harmonic 1D-3P Vlasov-Fokker-Planck-Maxwell code
Algorithms::CAxis< T > Class Template Reference

#include <lib-algorithms.h>

Public Member Functions

 CAxis (const T min=0, const T max=0, const size_t N=1)
 
 CAxis (const CAxis &other)
 
 ~CAxis ()
 

Data Fields

valarray< T > * v
 

Detailed Description

template<typename T>
class Algorithms::CAxis< T >

Definition at line 70 of file lib-algorithms.h.

Constructor & Destructor Documentation

◆ CAxis() [1/2]

template<typename T >
Algorithms::CAxis< T >::CAxis ( const T  min = 0,
const T  max = 0,
const size_t  N = 1 
)
inline

Definition at line 75 of file lib-algorithms.h.

References Algorithms::MakeCAxis().

75  {
76  if (N > 1) {
77  v = new valarray<T>(MakeCAxis(min,max,N));
78  }
79  else v = NULL;
80  }
valarray< T > * v
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
Here is the call graph for this function:

◆ CAxis() [2/2]

template<typename T >
Algorithms::CAxis< T >::CAxis ( const CAxis< T > &  other)
inline

Definition at line 83 of file lib-algorithms.h.

References Algorithms::CAxis< T >::v.

83  {
84  if (other.v != NULL) {
85  v = new valarray<T>(*(other.v));
86  }
87  else v = NULL;
88  }
valarray< T > * v

◆ ~CAxis()

template<typename T >
Algorithms::CAxis< T >::~CAxis ( )
inline

Definition at line 91 of file lib-algorithms.h.

References Algorithms::Axis< T >::v.

91 { delete v; }
valarray< T > * v

Field Documentation

◆ v

template<typename T >
valarray<T>* Algorithms::CAxis< T >::v

Definition at line 72 of file lib-algorithms.h.

Referenced by Algorithms::CAxis< T >::CAxis().


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