template<int N>
class Eigen::internal::FixedInt< N >
This class embeds a compile-time integer N
.
It is similar to c++11 std::integral_constant<int,N> but with some additional features such as:
- implicit conversion to int
- arithmetic and some bitwise operators: -, +, *, /, %, &, |
- c++98/14 compatibility with fix<N> and fix<N>() syntax to define integral constants.
It is strongly discouraged to directly deal with this class FixedInt. Instances are expected to be created by the user using Eigen::fix<N> or Eigen::fix<N>().
T type
Definition: IntegralConstant.h:184
where T can a FixedInt<N>, a pointer to function FixedInt<N> (*)(), or numerous other integer-like representations. DynamicKey
is either Dynamic (default) or DynamicIndex and used to identify true compile-time values.
For convenience, you can extract the compile-time value N
in a generic way using the following helper:
static const int value
Definition: IntegralConstant.h:156
that will give you N
if T equals FixedInt<N> or FixedInt<N> (*)(), and DefaultVal
if T does not embed any compile-time value (e.g., T==int).
- See also
- fix<N>, class VariableAndFixedInt