ATLAS Offline Software
Athena::Units::Unit< TAG > Class Template Reference

Wrapper to avoid constant divisions when using units. More...

#include <Units.h>

Collaboration diagram for Athena::Units::Unit< TAG >:

Detailed Description

template<int TAG>
class Athena::Units::Unit< TAG >

Wrapper to avoid constant divisions when using units.

The Unit class defined here is a placeholder. A specialization will be generated for each unit by the UNIT macro below. TAG is used to distinguish these specializations.

(We used to do this with a single, non-template, class, but that didn't work with clang when -ffp-exception-behavior=maytrap is used.)

Definition at line 58 of file Units.h.


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