Skip to content

Commit

Permalink
Define _fwd.hh files for units
Browse files Browse the repository at this point in the history
  • Loading branch information
chiphogg committed Oct 28, 2024
1 parent 654f1d9 commit b45d4b2
Show file tree
Hide file tree
Showing 111 changed files with 1,373 additions and 0 deletions.
55 changes: 55 additions & 0 deletions au/code/au/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,60 +48,115 @@ header_only_library(
stdx/type_traits.hh
stdx/utility.hh
units/amperes.hh
units/amperes_fwd.hh
units/bars.hh
units/bars_fwd.hh
units/becquerel.hh
units/becquerel_fwd.hh
units/bits.hh
units/bits_fwd.hh
units/bytes.hh
units/bytes_fwd.hh
units/candelas.hh
units/candelas_fwd.hh
units/celsius.hh
units/celsius_fwd.hh
units/coulombs.hh
units/coulombs_fwd.hh
units/days.hh
units/days_fwd.hh
units/degrees.hh
units/degrees_fwd.hh
units/fahrenheit.hh
units/fahrenheit_fwd.hh
units/farads.hh
units/farads_fwd.hh
units/fathoms.hh
units/fathoms_fwd.hh
units/feet.hh
units/feet_fwd.hh
units/furlongs.hh
units/furlongs_fwd.hh
units/grams.hh
units/grams_fwd.hh
units/grays.hh
units/grays_fwd.hh
units/henries.hh
units/henries_fwd.hh
units/hertz.hh
units/hertz_fwd.hh
units/hours.hh
units/hours_fwd.hh
units/inches.hh
units/inches_fwd.hh
units/joules.hh
units/joules_fwd.hh
units/katals.hh
units/katals_fwd.hh
units/kelvins.hh
units/kelvins_fwd.hh
units/knots.hh
units/knots_fwd.hh
units/liters.hh
units/liters_fwd.hh
units/lumens.hh
units/lumens_fwd.hh
units/lux.hh
units/lux_fwd.hh
units/meters.hh
units/meters_fwd.hh
units/miles.hh
units/miles_fwd.hh
units/minutes.hh
units/minutes_fwd.hh
units/moles.hh
units/moles_fwd.hh
units/nautical_miles.hh
units/nautical_miles_fwd.hh
units/newtons.hh
units/newtons_fwd.hh
units/ohms.hh
units/ohms_fwd.hh
units/pascals.hh
units/pascals_fwd.hh
units/percent.hh
units/percent_fwd.hh
units/pounds_force.hh
units/pounds_force_fwd.hh
units/pounds_mass.hh
units/pounds_mass_fwd.hh
units/radians.hh
units/radians_fwd.hh
units/revolutions.hh
units/revolutions_fwd.hh
units/seconds.hh
units/seconds_fwd.hh
units/siemens.hh
units/siemens_fwd.hh
units/slugs.hh
units/slugs_fwd.hh
units/standard_gravity.hh
units/standard_gravity_fwd.hh
units/steradians.hh
units/steradians_fwd.hh
units/tesla.hh
units/tesla_fwd.hh
units/unos.hh
units/unos_fwd.hh
units/us_gallons.hh
units/us_gallons_fwd.hh
units/us_pints.hh
units/us_pints_fwd.hh
units/us_quarts.hh
units/us_quarts_fwd.hh
units/volts.hh
units/volts_fwd.hh
units/watts.hh
units/watts_fwd.hh
units/webers.hh
units/webers_fwd.hh
units/yards.hh
units/yards_fwd.hh
utility/factoring.hh
utility/string_constant.hh
utility/type_traits.hh
Expand Down
3 changes: 3 additions & 0 deletions au/code/au/units/amperes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/amperes_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"

Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/amperes_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Amperes;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/bars.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/bars_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/prefix.hh"
#include "au/quantity.hh"
#include "au/unit_symbol.hh"
Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/bars_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Bars;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/becquerel.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/becquerel_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"
#include "au/units/seconds.hh"
Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/becquerel_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Becquerel;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/bits.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/bits_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"

Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/bits_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Bits;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/bytes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/bytes_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"
#include "au/units/bits.hh"
Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/bytes_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Bytes;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/candelas.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/candelas_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"

Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/candelas_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Candelas;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/celsius.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/celsius_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/prefix.hh"
#include "au/quantity.hh"
#include "au/quantity_point.hh"
Expand Down
19 changes: 19 additions & 0 deletions au/code/au/units/celsius_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace au {

struct Celsius;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/coulombs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/coulombs_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"
#include "au/units/amperes.hh"
Expand Down
21 changes: 21 additions & 0 deletions au/code/au/units/coulombs_fwd.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Aurora Operations, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

namespace au {

struct Coulombs;

} // namespace au
3 changes: 3 additions & 0 deletions au/code/au/units/days.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#pragma once

#include "au/units/days_fwd.hh"
// Keep corresponding `_fwd.hh` file on top.

#include "au/quantity.hh"
#include "au/unit_symbol.hh"
#include "au/units/hours.hh"
Expand Down
Loading

0 comments on commit b45d4b2

Please sign in to comment.