Base class of objects that have a Phase::Unit. More...

#include <PhaseRange.h>

Inheritance diagram for Phase::HasUnit:
Phase::Range Phase::Ranges Phase::Value

Public Member Functions

 HasUnit (Unit u=Turns)
 
unsigned get_bin (double value) const
 
double get_as (Unit, double value, bool round_down=false) const
 
double get_scale (Unit) const
 
void set_unit (Unit u)
 
Unit get_unit () const
 
void set_nbin (unsigned N)
 
void set_period (double P_ms)
 Set the period in milliseconds.
 

Protected Member Functions

std::ostream & insertion (std::ostream &) const
 
std::istream & extraction (std::istream &)
 

Protected Attributes

Unit unit
 
unsigned nbin
 
double period
 
bool insert_units
 

Detailed Description

Base class of objects that have a Phase::Unit.


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

Generated using doxygen 1.8.17