Celeritas  0.5.0-56+6b053cd
Classes | Macros | Functions
AtomicNumber.hh File Reference
#include "corecel/Assert.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::AtomicNumber
 Type-safe atomic number identifier. More...
 

Macros

#define CELER_DEFINE_ATOMICNUMBER_CMP(TOKEN)
 

Functions

CELER_CONSTEXPR_FUNCTION bool celeritas::operator== (AtomicNumber lhs, AtomicNumber rhs)
 
CELER_CONSTEXPR_FUNCTION bool celeritas::operator!= (AtomicNumber lhs, AtomicNumber rhs)
 
CELER_CONSTEXPR_FUNCTION bool celeritas::operator< (AtomicNumber lhs, AtomicNumber rhs)
 
CELER_CONSTEXPR_FUNCTION bool celeritas::operator> (AtomicNumber lhs, AtomicNumber rhs)
 
CELER_CONSTEXPR_FUNCTION bool celeritas::operator<= (AtomicNumber lhs, AtomicNumber rhs)
 
CELER_CONSTEXPR_FUNCTION bool celeritas::operator>= (AtomicNumber lhs, AtomicNumber rhs)
 

Macro Definition Documentation

◆ CELER_DEFINE_ATOMICNUMBER_CMP

#define CELER_DEFINE_ATOMICNUMBER_CMP (   TOKEN)
Value:
CELER_CONSTEXPR_FUNCTION bool operator TOKEN(AtomicNumber lhs, \
AtomicNumber rhs) \
{ \
return lhs.unchecked_get() TOKEN rhs.unchecked_get(); \
}
#define CELER_CONSTEXPR_FUNCTION
Decorate a function that works on both host and device, with and without NVCC, can be evaluated at co...
Definition: Macros.hh:80