1#ifndef SCIFIR_UNITS_SPECIAL_UNITS_PIXEL_HPP_INCLUDED
2#define SCIFIR_UNITS_SPECIAL_UNITS_PIXEL_HPP_INCLUDED
4#include "../units/constants.hpp"
5#include "../util/is_number.hpp"
6#include "../units/scalar_unit.hpp"
8#include "boost/math/constants/constants.hpp"
146template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
152template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
158template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
164template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
170template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
176template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
182template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
188template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
194template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
200template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
206template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
212template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
218template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
224template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
230template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
236template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
242template<typename T, typename = typename enable_if<scifir::is_number<T>::value>::type>
void operator^=(const pixel &x)
void operator+=(const pixel &x)
pixel operator^(const pixel &x) const
pixel operator-(const pixel &x) const
pixel & operator=(const pixel &x)
const float & get_value() const
scalar_unit to_scalar_unit() const
pixel operator*(const pixel &x) const
void operator-=(const pixel &x)
pixel operator+(const pixel &x) const
string display(int number_of_decimals=2) const
void operator*=(const pixel &x)
void operator/=(const pixel &x)
pixel operator/(const pixel &x) const
void initialize_from_string(const string &init_pixel)
Class that allows to create scalar units, which are composed of a value (as a float) and dimensions....
The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
angle sqrt_nth(const angle &x, int index)
Calculates the nth root of the angle x and returns that new angle.
string to_string(const aid &x)
Creates a string representation of aid, it's for aid equivalent to the display() function of aid.
bool is_pixel(const string &init_pixel)
angle sqrt(const angle &x)
Calculates the square root of the angle x and returns that new angle.
scifir::pixel operator+(T x, const scifir::pixel &y)
scifir::pixel operator*(T x, const scifir::pixel &y)
bool operator==(T x, const scifir::pixel &y)
scifir::pixel operator-(T x, const scifir::pixel &y)
scifir::pixel operator/(T x, const scifir::pixel &y)
void operator+=(string &x, const scifir::pixel &y)
scifir::pixel operator^(T x, const scifir::pixel &y)
bool operator!=(T x, const scifir::pixel &y)
bool operator>(T x, const scifir::pixel &y)
bool operator<=(T x, const scifir::pixel &y)
istream & operator>>(istream &is, scifir::pixel &x)
ostream & operator<<(ostream &os, const scifir::pixel &x)
bool operator>=(T x, const scifir::pixel &y)
bool operator<(T x, const scifir::pixel &y)