#include <SEScalarEnergy.h>

Inherits CCompoundUnit.

Public Member Functions

 EnergyUnit (const std::string &u)
 
virtual ~EnergyUnit ()
 
 EnergyUnit (const EnergyUnit &)=delete
 
EnergyUnitoperator= (const EnergyUnit &)=delete
 
- Public Member Functions inherited from CCompoundUnit
 CCompoundUnit ()
 
 CCompoundUnit (const std::string &unitString)
 
 CCompoundUnit (const CCompoundUnit &src)
 
virtual ~CCompoundUnit ()
 
const CUnitDimensionGetDimension () const
 
const double & GetBigness () const
 
double GetBias () const
 
CCompoundUnitoperator= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator*= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator/= (const CCompoundUnit &rhs)
 
CCompoundUnit operator* (const CCompoundUnit &rhs) const
 
CCompoundUnit operator/ (const CCompoundUnit &rhs) const
 
CCompoundUnitRaise (CCompoundUnitElement::ExponentType)
 
bool operator== (const CCompoundUnit &rhs) const
 
bool operator!= (const CCompoundUnit &rhs) const
 
bool IsOfType (int quantityTypeID)
 
bool IsOfType (const std::string &quantityName)
 
bool IsDimensionless () const
 
bool IsDecibel () const
 
bool IsUnitEmpty () const
 
double GetDecibelLogScaleFactor () const
 
void DecibelModeOn ()
 
void DecibelModeOff ()
 
CCompoundUnitElementAddElement (const CCompoundUnitElement &)
 
void clear ()
 
void ParseString (const std::string &unitString)
 
std::string GetString () const
 
std::ostream & PrintSelf (std::ostream &output) const
 

Static Public Member Functions

static bool IsValidUnit (const std::string &unit)
 
static const EnergyUnitGetCompoundUnit (const std::string &unit)
 

Static Public Attributes

static const EnergyUnit J
 
static const EnergyUnit mJ
 
static const EnergyUnit kJ
 
static const EnergyUnit kcal
 

Additional Inherited Members

- Protected Member Functions inherited from CCompoundUnit
void BuildDimension () const
 
void ComputeBigness () const
 

Constructor & Destructor Documentation

◆ EnergyUnit() [1/2]

EnergyUnit::EnergyUnit ( const std::string &  u)
inline

◆ ~EnergyUnit()

virtual EnergyUnit::~EnergyUnit ( )
inlinevirtual

◆ EnergyUnit() [2/2]

EnergyUnit::EnergyUnit ( const EnergyUnit )
delete

Member Function Documentation

◆ GetCompoundUnit()

const EnergyUnit & EnergyUnit::GetCompoundUnit ( const std::string &  unit)
static

◆ IsValidUnit()

bool EnergyUnit::IsValidUnit ( const std::string &  unit)
static

◆ operator=()

EnergyUnit & EnergyUnit::operator= ( const EnergyUnit )
delete

Member Data Documentation

◆ J

const EnergyUnit EnergyUnit::J
static

◆ kcal

const EnergyUnit EnergyUnit::kcal
static

◆ kJ

const EnergyUnit EnergyUnit::kJ
static

◆ mJ

const EnergyUnit EnergyUnit::mJ
static

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.