refactor: Refactored the library file tree

Resolves #249
This commit is contained in:
Mateusz Pusz
2021-03-16 09:32:28 +01:00
parent d8367d31b8
commit 23720d055e
209 changed files with 452 additions and 451 deletions

View File

@ -28,9 +28,9 @@ analysis and unit/quantity manipulation. The basic idea and design heavily bases
Here is a small example of possible operations:
```cpp
#include <units/physical/si/derived/area.h>
#include <units/physical/si/derived/frequency.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/area.h>
#include <units/physical/si/frequency.h>
#include <units/physical/si/speed.h>
using namespace units::physical::si;
@ -62,8 +62,8 @@ the below example for a quick preview of basic library features:
```cpp
#include <units/format.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/international/speed.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -3,6 +3,7 @@
- **0.7.0 WIP**
- (!) refactor: `ScalableNumber` renamed to `QuantityValue`
- (!) refactor: output stream operators moved to the `units/quantity_io.h` header file
- (!) refactor: Refactored the library file tree
- refactor: quantity (kind) point updated to reflect latest changes to `quantity`
- refactor: basic concepts, `quantity` and `quantity_cast` refactored
- refactor: `abs()` definition refactored to be more explicit about the return type

View File

@ -3,9 +3,9 @@ Quick Start
Here is a small example of possible operations::
#include <units/physical/si/derived/area.h>
#include <units/physical/si/derived/frequency.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/area.h>
#include <units/physical/si/frequency.h>
#include <units/physical/si/speed.h>
using namespace units::physical::si;
@ -38,8 +38,8 @@ performed without sacrificing on accuracy. Please see the below example for a qu
of basic library features::
#include <units/format.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/international/speed.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -1,4 +1,4 @@
Bitrate
=======
.. doxygenfile:: data/derived/bitrate.h
.. doxygenfile:: data/bitrate.h

View File

@ -1,4 +1,4 @@
Information
===========
.. doxygenfile:: data/base/information.h
.. doxygenfile:: data/information.h

View File

@ -1,4 +1,4 @@
Absorbed Dose
=============
.. doxygenfile:: si/derived/absorbed_dose.h
.. doxygenfile:: si/absorbed_dose.h

View File

@ -1,4 +1,4 @@
Acceleration
============
.. doxygenfile:: si/derived/acceleration.h
.. doxygenfile:: si/acceleration.h

View File

@ -1,4 +1,4 @@
Amount of Substance
===================
.. doxygenfile:: si/base/amount_of_substance.h
.. doxygenfile:: si/amount_of_substance.h

View File

@ -1,4 +1,4 @@
Area
====
.. doxygenfile:: si/derived/area.h
.. doxygenfile:: si/area.h

View File

@ -1,4 +1,4 @@
Capacitance
===========
.. doxygenfile:: si/derived/capacitance.h
.. doxygenfile:: si/capacitance.h

View File

@ -1,4 +1,4 @@
Catalytic Activity
==================
.. doxygenfile:: si/derived/catalytic_activity.h
.. doxygenfile:: si/catalytic_activity.h

View File

@ -1,4 +1,4 @@
Acceleration
============
.. doxygenfile:: si/cgs/derived/acceleration.h
.. doxygenfile:: si/cgs/acceleration.h

View File

@ -1,4 +1,4 @@
Area
====
.. doxygenfile:: si/cgs/derived/area.h
.. doxygenfile:: si/cgs/area.h

View File

@ -1,4 +1,4 @@
Energy
======
.. doxygenfile:: si/cgs/derived/energy.h
.. doxygenfile:: si/cgs/energy.h

View File

@ -1,4 +1,4 @@
Force
=====
.. doxygenfile:: si/cgs/derived/force.h
.. doxygenfile:: si/cgs/force.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/cgs/base/length.h
.. doxygenfile:: si/cgs/length.h

View File

@ -1,4 +1,4 @@
Mass
====
.. doxygenfile:: si/cgs/base/mass.h
.. doxygenfile:: si/cgs/mass.h

