MotionLib  1.0.0
SamBuCa motion library
Classes | Typedefs | Enumerations | Functions
Units

values an units manipulation helpers More...

Collaboration diagram for Units:

Classes

struct  smc::units::Value
 
struct  smc::units::IOPort
 
struct  smc::units::IOPort::reference
 
struct  smc::units::IOPort::const_reference
 
struct  smc::units::IOPort::iterator
 
struct  smc::units::IOPort::const_iterator
 

Typedefs

typedef Unit smc::units::unit_t
 
typedef Value smc::units::value_t
 
typedef IOPort smc::units::io_port_t
 

Enumerations

enum  Unit {
  UNKNOWN , MILLIMETERS , METERS , STEPS ,
  DEGREES , RADIANS , TURNS , STEPS_PER_TURN ,
  MILLIMETERS_PER_MINUTE , METERS_PER_SECOND , STEPS_PER_MILLIMETER , MILLIMETERS_PER_SECOND ,
  MILLIMETERS_PER_SECOND_SQUARED , unknown = UNKNOWN , millimeters = MILLIMETERS , meters = METERS ,
  steps = STEPS , degrees = DEGREES , radians = RADIANS , turns = TURNS ,
  steps_per_turn = STEPS_PER_TURN , millimeters_per_minute = MILLIMETERS_PER_MINUTE , meters_per_second = METERS_PER_SECOND , steps_per_millimeter = STEPS_PER_MILLIMETER ,
  millimeters_per_second = MILLIMETERS_PER_SECOND , millimeters_per_second_squared = MILLIMETERS_PER_SECOND_SQUARED , mm = MILLIMETERS , m = METERS ,
  deg = DEGREES , rad = RADIANS , mm_per_min = MILLIMETERS_PER_MINUTE , m_per_s = METERS_PER_SECOND ,
  steps_per_mm = STEPS_PER_MILLIMETER , mm_per_s = MILLIMETERS_PER_SECOND , mm_per_s2 = MILLIMETERS_PER_SECOND_SQUARED
}
 

Functions

Value smc::units::operator* (Value::value_type raw, Unit unit)
 
Value smc::units::operator""_mm (long double raw)
 
Value smc::units::operator""_m (long double raw)
 
Value smc::units::operator""_steps (long double raw)
 
Value smc::units::operator""_deg (long double raw)
 
Value smc::units::operator""_rad (long double raw)
 
Value smc::units::operator""_turns (long double raw)
 
Value smc::units::operator""_mm_per_min (long double raw)
 
Value smc::units::operator""_m_per_s (long double raw)
 
Value smc::units::operator""_mm_per_s (long double raw)
 
Value smc::units::operator""_mm_per_s2 (long double raw)
 
Value smc::units::operator""_steps_per_mm (long double raw)
 
Value smc::units::operator""_steps_per_turn (long double raw)
 
Value smc::units::operator* (const Value &value1, const Value &value2)
 
Value smc::units::operator/ (const Value &value1, const Value &value2)
 
template<class R , class P >
Value smc::units::operator* (const Value &value, std::chrono::duration< R, P > duration)
 
template<class R , class P >
Value smc::units::operator/ (const Value &value, std::chrono::duration< R, P > duration)
 
reference smc::units::IOPort::operator[] (size_type offset)
 
const_iterator smc::units::IOPort::begin () const
 
const_iterator smc::units::IOPort::end () const
 
const_iterator smc::units::IOPort::const_begin () const
 
const_iterator smc::units::IOPort::const_end () const
 
iterator smc::units::IOPort::begin ()
 
iterator smc::units::IOPort::end ()
 

Detailed Description

values an units manipulation helpers