
#include <bit/float.h>

Public Types | |
| typedef BitPointer< Float< F > > | pointer |
Public Member Functions | |
| Float (F v=0, ByteOrder bo=BYTEORDER_HOST) | |
| Float (ByteOrder bo) | |
| Float (const Data d, ByteOrder databo=BYTEORDER_HOST, ByteOrder bo=BYTEORDER_HOST) | |
| Constructor that sets the value from a data object. | |
| ~Float () | |
| virtual FloatingPoint::pointer | clone () const |
| operator F () const | |
| bool | operator< (F f) const |
| bool | operator<= (F f) const |
| bool | operator== (F f) const |
| bool | operator!= (F f) const |
| bool | operator>= (F f) const |
| bool | operator> (F f) const |
| Float< F > & | operator= (F f) |
| Float< F > | operator+ (F f) const |
| Float< F > | operator- (F f) const |
| Float< F > | operator* (F f) const |
| Float< F > | operator/ (F f) const |
| Float< F > & | operator+= (F f) |
| Float< F > & | operator-= (F f) |
| Float< F > & | operator*= (F f) |
| Float< F > & | operator/= (F f) |
| virtual void | set_value (const Data d) |
| Sets the value from a data object by directly copying; byte ordering of the data is not considered. | |
| virtual void | set_value (const void *mem, size_t size) |
| Sets the value from a data object by directly copying; byte ordering of the data is not considered. | |
| virtual void | set_value (const Data d, ByteOrder databo) |
| Sets the value from a data object. | |
| virtual Data | as_data () const |
| virtual size_t | size () const |
| virtual const void * | voidptr () const |
| virtual const std::type_info & | int_type () |
| F | host () const |
| F | network () const |
| F | big_endian () const |
| F | little_endian () const |
Static Public Member Functions | |
| static pointer | create (F v=0, ByteOrder bo=BYTEORDER_HOST) |
| static pointer | create (ByteOrder bo) |
| static pointer | create (const Data d, ByteOrder databo=BYTEORDER_HOST, ByteOrder bo=BYTEORDER_HOST) |
Public Attributes | |
| F | value |
Protected Member Functions | |
| void | convert_value_from_type_to_host () |
| void | convert_value_from_host_to_type () |
| typedef BitPointer< Float<F> > bit::Float< F >::pointer |
Reimplemented from bit::FloatingPoint.
| bit::Float< F >::Float | ( | F | v = 0, |
|
| ByteOrder | bo = BYTEORDER_HOST | |||
| ) | [inline] |
| bit::Float< F >::Float | ( | ByteOrder | bo | ) | [inline] |
| bit::Float< F >::Float | ( | const Data | d, | |
| ByteOrder | databo = BYTEORDER_HOST, |
|||
| ByteOrder | bo = BYTEORDER_HOST | |||
| ) | [inline] |
Constructor that sets the value from a data object.
| d | The data object. The first n bytes are used to set the value. | |
| databo | The byte order of the data object | |
| bo | The byte order of this integer. |
References bit::Float< F >::set_value().
| bit::Float< F >::~Float | ( | ) | [inline] |
| static pointer bit::Float< F >::create | ( | F | v = 0, |
|
| ByteOrder | bo = BYTEORDER_HOST | |||
| ) | [inline, static] |
Referenced by bit::Float< F >::clone().
| static pointer bit::Float< F >::create | ( | ByteOrder | bo | ) | [inline, static] |
| static pointer bit::Float< F >::create | ( | const Data | d, | |
| ByteOrder | databo = BYTEORDER_HOST, |
|||
| ByteOrder | bo = BYTEORDER_HOST | |||
| ) | [inline, static] |
| virtual FloatingPoint::pointer bit::Float< F >::clone | ( | ) | const [inline, virtual] |
Implements bit::FloatingPoint.
References bit::FloatingPoint::byte_order, bit::Float< F >::create(), and bit::Float< F >::value.
| bit::Float< F >::operator F | ( | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator< | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator<= | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator== | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator!= | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator>= | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| bool bit::Float< F >::operator> | ( | F | f | ) | const [inline] |
References bit::Float< F >::host().
| Float<F>& bit::Float< F >::operator= | ( | F | f | ) | [inline] |
References bit::Float< F >::convert_value_from_host_to_type(), and bit::Float< F >::value.
| Float<F> bit::Float< F >::operator+ | ( | F | f | ) | const [inline] |
| Float<F> bit::Float< F >::operator- | ( | F | f | ) | const [inline] |
| Float<F> bit::Float< F >::operator* | ( | F | f | ) | const [inline] |
| Float<F> bit::Float< F >::operator/ | ( | F | f | ) | const [inline] |
| Float<F>& bit::Float< F >::operator+= | ( | F | f | ) | [inline] |
| Float<F>& bit::Float< F >::operator-= | ( | F | f | ) | [inline] |
| Float<F>& bit::Float< F >::operator*= | ( | F | f | ) | [inline] |
| Float<F>& bit::Float< F >::operator/= | ( | F | f | ) | [inline] |
| virtual void bit::Float< F >::set_value | ( | const Data | d | ) | [inline, virtual] |
Sets the value from a data object by directly copying; byte ordering of the data is not considered.
| d | The data object. The first n bytes are used to set the value. |
Implements bit::FloatingPoint.
References bit::Data::data(), bit::Data::size(), and bit::Float< F >::value.
Referenced by bit::Float< F >::Float().
| virtual void bit::Float< F >::set_value | ( | const void * | mem, | |
| size_t | size | |||
| ) | [inline, virtual] |
Sets the value from a data object by directly copying; byte ordering of the data is not considered.
Implements bit::FloatingPoint.
References bit::Float< F >::value.
| virtual void bit::Float< F >::set_value | ( | const Data | d, | |
| ByteOrder | databo | |||
| ) | [inline, virtual] |
Sets the value from a data object.
| d | The data object. The first n bytes are used to set the value. | |
| databo | The byte order of the data object |
Implements bit::FloatingPoint.
References bit::be_to_host(), bit::FloatingPoint::byte_order, bit::BYTEORDER_BIG_ENDIAN, bit::BYTEORDER_HOST, bit::BYTEORDER_LITTLE_ENDIAN, bit::BYTEORDER_NETWORK, bit::Data::data(), bit::host_to_le(), bit::host_to_net(), bit::le_to_host(), bit::le_to_net(), bit::net_to_le(), bit::Data::size(), and bit::Float< F >::value.
| virtual Data bit::Float< F >::as_data | ( | ) | const [inline, virtual] |
| virtual size_t bit::Float< F >::size | ( | ) | const [inline, virtual] |
Implements bit::FloatingPoint.
| virtual const void* bit::Float< F >::voidptr | ( | ) | const [inline, virtual] |
| virtual const std::type_info& bit::Float< F >::int_type | ( | ) | [inline, virtual] |
Implements bit::FloatingPoint.
| F bit::Float< F >::host | ( | ) | const [inline] |
References bit::FloatingPoint::byte_order, bit::BYTEORDER_BIG_ENDIAN, bit::BYTEORDER_HOST, bit::BYTEORDER_LITTLE_ENDIAN, bit::BYTEORDER_NETWORK, bit::le_to_host(), bit::net_to_host(), and bit::Float< F >::value.
Referenced by bit::Float< F >::operator F(), bit::FloatingPoint::operator T(), bit::Float< F >::operator!=(), bit::Float< F >::operator<(), bit::Float< F >::operator<=(), bit::Float< F >::operator==(), bit::Float< F >::operator>(), and bit::Float< F >::operator>=().
| F bit::Float< F >::network | ( | ) | const [inline] |
| F bit::Float< F >::big_endian | ( | ) | const [inline] |
References bit::Float< F >::network().
| F bit::Float< F >::little_endian | ( | ) | const [inline] |
| void bit::Float< F >::convert_value_from_type_to_host | ( | ) | [inline, protected] |
References bit::FloatingPoint::byte_order, bit::BYTEORDER_BIG_ENDIAN, bit::BYTEORDER_HOST, bit::BYTEORDER_LITTLE_ENDIAN, bit::BYTEORDER_NETWORK, bit::le_to_host(), bit::net_to_host(), and bit::Float< F >::value.
Referenced by bit::Float< F >::operator*(), bit::Float< F >::operator*=(), bit::Float< F >::operator+(), bit::Float< F >::operator+=(), bit::Float< F >::operator-(), bit::Float< F >::operator-=(), bit::Float< F >::operator/(), and bit::Float< F >::operator/=().
| void bit::Float< F >::convert_value_from_host_to_type | ( | ) | [inline, protected] |
References bit::FloatingPoint::byte_order, bit::BYTEORDER_BIG_ENDIAN, bit::BYTEORDER_HOST, bit::BYTEORDER_LITTLE_ENDIAN, bit::BYTEORDER_NETWORK, bit::host_to_le(), bit::host_to_net(), and bit::Float< F >::value.
Referenced by bit::Float< F >::operator*(), bit::Float< F >::operator*=(), bit::Float< F >::operator+(), bit::Float< F >::operator+=(), bit::Float< F >::operator-(), bit::Float< F >::operator-=(), bit::Float< F >::operator/(), bit::Float< F >::operator/=(), and bit::Float< F >::operator=().
| F bit::Float< F >::value |
Referenced by bit::Float< F >::as_data(), bit::Float< F >::clone(), bit::Float< F >::convert_value_from_host_to_type(), bit::Float< F >::convert_value_from_type_to_host(), bit::Float< F >::host(), bit::Float< F >::little_endian(), bit::Float< F >::network(), bit::Float< F >::operator*(), bit::Float< F >::operator*=(), bit::Float< F >::operator+(), bit::Float< F >::operator+=(), bit::Float< F >::operator-(), bit::Float< F >::operator-=(), bit::Float< F >::operator/(), bit::Float< F >::operator/=(), bit::Float< F >::operator=(), bit::Float< F >::set_value(), and bit::Float< F >::voidptr().
1.5.6