summaryrefslogtreecommitdiff
path: root/src/kelunit/unit.tmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kelunit/unit.tmpl.h')
-rw-r--r--src/kelunit/unit.tmpl.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kelunit/unit.tmpl.h b/src/kelunit/unit.tmpl.h
index 42b96ef..d89e0c1 100644
--- a/src/kelunit/unit.tmpl.h
+++ b/src/kelunit/unit.tmpl.h
@@ -3,51 +3,51 @@
namespace kelun {
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...>::unit(const value_type& value_):
+unit<StorageT,unit_component<UnitTypes, Exponents>...>::unit(const value_type& value_):
value{value_}{}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...>::unit(value_type&& value_):value{std::move(value_)}{}
+unit<StorageT,unit_component<UnitTypes, Exponents>...>::unit(value_type&& value_):value{std::move(value_)}{}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...>& unit<StorageT,unit_base<UnitTypes, Exponents>...>::operator=(const typename unit<StorageT,unit_base<UnitTypes, Exponents>...>::value_type& value_){
+unit<StorageT,unit_component<UnitTypes, Exponents>...>& unit<StorageT,unit_component<UnitTypes, Exponents>...>::operator=(const typename unit<StorageT,unit_component<UnitTypes, Exponents>...>::value_type& value_){
value = value_;
return *this;
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...>& unit<StorageT,unit_base<UnitTypes, Exponents>...>::operator=(typename unit<StorageT,unit_base<UnitTypes, Exponents>...>::value_type&& value_){
+unit<StorageT,unit_component<UnitTypes, Exponents>...>& unit<StorageT,unit_component<UnitTypes, Exponents>...>::operator=(typename unit<StorageT,unit_component<UnitTypes, Exponents>...>::value_type&& value_){
value = std::move(value_);
return *this;
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...> unit<StorageT,unit_base<UnitTypes, Exponents>...>::operator+(const unit<StorageT,unit_base<UnitTypes, Exponents>...>& rhs){
+unit<StorageT,unit_component<UnitTypes, Exponents>...> unit<StorageT,unit_component<UnitTypes, Exponents>...>::operator+(const unit<StorageT,unit_component<UnitTypes, Exponents>...>& rhs){
return value + rhs.value;
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-unit<StorageT,unit_base<UnitTypes, Exponents>...> unit<StorageT,unit_base<UnitTypes, Exponents>...>::operator-(const unit<StorageT,unit_base<UnitTypes, Exponents>...>& rhs){
+unit<StorageT,unit_component<UnitTypes, Exponents>...> unit<StorageT,unit_component<UnitTypes, Exponents>...>::operator-(const unit<StorageT,unit_component<UnitTypes, Exponents>...>& rhs){
return value - rhs.value;
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
template<typename... Trhs>
-typename unit_multiplication<unit<StorageT,unit_base<UnitTypes,Exponents>...>, unit<StorageT, Trhs...>>::type
-unit<StorageT,unit_base<UnitTypes, Exponents>...>::operator*(const unit<StorageT,Trhs...>& rhs){
+typename unit_multiplication<unit<StorageT,unit_component<UnitTypes,Exponents>...>, unit<StorageT, Trhs...>>::type
+unit<StorageT,unit_component<UnitTypes, Exponents>...>::operator*(const unit<StorageT,Trhs...>& rhs){
return value * rhs.data();
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
template<typename... Trhs>
-typename unit_multiplication<unit<StorageT,unit_base<UnitTypes,Exponents>...>, typename unit_invert<StorageT,Trhs...>::type>::type
-unit<StorageT,unit_base<UnitTypes,Exponents>...>::operator/(const unit<StorageT, Trhs...>& rhs){
+typename unit_multiplication<unit<StorageT,unit_component<UnitTypes,Exponents>...>, typename unit_invert<StorageT,Trhs...>::type>::type
+unit<StorageT,unit_component<UnitTypes,Exponents>...>::operator/(const unit<StorageT, Trhs...>& rhs){
typename unit_invert<StorageT, Trhs...>::type rhs_inverted{static_cast<StorageT>(1)/rhs.data()};
return value * rhs_inverted.data();
}
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
-typename unit<StorageT,unit_base<UnitTypes, Exponents>...>::value_type unit<StorageT,unit_base<UnitTypes, Exponents>...>::data() const {
+typename unit<StorageT,unit_component<UnitTypes, Exponents>...>::value_type unit<StorageT,unit_component<UnitTypes, Exponents>...>::data() const {
return value;
}
}