Skip to content

Commit 0d28f02

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 0d28f02

File tree

11 files changed

+320
-0
lines changed

11 files changed

+320
-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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_ENERGY_DENSITY_HPP
12+
#define BOOST_UNITS_SI_ENERGY_DENSITY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/energy_density.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<energy_density_dimension,si::system> energy_density;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_ENERGY_DENSITY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_HEAT_CAPACITY_HPP
12+
#define BOOST_UNITS_SI_HEAT_CAPACITY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/heat_capacity.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<heat_capacity_dimension,si::system> heat_capacity;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_HEAT_CAPACITY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_LUMINANCE_HPP
12+
#define BOOST_UNITS_SI_LUMINANCE_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/luminance.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<luminance_dimension,si::system> luminance;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_LUMINANCE_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_MOLAR_ENERGY_HPP
12+
#define BOOST_UNITS_SI_MOLAR_ENERGY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/molar_energy.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<molar_energy_dimension,si::system> molar_energy;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_MOLAR_ENERGY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
12+
#define BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/molar_heat_capacity.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<molar_heat_capacity_dimension,si::system> molar_heat_capacity;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_MOLAR_HEAT_CAPACITY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
12+
#define BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/specific_energy.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<specific_energy_dimension,si::system> specific_energy;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_SPECIFIC_ENERGY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
12+
#define BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/specific_heat_capacity.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<specific_heat_capacity_dimension,si::system> specific_heat_capacity;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_SPECIFIC_HEAT_CAPACITY_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
12+
#define BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/specific_volume.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<specific_volume_dimension,si::system> specific_volume;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_SPECIFIC_VOLUME_HPP
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_SI_STRESS_HPP
12+
#define BOOST_UNITS_SI_STRESS_HPP
13+
14+
#include <boost/units/systems/si/base.hpp>
15+
#include <boost/units/physical_dimensions/stress.hpp>
16+
17+
namespace boost {
18+
19+
namespace units {
20+
21+
namespace si {
22+
23+
typedef unit<stress_dimension,si::system> stress;
24+
25+
} // namespace si
26+
27+
} // namespace units
28+
29+
} // namespace boost
30+
31+
#endif // BOOST_UNITS_SI_STRESS_HPP

0 commit comments

Comments
 (0)