View File

@ -1,4 +1,4 @@
Power
=====
.. doxygenfile:: si/cgs/derived/power.h
.. doxygenfile:: si/cgs/power.h

View File

@ -1,4 +1,4 @@
Pressure
========
.. doxygenfile:: si/cgs/derived/pressure.h
.. doxygenfile:: si/cgs/pressure.h

View File

@ -1,4 +1,4 @@
Speed
=====
.. doxygenfile:: si/cgs/derived/speed.h
.. doxygenfile:: si/cgs/speed.h

View File

@ -1,4 +1,4 @@
Time
====
.. doxygenfile:: si/cgs/base/time.h
.. doxygenfile:: si/cgs/time.h

View File

@ -1,4 +1,4 @@
Charge Density
==============
.. doxygenfile:: si/derived/charge_density.h
.. doxygenfile:: si/charge_density.h

View File

@ -1,4 +1,4 @@
Concentration
=============
.. doxygenfile:: si/derived/concentration.h
.. doxygenfile:: si/concentration.h

View File

@ -1,4 +1,4 @@
Conductance
===========
.. doxygenfile:: si/derived/conductance.h
.. doxygenfile:: si/conductance.h

View File

@ -1,4 +1,4 @@
Current density
===============
.. doxygenfile:: si/derived/current_density.h
.. doxygenfile:: si/current_density.h

View File

@ -1,4 +1,4 @@
Density
=======
.. doxygenfile:: si/derived/density.h
.. doxygenfile:: si/density.h

View File

@ -1,4 +1,4 @@
Dynamic Viscosity
=================
.. doxygenfile:: si/derived/dynamic_viscosity.h
.. doxygenfile:: si/dynamic_viscosity.h

View File

@ -1,4 +1,4 @@
Electric Charge
===============
.. doxygenfile:: si/derived/electric_charge.h
.. doxygenfile:: si/electric_charge.h

View File

@ -1,4 +1,4 @@
Electric Current
================
.. doxygenfile:: si/base/electric_current.h
.. doxygenfile:: si/electric_current.h

View File

@ -1,4 +1,4 @@
Electric Field Strength
=======================
.. doxygenfile:: si/derived/electric_field_strength.h
.. doxygenfile:: si/electric_field_strength.h

View File

@ -1,4 +1,4 @@
Energy
======
.. doxygenfile:: si/derived/energy.h
.. doxygenfile:: si/energy.h

View File

@ -1,4 +1,4 @@
Force
=====
.. doxygenfile:: si/derived/force.h
.. doxygenfile:: si/force.h

View File

@ -1,4 +1,4 @@
Acceleration
============
.. doxygenfile:: si/fps/derived/acceleration.h
.. doxygenfile:: si/fps/acceleration.h

View File

@ -1,4 +1,4 @@
Area
====
.. doxygenfile:: si/fps/derived/area.h
.. doxygenfile:: si/fps/area.h

View File

@ -1,4 +1,4 @@
Density
=======
.. doxygenfile:: si/fps/derived/density.h
.. doxygenfile:: si/fps/density.h

View File

@ -1,4 +1,4 @@
Energy
======
.. doxygenfile:: si/fps/derived/energy.h
.. doxygenfile:: si/fps/energy.h

View File

@ -1,4 +1,4 @@
Force
=====
.. doxygenfile:: si/fps/derived/force.h
.. doxygenfile:: si/fps/force.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/fps/base/length.h
.. doxygenfile:: si/fps/length.h

View File

@ -1,4 +1,4 @@
Mass
====
.. doxygenfile:: si/fps/base/mass.h
.. doxygenfile:: si/fps/mass.h

View File

@ -1,4 +1,4 @@
Power
=====
.. doxygenfile:: si/fps/derived/power.h
.. doxygenfile:: si/fps/power.h

View File

@ -1,4 +1,4 @@
Pressure
========
.. doxygenfile:: si/fps/derived/pressure.h
.. doxygenfile:: si/fps/pressure.h

