cloudy trunk
Loading...
Searching...
No Matches
Flux Class Reference

#include <flux.h>

Collaboration diagram for Flux:

Public Member Functions

 Flux ()
 Flux (Energy e, double flux)
 Flux (Energy e, double flux, const string &unit)
void set (Energy e, double flux)
void set (Energy e, double flux, const string &unit)
double get () const
double get (const string &unit) const
Energy E () const
string uu () const

Private Types

enum  fu_flag {
  FU_NONE , FU_ERG_S , FU_W , FU_JY ,
  FU_MJY , FU_MJY_SR , FU_CM2 , FU_M2 ,
  FU_A , FU_NM , FU_MU , FU_HZ ,
  FU_SR , FU_SQAS , FU_TOP
}
typedef bitset< FU_TOPfu_bits

Private Member Functions

fu_bits p_InternalFluxUnitNoCheck (const string &unit, size_t &len) const
fu_bits p_InternalFluxUnit (const string &unit) const
bool p_ValidFluxUnit (fu_bits) const
void p_set (Energy e, double value, fu_bits bits)
double p_get (fu_bits bits) const

Private Attributes

Energy p_energy
double p_flux
fu_bits p_userunits

Friends

bool ValidFluxUnit (const string &unit)

Detailed Description

Definition at line 9 of file flux.h.

Member Typedef Documentation

◆ fu_bits

typedef bitset<FU_TOP> Flux::fu_bits
private

Definition at line 15 of file flux.h.

Member Enumeration Documentation

◆ fu_flag

enum Flux::fu_flag
private
Enumerator
FU_NONE 
FU_ERG_S 
FU_W 
FU_JY 
FU_MJY 
FU_MJY_SR 
FU_CM2 
FU_M2 
FU_A 
FU_NM 
FU_MU 
FU_HZ 
FU_SR 
FU_SQAS 
FU_TOP 

Definition at line 11 of file flux.h.

Constructor & Destructor Documentation

◆ Flux() [1/3]

Flux::Flux ( )
inline

Definition at line 28 of file flux.h.

References p_userunits, and set().

Referenced by ValidFluxUnit.

Here is the call graph for this function:

◆ Flux() [2/3]

Flux::Flux ( Energy e,
double flux )
inline

Definition at line 33 of file flux.h.

References set().

Here is the call graph for this function:

◆ Flux() [3/3]

Flux::Flux ( Energy e,
double flux,
const string & unit )
inline

Definition at line 37 of file flux.h.

References set().

Here is the call graph for this function:

Member Function Documentation

◆ E()

Energy Flux::E ( ) const
inline

Definition at line 59 of file flux.h.

References p_energy.

◆ get() [1/2]

double Flux::get ( ) const
inline

Definition at line 51 of file flux.h.

References p_flux.

Referenced by optimize_func().

◆ get() [2/2]

double Flux::get ( const string & unit) const
inline

Definition at line 55 of file flux.h.

References p_get(), and p_InternalFluxUnit().

Here is the call graph for this function:

◆ p_get()

double Flux::p_get ( fu_bits bits) const
private

Definition at line 144 of file flux.cpp.

References DEBUG_ENTRY, FU_A, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, FU_W, p_energy, p_flux, PI4, and SQAS_SKY.

Referenced by get().

◆ p_InternalFluxUnit()

Flux::fu_bits Flux::p_InternalFluxUnit ( const string & unit) const
private

Definition at line 87 of file flux.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, p_InternalFluxUnitNoCheck(), and p_ValidFluxUnit().

Referenced by get(), and set().

Here is the call graph for this function:

◆ p_InternalFluxUnitNoCheck()

Flux::fu_bits Flux::p_InternalFluxUnitNoCheck ( const string & unit,
size_t & len ) const
private

Definition at line 10 of file flux.cpp.

References DEBUG_ENTRY, FU_A, FU_CM2, FU_ERG_S, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, and FU_W.

Referenced by p_InternalFluxUnit(), and ValidFluxUnit.

◆ p_set()

void Flux::p_set ( Energy e,
double value,
fu_bits bits )
private

Definition at line 175 of file flux.cpp.

References DEBUG_ENTRY, FU_A, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, FU_W, p_energy, p_flux, p_userunits, PI4, and SQAS_SKY.

Referenced by set().

◆ p_ValidFluxUnit()

bool Flux::p_ValidFluxUnit ( fu_bits bits) const
private

Definition at line 101 of file flux.cpp.

References DEBUG_ENTRY, FU_A, FU_CM2, FU_ERG_S, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, and FU_W.

Referenced by p_InternalFluxUnit(), uu(), and ValidFluxUnit.

◆ set() [1/2]

void Flux::set ( Energy e,
double flux )
inline

Definition at line 42 of file flux.h.

References set().

Referenced by Flux(), Flux(), Flux(), and set().

Here is the call graph for this function:

◆ set() [2/2]

void Flux::set ( Energy e,
double flux,
const string & unit )
inline

Definition at line 46 of file flux.h.

References p_InternalFluxUnit(), and p_set().

Here is the call graph for this function:

◆ uu()

string Flux::uu ( ) const

Definition at line 257 of file flux.cpp.

References ASSERT, DEBUG_ENTRY, FU_A, FU_CM2, FU_ERG_S, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, FU_W, p_userunits, and p_ValidFluxUnit().

Here is the call graph for this function:

◆ ValidFluxUnit

bool ValidFluxUnit ( const string & unit)
friend

Definition at line 71 of file flux.h.

References Flux(), p_InternalFluxUnitNoCheck(), and p_ValidFluxUnit().

Field Documentation

◆ p_energy

Energy Flux::p_energy
private

Definition at line 17 of file flux.h.

Referenced by E(), p_get(), and p_set().

◆ p_flux

double Flux::p_flux
private

Definition at line 18 of file flux.h.

Referenced by get(), p_get(), and p_set().

◆ p_userunits

fu_bits Flux::p_userunits
private

Definition at line 19 of file flux.h.

Referenced by Flux(), p_set(), and uu().


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