IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::PRegion< T > Class Template Reference

#include <PRegion.h>

Collaboration diagram for ippl::PRegion< T >:

Public Member Functions

KOKKOS_FUNCTION PRegion ()
KOKKOS_FUNCTION PRegion (T b)
KOKKOS_FUNCTION PRegion (T a, T b)
KOKKOS_DEFAULTED_FUNCTION ~PRegion ()=default
KOKKOS_FUNCTION PRegion (const PRegion< T > &)
KOKKOS_INLINE_FUNCTION PRegion< T > & operator= (const PRegion< T > &rhs)
KOKKOS_INLINE_FUNCTION T min () const noexcept
KOKKOS_INLINE_FUNCTION T max () const noexcept
KOKKOS_INLINE_FUNCTION T length () const noexcept
KOKKOS_INLINE_FUNCTION bool empty () const noexcept
KOKKOS_INLINE_FUNCTION PRegion< T > & operator+= (T t) noexcept
KOKKOS_INLINE_FUNCTION PRegion< T > & operator-= (T t) noexcept
KOKKOS_INLINE_FUNCTION PRegion< T > & operator*= (T t) noexcept
KOKKOS_INLINE_FUNCTION PRegion< T > & operator/= (T t) noexcept

Private Attributes

T a_m
 Interval start point.
T b_m
 Interval end point.

Detailed Description

template<typename T>
class ippl::PRegion< T >

Definition at line 26 of file PRegion.h.

Constructor & Destructor Documentation

◆ PRegion() [1/4]

template<typename T>
KOKKOS_FUNCTION ippl::PRegion< T >::PRegion ( )

Default region [0, 1[

Definition at line 24 of file PRegion.hpp.

References PRegion().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRegion() [2/4]

template<typename T>
KOKKOS_FUNCTION ippl::PRegion< T >::PRegion ( T b)

Region [0, b[

Definition at line 28 of file PRegion.hpp.

References PRegion().

Here is the call graph for this function:

◆ PRegion() [3/4]

template<typename T>
KOKKOS_FUNCTION ippl::PRegion< T >::PRegion ( T a,
T b )

Region [a, b[

Definition at line 32 of file PRegion.hpp.

References a_m, b_m, and PAssert.

◆ ~PRegion()

template<typename T>
KOKKOS_DEFAULTED_FUNCTION ippl::PRegion< T >::~PRegion ( )
default

References empty(), length(), max(), and PRegion().

Here is the call graph for this function:

◆ PRegion() [4/4]

template<typename T>
KOKKOS_FUNCTION ippl::PRegion< T >::PRegion ( const PRegion< T > & pregion)

Definition at line 39 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

Member Function Documentation

◆ empty()

template<typename T>
KOKKOS_INLINE_FUNCTION bool ippl::PRegion< T >::empty ( ) const
noexcept
Returns
true if empty

Definition at line 67 of file PRegion.hpp.

References a_m, and b_m.

Referenced by ~PRegion().

Here is the caller graph for this function:

◆ length()

template<typename T>
KOKKOS_INLINE_FUNCTION T ippl::PRegion< T >::length ( ) const
noexcept
Returns
the length of the region

Definition at line 62 of file PRegion.hpp.

References a_m, and b_m.

Referenced by ~PRegion().

Here is the caller graph for this function:

◆ max()

template<typename T>
KOKKOS_INLINE_FUNCTION T ippl::PRegion< T >::max ( ) const
noexcept
Returns
the upper bound

Definition at line 57 of file PRegion.hpp.

References b_m.

Referenced by ippl::operator<<(), and ~PRegion().

Here is the caller graph for this function:

◆ min()

template<typename T>
KOKKOS_INLINE_FUNCTION T ippl::PRegion< T >::min ( ) const
noexcept
Returns
the lower bound

Definition at line 52 of file PRegion.hpp.

References a_m.

Referenced by ippl::operator<<().

Here is the caller graph for this function:

◆ operator*=()

template<typename T>
KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::PRegion< T >::operator*= ( T t)
noexcept

Definition at line 86 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

◆ operator+=()

template<typename T>
KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::PRegion< T >::operator+= ( T t)
noexcept

Definition at line 72 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

◆ operator-=()

template<typename T>
KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::PRegion< T >::operator-= ( T t)
noexcept

Definition at line 79 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

◆ operator/=()

template<typename T>
KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::PRegion< T >::operator/= ( T t)
noexcept

Definition at line 93 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

◆ operator=()

template<typename T>
KOKKOS_INLINE_FUNCTION PRegion< T > & ippl::PRegion< T >::operator= ( const PRegion< T > & rhs)

Definition at line 45 of file PRegion.hpp.

References a_m, b_m, and PRegion().

Here is the call graph for this function:

Member Data Documentation

◆ a_m

template<typename T>
T ippl::PRegion< T >::a_m
private

Interval start point.

Definition at line 84 of file PRegion.h.

Referenced by empty(), length(), min(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), PRegion(), and PRegion().

◆ b_m

template<typename T>
T ippl::PRegion< T >::b_m
private

Interval end point.

Definition at line 87 of file PRegion.h.

Referenced by empty(), length(), max(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), PRegion(), and PRegion().


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