ThePEG  1.8.0
Classes | Namespaces | Variables
PhysicalQty.h File Reference

The PhysicalQty class allows compile-time checking of dimensional correctness. More...

#include "TemplateTools.h"
#include <sstream>

Go to the source code of this file.

Classes

struct  ThePEG::ZeroUnit
 Helper class to construct zero unitful quantities. More...
struct  ThePEG::QtyHelper< M, II >
 Helper classes to extend or shorten fractions. More...
struct  ThePEG::QtyHelper< 0, II >
 Template to help with fractional powers of dimensions. More...
struct  ThePEG::QtyInt< II, DI, DI2 >
 Template to help with fractional powers of dimensions. More...
class  ThePEG::Qty< L, E, Q, DL, DE, DQ >
 This template class allows the compiler to check calculations with physical quantities for dimensional correctness. More...
class  ThePEG::Qty< 0, 0, 0, DL, DE, DQ >
 Specialization of Qty for <0,0,0> with conversions to double. More...

Namespaces

namespace  ThePEG
 This is the main namespace within which all identifiers in ThePEG are declared.

Variables

const ZeroUnit ThePEG::ZERO = ZeroUnit()
 ZERO can be used as zero for any unitful quantity.

Detailed Description

The PhysicalQty class allows compile-time checking of dimensional correctness.

Mathematical operations that are inconsistent are flagged as type errors.

Do not use the classes directly in ThePEG, use the wrappers defined in Units.h or Phys_Qty.h instead.

Definition in file PhysicalQty.h.