MSpin-JCoupling  2.1
Public Member Functions | List of all members
magnes::D1StaticArray< X, N > Class Template Reference

Public Member Functions

 D1StaticArray (const X &x)
 
const X & operator() (size_t i) const
 
X & operator() (size_t i)
 
 operator X* ()
 
 operator const X * () const
 
size_t size () const
 

Constructor & Destructor Documentation

§ D1StaticArray()

template<class X, int N>
magnes::D1StaticArray< X, N >::D1StaticArray ( const X &  x)
inline

assign x value to all N elements

Member Function Documentation

§ operator const X *()

template<class X, int N>
magnes::D1StaticArray< X, N >::operator const X * ( ) const
inline

casting operator to const X*, allow easy pass to math libraries

§ operator X*()

template<class X, int N>
magnes::D1StaticArray< X, N >::operator X* ( )
inline

casting operator to X*, allow easy pass to math libraries

§ operator()() [1/2]

template<class X, int N>
const X& magnes::D1StaticArray< X, N >::operator() ( size_t  i) const
inline

return a reference to element i

Referenced by magnes::D1Array< double >::~D1Array().

§ operator()() [2/2]

template<class X, int N>
X& magnes::D1StaticArray< X, N >::operator() ( size_t  i)
inline

return a non-const reference to element i

§ size()

template<class X, int N>
size_t magnes::D1StaticArray< X, N >::size ( ) const
inline
Returns
the size of the array

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