View File

@ -1,4 +1,4 @@
Speed
=====
.. doxygenfile:: si/fps/derived/speed.h
.. doxygenfile:: si/fps/speed.h

View File

@ -1,4 +1,4 @@
Time
====
.. doxygenfile:: si/fps/base/time.h
.. doxygenfile:: si/fps/time.h

View File

@ -1,4 +1,4 @@
Volume
======
.. doxygenfile:: si/fps/derived/volume.h
.. doxygenfile:: si/fps/volume.h

View File

@ -1,4 +1,4 @@
Frequency
=========
.. doxygenfile:: si/derived/frequency.h
.. doxygenfile:: si/frequency.h

View File

@ -1,4 +1,4 @@
Heat Capacity
=============
.. doxygenfile:: si/derived/heat_capacity.h
.. doxygenfile:: si/heat_capacity.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/iau/base/length.h
.. doxygenfile:: si/iau/length.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/imperial/base/length.h
.. doxygenfile:: si/imperial/length.h

View File

@ -1,4 +1,4 @@
Inductance
==========
.. doxygenfile:: si/derived/inductance.h
.. doxygenfile:: si/inductance.h

View File

@ -1,4 +1,4 @@
Area
====
.. doxygenfile:: si/international/derived/area.h
.. doxygenfile:: si/international/area.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/international/base/length.h
.. doxygenfile:: si/international/length.h

View File

@ -1,4 +1,4 @@
Speed
=====
.. doxygenfile:: speed/derived/speed.h
.. doxygenfile:: speed/speed.h

View File

@ -1,4 +1,4 @@
Volume
======
.. doxygenfile:: si/international/derived/volume.h
.. doxygenfile:: si/international/volume.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/base/length.h
.. doxygenfile:: si/length.h

View File

@ -1,4 +1,4 @@
Luminance
=========
.. doxygenfile:: si/derived/luminance.h
.. doxygenfile:: si/luminance.h

View File

@ -1,4 +1,4 @@
Luminous Intensity
==================
.. doxygenfile:: si/base/luminous_intensity.h
.. doxygenfile:: si/luminous_intensity.h

View File

@ -1,4 +1,4 @@
Magnetic Flux
=============
.. doxygenfile:: si/derived/magnetic_flux.h
.. doxygenfile:: si/magnetic_flux.h

View File

@ -1,4 +1,4 @@
Magnetic Induction
==================
.. doxygenfile:: si/derived/magnetic_induction.h
.. doxygenfile:: si/magnetic_induction.h

View File

@ -1,4 +1,4 @@
Mass
====
.. doxygenfile:: si/base/mass.h
.. doxygenfile:: si/mass.h

View File

@ -1,4 +1,4 @@
Molar Energy
============
.. doxygenfile:: si/derived/molar_energy.h
.. doxygenfile:: si/molar_energy.h

View File

@ -1,4 +1,4 @@
Momentum
========
.. doxygenfile:: si/derived/momentum.h
.. doxygenfile:: si/momentum.h

View File

@ -1,4 +1,4 @@
Permeability
============
.. doxygenfile:: si/derived/permeability.h
.. doxygenfile:: si/permeability.h

View File

@ -1,4 +1,4 @@
Permittivity
============
.. doxygenfile:: si/derived/permittivity.h
.. doxygenfile:: si/permittivity.h

View File

@ -1,4 +1,4 @@
Power
=====
.. doxygenfile:: si/derived/power.h
.. doxygenfile:: si/power.h

View File

@ -1,4 +1,4 @@
Pressure
========
.. doxygenfile:: si/derived/pressure.h
.. doxygenfile:: si/pressure.h

View File

@ -1,4 +1,4 @@
Resistance
==========
.. doxygenfile:: si/derived/resistance.h
.. doxygenfile:: si/resistance.h

View File

@ -1,4 +1,4 @@
Speed
=====
.. doxygenfile:: si/derived/speed.h
.. doxygenfile:: si/speed.h

View File

@ -1,4 +1,4 @@
Surface Tension
===============
.. doxygenfile:: si/derived/surface_tension.h
.. doxygenfile:: si/surface_tension.h

View File

@ -1,4 +1,4 @@
Thermal Conductivity
====================
.. doxygenfile:: si/derived/thermal_conductivity.h
.. doxygenfile:: si/thermal_conductivity.h

View File

@ -1,4 +1,4 @@
Temperature
===========
.. doxygenfile:: si/base/thermodynamic_temperature.h
.. doxygenfile:: si/thermodynamic_temperature.h

View File

@ -1,4 +1,4 @@
Time
====
.. doxygenfile:: si/base/time.h
.. doxygenfile:: si/time.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/typographic/base/length.h
.. doxygenfile:: si/typographic/length.h

View File

@ -1,4 +1,4 @@
Length
======
.. doxygenfile:: si/us/base/length.h
.. doxygenfile:: si/us/length.h

View File

@ -1,4 +1,4 @@
Voltage
=======
.. doxygenfile:: si/derived/voltage.h
.. doxygenfile:: si/voltage.h

View File

@ -1,4 +1,4 @@
Volume
======
.. doxygenfile:: si/derived/volume.h
.. doxygenfile:: si/volume.h

View File

@ -16,7 +16,7 @@ provide the following:
For example, to provide support for the ``std::chrono::duration`` it is enough to define::
#include <units/customization_points.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/time.h>
#include <chrono>
namespace units {

View File

@ -41,8 +41,8 @@ dimensions used in the division operation:
.. code-block::
:emphasize-lines: 1-2,8,10
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/length.h>
#include <units/physical/si/time.h>
using namespace units::physical::si;

View File

@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/derived/acceleration.h>
#include <units/physical/si/acceleration.h>
namespace units{
namespace experimental{

View File

@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/derived/area.h>
#include <units/physical/si/area.h>
namespace area {

View File

@ -20,9 +20,9 @@
physical_quantities
*/
#include <units/physical/si/derived/capacitance.h>
#include <units/physical/si/derived/resistance.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/capacitance.h>
#include <units/physical/si/resistance.h>
#include <units/physical/si/time.h>
#include <units/math.h>
#include <units/quantity_io.h>
#include "./voltage.h"

View File

@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/derived/density.h>
#include <units/physical/si/density.h>
namespace units{
namespace experimental{

View File

@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/derived/force.h>
#include <units/physical/si/force.h>
namespace units{
namespace experimental{

View File

@ -2,12 +2,12 @@
#pragma once
#include <units/physical/si/base/length.h>
#include <units/physical/si/imperial/base/length.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/typographic/base/length.h>
#include <units/physical/si/us/base/length.h>
#include <units/physical/si/iau/base/length.h>
#include <units/physical/si/length.h>
#include <units/physical/si/imperial/length.h>
#include <units/physical/si/international/length.h>
#include <units/physical/si/typographic/length.h>
#include <units/physical/si/us/length.h>
#include <units/physical/si/iau/length.h>
namespace units{
namespace experimental{

View File

@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/base/mass.h>
#include <units/physical/si/mass.h>
namespace units{
namespace experimental{

View File

@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/base/time.h>
#include <units/physical/si/time.h>
// named qtime due to conflict with time_t time(time_t*)
namespace q_time {

View File

@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/derived/voltage.h>
#include <units/physical/si/voltage.h>
namespace units{
namespace experimental{

View File

@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/derived/volume.h>
#include <units/physical/si/volume.h>
namespace units{
namespace experimental{

View File

@ -20,9 +20,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/cgs/derived/speed.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/cgs/speed.h>
#include <units/physical/si/international/speed.h>
#include <units/physical/si/speed.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -1,11 +1,11 @@
#include <units/physical/si/constants.h>
#include <units/physical/si/derived/area.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/derived/density.h>
#include <units/physical/si/derived/force.h>
#include <units/physical/si/base/mass.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/derived/volume.h>
#include <units/physical/si/area.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/density.h>
#include <units/physical/si/force.h>
#include <units/physical/si/mass.h>
#include <units/physical/si/time.h>
#include <units/physical/si/volume.h>
#include <units/format.h>
#include <cassert>
#include <iostream>

View File

@ -20,10 +20,10 @@
physical_quantities
*/
#include <units/physical/si/derived/capacitance.h>
#include <units/physical/si/derived/resistance.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/derived/voltage.h>
#include <units/physical/si/capacitance.h>
#include <units/physical/si/resistance.h>
#include <units/physical/si/time.h>
#include <units/physical/si/voltage.h>
#include <units/math.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -16,15 +16,15 @@
*/
#include <units/format.h>
#include <units/physical/si/derived/area.h>
#include <units/physical/si/iau/base/length.h>
#include <units/physical/si/imperial/base/length.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/typographic/base/length.h>
#include <units/physical/si/us/base/length.h>
#include <units/physical/si/derived/volume.h>
#include <units/physical/si/area.h>
#include <units/physical/si/iau/length.h>
#include <units/physical/si/imperial/length.h>
#include <units/physical/si/international/length.h>
#include <units/physical/si/length.h>
#include <units/physical/si/time.h>
#include <units/physical/si/typographic/length.h>
#include <units/physical/si/us/length.h>
#include <units/physical/si/volume.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -15,7 +15,7 @@
along with this program. If not, see http://www.gnu.org/licenses./
*/
#include <units/physical/si/base/length.h>
#include <units/physical/si/length.h>
#include <units/format.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -22,9 +22,9 @@
#include <units/format.h>
#include <units/generic/angle.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/derived/energy.h>
#include <units/physical/si/derived/torque.h>
#include <units/physical/si/length.h>
#include <units/physical/si/energy.h>
#include <units/physical/si/torque.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -22,17 +22,17 @@
#include <units/concepts.h>
#include <units/format.h>
#include <units/physical/si/fps/derived/density.h>
#include <units/physical/si/fps/base/length.h>
#include <units/physical/si/fps/base/mass.h>
#include <units/physical/si/fps/derived/power.h>
#include <units/physical/si/fps/derived/speed.h>
#include <units/physical/si/fps/derived/volume.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/mass.h>
#include <units/physical/si/derived/power.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/derived/volume.h>
#include <units/physical/si/fps/density.h>
#include <units/physical/si/fps/length.h>
#include <units/physical/si/fps/mass.h>
#include <units/physical/si/fps/power.h>
#include <units/physical/si/fps/speed.h>
#include <units/physical/si/fps/volume.h>
#include <units/physical/si/length.h>
#include <units/physical/si/mass.h>
#include <units/physical/si/power.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/volume.h>
#include <units/quantity.h>
#include <iostream>

View File

@ -23,7 +23,7 @@
#pragma once
#include <units/format.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/length.h>
#include <units/quantity_kind.h>
#include <compare>

View File

@ -25,8 +25,8 @@
#include "geographic.h"
#include <units/format.h>
#include <units/math.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/international/length.h>
#include <units/quantity_point_kind.h>
// An example of a really simplified tactical glide computer

View File

@ -21,8 +21,8 @@
// SOFTWARE.
#include <units/format.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/speed.h>
#include <units/physical/si/speed.h>
#include <units/quantity_io.h>
#include <iostream>

View File

@ -1,5 +1,5 @@
#include <units/format.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/speed.h>
#include <iostream>
#include <array>

View File

@ -20,9 +20,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/derived/force.h>
#include <units/physical/si/derived/energy.h>
#include <units/physical/si/speed.h>
#include <units/physical/si/force.h>
#include <units/physical/si/energy.h>
#include <units/format.h>
#include <units/quantity_io.h>
#include <linear_algebra.hpp>

View File

@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/derived/acceleration.h>
#include <units/physical/si/acceleration.h>
#include <units/quantity_io.h>
#include <cmath>
#include <compare>

Some files were not shown because too many files have changed in this diff Show More