Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
PDGNumber.hh File Reference
#include <cstddef>
#include <functional>
#include "corecel/Assert.hh"

Classes

class  celeritas::PDGNumber
 Type-safe particle identifier. More...
 

Namespaces

namespace  celeritas::pdg
 Unique standard model particle identifiers by the Particle Data Group.
 

Macros

#define CELER_DEFINE_PDGNUMBER(NAME, VALUE)
 

Functions

constexpr bool celeritas::operator== (PDGNumber lhs, PDGNumber rhs)
 Test equality.
 
constexpr bool celeritas::operator!= (PDGNumber lhs, PDGNumber rhs)
 Test inequality.
 
constexpr bool celeritas::operator< (PDGNumber lhs, PDGNumber rhs)
 Allow less-than comparison for sorting.
 

Macro Definition Documentation

◆ CELER_DEFINE_PDGNUMBER

#define CELER_DEFINE_PDGNUMBER (   NAME,
  VALUE 
)
Value:
inline constexpr PDGNumber NAME() \
{ \
return PDGNumber{VALUE}; \
}