IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::Expression< E, N > Struct Template Reference

#include <IpplExpressions.h>

Inheritance diagram for ippl::detail::Expression< E, N >:
Collaboration diagram for ippl::detail::Expression< E, N >:

Public Member Functions

KOKKOS_INLINE_FUNCTION auto operator[] (size_t i) const

Static Public Attributes

static constexpr unsigned dim = E::dim

Detailed Description

template<typename E, size_t N = sizeof(E)>
struct ippl::detail::Expression< E, N >

Basic expression class for BareField, Vector and Scalar. Expression classes need to inherit from this with the CRTP (curiously recursive template pattern) design pattern.

Definition at line 26 of file IpplExpressions.h.

Member Function Documentation

◆ operator[]()

template<typename E, size_t N = sizeof(E)>
KOKKOS_INLINE_FUNCTION auto ippl::detail::Expression< E, N >::operator[] ( size_t i) const
inline

Access single element of the expression

Definition at line 32 of file IpplExpressions.h.

Member Data Documentation

◆ dim

template<typename E, size_t N = sizeof(E)>
unsigned ippl::detail::Expression< E, N >::dim = E::dim
staticconstexpr

Definition at line 27 of file IpplExpressions.h.


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