Celeritas 0.7+4eea2c0
Loading...
Searching...
No Matches
Classes | Macros | Functions
AtomicNumber.hh File Reference
#include "corecel/Assert.hh"
#include <ostream>

Classes

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

Macros

#define CELER_DEFINE_ATOMICNUMBER_CMP(TOKEN)
 

Functions

std::ostream & celeritas::operator<< (std::ostream &os, AtomicNumber num)
 Output an atomic number.
 

Macro Definition Documentation

◆ CELER_DEFINE_ATOMICNUMBER_CMP

#define CELER_DEFINE_ATOMICNUMBER_CMP (   TOKEN)
Value:
CELER_CEF friend bool operator TOKEN(AtomicNumber lhs, AtomicNumber rhs) \
{ \
return lhs.unchecked_get() TOKEN rhs.unchecked_get(); \
}
#define CELER_CEF
Decorate a function that works on both host and device, with and without NVCC.
Definition Macros.hh:85