IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::NDRegion Class Reference

#include <NDRegion.h>

Inheritance diagram for ippl::NDRegion:
Collaboration diagram for ippl::NDRegion:

Public Member Functions

KOKKOS_FUNCTION NDRegion ()
KOKKOS_FUNCTION ~NDRegion ()
template<class... Args>
KOKKOS_FUNCTION NDRegion (const Args &... args)
KOKKOS_INLINE_FUNCTION NDRegion (const NDRegion< T, Dim > &nr)
KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & operator= (const NDRegion< T, Dim > &nr)
KOKKOS_INLINE_FUNCTION const PRegion< T > & operator[] (unsigned d) const
KOKKOS_INLINE_FUNCTION PRegion< T > & operator[] (unsigned d)
KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & operator+= (const T t)
KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & operator-= (const T t)
KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & operator*= (const T t)
KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & operator/= (const T t)
KOKKOS_INLINE_FUNCTION bool empty () const

Private Member Functions

KOKKOS_FUNCTION NDRegion (std::initializer_list< PRegion< T > > regions)

Private Attributes

PRegion< Tregions_m [Dim]
 Array of PRegions.

Detailed Description

Definition at line 20 of file NDRegion.h.

Constructor & Destructor Documentation

◆ NDRegion() [1/4]

KOKKOS_FUNCTION ippl::NDRegion::NDRegion ( )
inline

Create an empty NDregion

Definition at line 26 of file NDRegion.h.

Referenced by NDRegion(), NDRegion(), operator*=(), operator+=(), operator-=(), operator/=(), and operator=().

Here is the caller graph for this function:

◆ ~NDRegion()

KOKKOS_FUNCTION ippl::NDRegion::~NDRegion ( )
inline

Definition at line 29 of file NDRegion.h.

◆ NDRegion() [2/4]

template<class... Args>
KOKKOS_FUNCTION ippl::NDRegion::NDRegion ( const Args &... args)

Create a NDregion from PRegions

Parameters
...argslist of PRegions
Remarks
See also (November 21, 2020) https://stackoverflow.com/questions/16478089/converting-variadic-template-pack-into-stdinitializer-list

Definition at line 11 of file NDRegion.hpp.

References NDRegion().

Here is the call graph for this function:

◆ NDRegion() [3/4]

KOKKOS_INLINE_FUNCTION ippl::NDRegion::NDRegion ( const NDRegion< T, Dim > & nr)

Definition at line 26 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ NDRegion() [4/4]

KOKKOS_FUNCTION ippl::NDRegion::NDRegion ( std::initializer_list< PRegion< T > > regions)
private

Definition at line 17 of file NDRegion.hpp.

References regions_m.

Member Function Documentation

◆ empty()

KOKKOS_INLINE_FUNCTION bool ippl::NDRegion::empty ( ) const

Definition at line 86 of file NDRegion.hpp.

References Dim, and regions_m.

◆ operator*=()

KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & ippl::NDRegion::operator*= ( const T t)

Definition at line 68 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ operator+=()

KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & ippl::NDRegion::operator+= ( const T t)

Definition at line 52 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ operator-=()

KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & ippl::NDRegion::operator-= ( const T t)

Definition at line 60 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ operator/=()

KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & ippl::NDRegion::operator/= ( const T t)

Definition at line 76 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ operator=()

KOKKOS_INLINE_FUNCTION NDRegion< T, Dim > & ippl::NDRegion::operator= ( const NDRegion< T, Dim > & nr)

Definition at line 33 of file NDRegion.hpp.

References Dim, NDRegion(), and regions_m.

Here is the call graph for this function:

◆ operator[]() [1/2]

KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::NDRegion::operator[] ( unsigned d)

Definition at line 47 of file NDRegion.hpp.

References regions_m.

◆ operator[]() [2/2]

KOKKOS_INLINE_FUNCTION const PRegion< T > & ippl::NDRegion::operator[] ( unsigned d) const

Definition at line 42 of file NDRegion.hpp.

References regions_m.

Member Data Documentation

◆ regions_m

PRegion<T> ippl::NDRegion::regions_m[Dim]
private

Array of PRegions.

Definition at line 64 of file NDRegion.h.

Referenced by empty(), NDRegion(), NDRegion(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator[](), and operator[]().


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