#include <Energy.h>

Public Types

enum  UNITS {
  UNKNOWN = -1, JOULE, EV, KWH,
  MWD, GWD, GWYR, END
}
 

Static Public Member Functions

template<Energy::UNITS u>
static std::string name ()
 
static std::string name (Energy::UNITS u)
 
template<Energy::UNITS u>
static double base ()
 
static double base (Energy::UNITS u)
 
template<Energy::UNITS to, Energy::UNITS from>
static double factor ()
 
template<Energy::UNITS to>
static double factor (Energy::UNITS from)
 
static double factor (Energy::UNITS to, Energy::UNITS from)
 
static Energy::UNITS units (const char *s)
 
static constexpr Energy::UNITS units (int i)
 

Static Public Attributes

static const UNITS DEFAULT = JOULE
 

Detailed Description

Examples:
tstEnergy.cpp.

Member Enumeration Documentation

enum UNITS
Enumerator
UNKNOWN 
JOULE 
EV 
KWH 
MWD 
GWD 
GWYR 
END 

Member Function Documentation

static std::string name ( )
static
std::string name ( Energy::UNITS  u)
inlinestatic
static double base ( )
static
Examples:
tstEnergy.cpp.

Referenced by Energy::factor(), and TEST().

double base ( Energy::UNITS  u)
inlinestatic
double factor ( )
inlinestatic
double factor ( Energy::UNITS  from)
inlinestatic

References Energy::base().

double factor ( Energy::UNITS  to,
Energy::UNITS  from 
)
inlinestatic

References Energy::base().

Energy::UNITS units ( const char *  s)
inlinestatic
constexpr Energy::UNITS units ( int  i)
inlinestatic

Member Data Documentation

const UNITS DEFAULT = JOULE
static

The documentation for this struct was generated from the following files: