Skip to content

Commit b6845b1

Browse files
committed
add missing SI quantities
- energy_density - heat_capacity - luminance - molar_energy - molar_heat_capacity - specific_energy - specific_heat_capacity - specific_volume - stress - thermal_conductivity
1 parent d67f8e7 commit b6845b1

11 files changed

+310
-0
lines changed

include/boost/units/systems/si.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,25 @@
4040
#include <boost/units/systems/si/electric_charge.hpp>
4141
#include <boost/units/systems/si/electric_potential.hpp>
4242
#include <boost/units/systems/si/energy.hpp>
43+
#include <boost/units/systems/si/energy_density.hpp>
4344
#include <boost/units/systems/si/force.hpp>
4445
#include <boost/units/systems/si/frequency.hpp>
46+
#include <boost/units/systems/si/heat_capacity.hpp>
4547
#include <boost/units/systems/si/illuminance.hpp>
4648
#include <boost/units/systems/si/impedance.hpp>
4749
#include <boost/units/systems/si/inductance.hpp>
4850
#include <boost/units/systems/si/kinematic_viscosity.hpp>
4951
#include <boost/units/systems/si/length.hpp>
52+
#include <boost/units/systems/si/luminance.hpp>
5053
#include <boost/units/systems/si/luminous_flux.hpp>
5154
#include <boost/units/systems/si/luminous_intensity.hpp>
5255
#include <boost/units/systems/si/magnetic_field_intensity.hpp>
5356
#include <boost/units/systems/si/magnetic_flux.hpp>
5457
#include <boost/units/systems/si/magnetic_flux_density.hpp>
5558
#include <boost/units/systems/si/mass.hpp>
5659
#include <boost/units/systems/si/mass_density.hpp>
60+
#include <boost/units/systems/si/molar_energy.hpp>
61+
#include <boost/units/systems/si/molar_heat_capacity.hpp>
5762
#include <boost/units/systems/si/moment_of_inertia.hpp>
5863
#include <boost/units/systems/si/momentum.hpp>
5964
#include <boost/units/systems/si/permeability.hpp>
@@ -65,9 +70,14 @@
6570
#include <boost/units/systems/si/resistance.hpp>
6671
#include <boost/units/systems/si/resistivity.hpp>
6772
#include <boost/units/systems/si/solid_angle.hpp>
73+
#include <boost/units/systems/si/specific_energy.hpp>
74+
#include <boost/units/systems/si/specific_heat_capacity.hpp>
75+
#include <boost/units/systems/si/specific_volume.hpp>
76+
#include <boost/units/systems/si/stress.hpp>
6877
#include <boost/units/systems/si/surface_density.hpp>
6978
#include <boost/units/systems/si/surface_tension.hpp>
7079
#include <boost/units/systems/si/temperature.hpp>
80+
#include <boost/units/systems/si/thermal_conductivity.hpp>
7181
#include <boost/units/systems/si/time.hpp>
7282
#include <boost/units/systems/si/torque.hpp>
7383
#include <boost/units/systems/si/velocity.hpp>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_ENERGY_DENSITY_HPP
11+
#define BOOST_UNITS_SI_ENERGY_DENSITY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/energy_density.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<energy_density_dimension,si::system> energy_density;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_ENERGY_DENSITY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_HEAT_CAPACITY_HPP
11+
#define BOOST_UNITS_SI_HEAT_CAPACITY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/heat_capacity.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<heat_capacity_dimension,si::system> heat_capacity;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_HEAT_CAPACITY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_LUMINANCE_HPP
11+
#define BOOST_UNITS_SI_LUMINANCE_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/luminance.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<luminance_dimension,si::system> luminance;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_LUMINANCE_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_MOLAR_ENERGY_HPP
11+
#define BOOST_UNITS_SI_MOLAR_ENERGY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/molar_energy.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<molar_energy_dimension,si::system> molar_energy;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_MOLAR_ENERGY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
11+
#define BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/molar_heat_capacity.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<molar_heat_capacity_dimension,si::system> molar_heat_capacity;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
11+
#define BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/specific_energy.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<specific_energy_dimension,si::system> specific_energy;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
11+
#define BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/specific_heat_capacity.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<specific_heat_capacity_dimension,si::system> specific_heat_capacity;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
11+
#define BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/specific_volume.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<specific_volume_dimension,si::system> specific_volume;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_STRESS_HPP
11+
#define BOOST_UNITS_SI_STRESS_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/stress.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<stress_dimension,si::system> stress;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_STRESS_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2018 Eisuke Kawashima
5+
//
6+
// Distributed under the Boost Software License, Version 1.0. (See
7+
// accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#ifndef BOOST_UNITS_SI_THERMAL_CONDUCTIVITY_HPP
11+
#define BOOST_UNITS_SI_THERMAL_CONDUCTIVITY_HPP
12+
13+
#include <boost/units/systems/si/base.hpp>
14+
#include <boost/units/physical_dimensions/thermal_conductivity.hpp>
15+
16+
namespace boost {
17+
18+
namespace units {
19+
20+
namespace si {
21+
22+
typedef unit<thermal_conductivity_dimension,si::system> thermal_conductivity;
23+
24+
} // namespace si
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_SI_THERMAL_CONDUCTIVITY_HPP

0 commit comments

Comments
 (0)