Skip to content

Commit

Permalink
Prefixed headers with license tag and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Jun 27, 2019
1 parent f0410c0 commit 5ccc15b
Show file tree
Hide file tree
Showing 35 changed files with 410 additions and 29 deletions.
10 changes: 10 additions & 0 deletions include/SI/absorbed_dose.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/acceleration.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/operator_helpers.h"
Expand Down
19 changes: 16 additions & 3 deletions include/SI/angle.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down Expand Up @@ -25,7 +35,8 @@ template <char... _Digits> constexpr atto_radiant_t<int64_t> operator""_arad() {
SI::detail::parsing::Number<_Digits...>::value};
}

template <char... _Digits> constexpr femto_radiant_t<int64_t> operator""_frad() {
template <char... _Digits>
constexpr femto_radiant_t<int64_t> operator""_frad() {
return femto_radiant_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand All @@ -40,12 +51,14 @@ template <char... _Digits> constexpr nano_radiant_t<int64_t> operator""_nrad() {
SI::detail::parsing::Number<_Digits...>::value};
}

template <char... _Digits> constexpr micro_radiant_t<int64_t> operator""_urad() {
template <char... _Digits>
constexpr micro_radiant_t<int64_t> operator""_urad() {
return micro_radiant_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}

template <char... _Digits> constexpr milli_radiant_t<int64_t> operator""_mrad() {
template <char... _Digits>
constexpr milli_radiant_t<int64_t> operator""_mrad() {
return milli_radiant_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand Down
22 changes: 18 additions & 4 deletions include/SI/area.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "length.h"
Expand Down Expand Up @@ -34,7 +44,8 @@ constexpr square_meter_t<long double> operator"" _m2(long double m) {
return square_meter_t<long double>(m);
}

template <char... _Digits> constexpr square_centi_meter_t<int64_t> operator""_cm2() {
template <char... _Digits>
constexpr square_centi_meter_t<int64_t> operator""_cm2() {
return square_centi_meter_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand All @@ -43,7 +54,8 @@ constexpr square_centi_meter_t<long double> operator"" _cm2(long double cm) {
return square_centi_meter_t<long double>(cm);
}

template <char... _Digits> constexpr square_milli_meter_t<int64_t> operator""_mm2() {
template <char... _Digits>
constexpr square_milli_meter_t<int64_t> operator""_mm2() {
return square_milli_meter_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand All @@ -60,7 +72,8 @@ constexpr cubic_meter_t<long double> operator"" _m3(long double m) {
return cubic_meter_t<long double>(m);
}

template <char... _Digits> constexpr cubic_centi_meter_t<int64_t> operator""_cm3() {
template <char... _Digits>
constexpr cubic_centi_meter_t<int64_t> operator""_cm3() {
return cubic_centi_meter_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand All @@ -69,7 +82,8 @@ constexpr cubic_centi_meter_t<long double> operator"" _cm3(long double cm) {
return cubic_centi_meter_t<long double>(cm);
}

template <char... _Digits> constexpr cubic_milli_meter_t<int64_t> operator""_mm3() {
template <char... _Digits>
constexpr cubic_milli_meter_t<int64_t> operator""_mm3() {
return cubic_milli_meter_t<int64_t>{
SI::detail::parsing::Number<_Digits...>::value};
}
Expand Down
10 changes: 10 additions & 0 deletions include/SI/catalytic_activity.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/detail/detail.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/detail/number_parser.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include <cstdint>
Expand Down
10 changes: 10 additions & 0 deletions include/SI/detail/operator_helpers.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/detail/unit.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_capacity.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_charge.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_conductance.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_current.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_potential.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/electric_resistance.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/energy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/equivalent_dose.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
11 changes: 11 additions & 0 deletions include/SI/force.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@

/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "acceleration.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/frequency.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "time.h"
Expand Down
10 changes: 10 additions & 0 deletions include/SI/illuminance.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "area.h"
Expand Down
12 changes: 11 additions & 1 deletion include/SI/inductance.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
#include "detail/operator_helpers.h"
#include "detail/unit.h"
#include "detail/number_parser.h"
#include "electric_current.h"
#include "magnetic_flux.h"

Expand Down
10 changes: 10 additions & 0 deletions include/SI/length.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once
#include <limits>
#include <ratio>
Expand Down
10 changes: 10 additions & 0 deletions include/SI/luminosity.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* This file is part of "SI",
* A header only c++ library that provides type safety and user defined literals
* for handling pyhsical values defined in the International System of
* Units
*
*
* SPDX-License-Identifier: MIT
*
**/
#pragma once

#include "detail/number_parser.h"
Expand Down
Loading

0 comments on commit 5ccc15b

Please sign in to comment.