Block-Structured AMR Software Framework
amrex::ConstParticleIDWrapper Struct Reference

#include <AMReX_Particle.H>

Public Member Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE ConstParticleIDWrapper (const uint64_t &idata) noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE operator Long () const noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool is_valid () const noexcept
 

Public Attributes

const uint64_t * m_idata
 

Constructor & Destructor Documentation

◆ ConstParticleIDWrapper()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ConstParticleIDWrapper::ConstParticleIDWrapper ( const uint64_t &  idata)
inlinenoexcept

Member Function Documentation

◆ is_valid()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool amrex::ConstParticleIDWrapper::is_valid ( ) const
inlinenoexcept

Check the sign of the id.

Returns true if the id is positive, otherwise false (invalid particle).

◆ operator Long()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ConstParticleIDWrapper::operator Long ( ) const
inlinenoexcept

Member Data Documentation

◆ m_idata

const uint64_t* amrex::ConstParticleIDWrapper::m_idata

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