#include <scalar.hh>
Public Types | |
typedef Scalar< void > | category |
typedef T | enc |
Encoding associated type. | |
typedef T | equiv |
Equivalent associated type. | |
typedef E | exact_t |
Public Member Functions | |
scalar_ (const T &val) | |
Ctor. | |
scalar_ () | |
Ctor. | |
T | to_equiv () const |
Access to the scalar value. | |
Protected Attributes | |
T | val_ |
Definition at line 45 of file scalar.hh.
typedef Scalar<void> mln::value::Scalar< E >::category [inherited] |
Reimplemented from mln::Value< E >.
Reimplemented in mln::value::Floating< E >, mln::value::Integer< E >, mln::value::Floating< mln::value::float01 >, mln::value::Floating< mln::value::graylevel_f >, mln::value::Floating< mln::value::float01_< n > >, mln::value::Floating< mln::value::internal::gray_f >, mln::value::Floating< mln::value::float01_f >, mln::value::Integer< mln::value::int_s< n > >, mln::value::Integer< mln::value::int_u_sat< n > >, mln::value::Integer< mln::value::graylevel< n > >, mln::value::Integer< mln::util::object_id< edge_tag, unsigned > >, mln::value::Integer< mln::util::object_id< Tag, V > >, mln::value::Integer< mln::util::object_id< vertex_tag, unsigned > >, and mln::value::Integer< mln::value::int_u< n > >.
Definition at line 57 of file concept/scalar.hh.
typedef T mln::value::scalar_< T >::enc |
typedef T mln::value::scalar_< T >::equiv |
typedef E mln::Object< E >::exact_t [inherited] |
mln::value::scalar_< T >::scalar_ | ( | ) | [inline] |
mln::value::scalar_< T >::scalar_ | ( | const T & | val | ) | [inline, explicit] |
T mln::value::scalar_< T >::to_equiv | ( | ) | const [inline] |
Access to the scalar value.
Definition at line 121 of file scalar.hh.
References mln::value::scalar_< T >::val_.
Referenced by mln::value::operator*(), mln::metal::operator*(), mln::algebra::operator*(), mln::operator*(), mln::value::operator/(), mln::metal::operator/(), mln::algebra::operator/(), and mln::operator/().
T mln::value::scalar_< T >::val_ [protected] |