IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::Scalar< T > Struct Template Reference

#include <IpplExpressions.h>

Inheritance diagram for ippl::detail::Scalar< T >:
Collaboration diagram for ippl::detail::Scalar< T >:

Public Types

typedef T value_type

Public Member Functions

KOKKOS_FUNCTION Scalar (value_type val)
KOKKOS_INLINE_FUNCTION value_type operator[] (size_t) const
template<typename... Args>
KOKKOS_INLINE_FUNCTION auto operator() (Args...) const

Static Public Attributes

static constexpr unsigned dim = 0

Private Attributes

value_type val_m

Detailed Description

template<typename T>
struct ippl::detail::Scalar< T >

Expression for intrinsic data types. They are both regular expressions and field expressions.

Definition at line 61 of file IpplExpressions.h.

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T ippl::detail::Scalar< T >::value_type

Definition at line 62 of file IpplExpressions.h.

Constructor & Destructor Documentation

◆ Scalar()

template<typename T>
KOKKOS_FUNCTION ippl::detail::Scalar< T >::Scalar ( value_type val)
inline

Definition at line 66 of file IpplExpressions.h.

References val_m.

Member Function Documentation

◆ operator()()

template<typename T>
template<typename... Args>
KOKKOS_INLINE_FUNCTION auto ippl::detail::Scalar< T >::operator() ( Args... ) const
inline

Access the scalar value with multiple indices. This is used for binary operations between Scalar and BareField, Scalar and BareField, and Scalar and Field.

Definition at line 83 of file IpplExpressions.h.

References val_m.

◆ operator[]()

template<typename T>
KOKKOS_INLINE_FUNCTION value_type ippl::detail::Scalar< T >::operator[] ( size_t ) const
inline

Access the scalar value with single index. This is used for binary operations between Scalar and Vector.

Definition at line 74 of file IpplExpressions.h.

References val_m.

Member Data Documentation

◆ dim

template<typename T>
unsigned ippl::detail::Scalar< T >::dim = 0
staticconstexpr

Definition at line 63 of file IpplExpressions.h.

◆ val_m

template<typename T>
value_type ippl::detail::Scalar< T >::val_m
private

Definition at line 88 of file IpplExpressions.h.

Referenced by operator()(), operator[](), and Scalar().


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