Poco::Util

namespace Units

Overview

Namespaces: Internal

Classes: Value

Types: Unit

Functions: cube, operator *, operator /, raise, sqrt, square

Namespaces

namespace Internal

Classes

class Value

A Value with a unit. more...

Types

Unit

typedef Power < Internal::None, 0 > Unit;

Construct a unit equivalent to Unit1*Unit2 Constructs a unit equivalent to U*Num/Den Constructs a Unit equivalent to U+Num/Den Constructs a Unit equivalent to U^(Num/Den) A unit which is effectively no units at all.

Functions

cube inline

template < typename V, typename U > Value < V, Power < U, 3, 1 > > cube(
    const Value < V, U > & a
);

operator * inline

template < typename V, typename U > Value < V, U > operator * (
    const V & a,
    const Value < V, U > & b
);

operator / inline

template < typename V, typename U > Value < V, Power < U, - 1 > > operator / (
    const V & a,
    const Value < V, U > & b
);

raise inline

template < int Num, int Den, typename V, typename U > Value < V, Power < U, Num, Den > > raise(
    const Value < V, U > & a
);

sqrt inline

template < typename V, typename U > Value < V, Power < U, 1, 2 > > sqrt(
    const Value < V, U > & a
);

square inline

template < typename V, typename U > Value < V, Power < U, 2, 1 > > square(
    const Value < V, U > & a
);