wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Toggle main menu visibility
Loading...
Searching...
No Matches
Quantity.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cmath>
4
#include <ostream>
5
#include <tuple>
6
#include <type_traits>
7
8
#include "
wuzp/core/Integer.hpp
"
9
#include "
wuzp/core/MatrixSize.hpp
"
10
#include "
wuzp/core/TypeMatrix.hpp
"
11
#include "
wuzp/core/Units.hpp
"
12
#include "
wuzp/core/ValuesWrapper.hpp
"
13
#include "
wuzp/core/concepts.hpp
"
14
#include "
wuzp/core/traits.hpp
"
15
16
namespace
wuzp
{
17
28
template
<
typename
ValueT_,
typename
UnitT_>
29
using
Quantity
=
Quantities<ValueT_, TypeMatrixImpl<MatrixSize<1, 1>
, std::tuple<UnitT_>>>;
30
31
// The aliases of quantities with a value type, e.g. QuantityD<UnitT_>, are defined by the value matrix backends, e.g.
32
// wuzp_eigen::QuantityD<UnitT_>, since they need a value matrix backend.
33
34
}
// namespace wuzp
Integer.hpp
MatrixSize.hpp
TypeMatrix.hpp
Units.hpp
ValuesWrapper.hpp
wuzp::Quantities
Container to store quantities.
Definition
Quantities.hpp:42
concepts.hpp
traits.hpp
wuzp
Definition
Absolute.hpp:15
wuzp::Quantity
Quantities< ValueT_, TypeMatrixImpl< MatrixSize< 1, 1 >, std::tuple< UnitT_ > > > Quantity
Container to store a single quantity.
Definition
Quantity.hpp:29
wuzp
include
wuzp
core
Quantity.hpp
Generated by
1.18.0