#include <bit/integer.h>
Public Types | |
typedef BitPointer< Integer > | pointer |
Public Member Functions | |
Integer (ByteOrder bo=BYTEORDER_HOST) | |
virtual | ~Integer () |
virtual Data | as_data () const =0 |
virtual size_t | size () const =0 |
virtual const void * | voidptr () const =0 |
virtual pointer | clone () const =0 |
virtual void | set_value (const Data d)=0 |
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)=0 |
virtual void | set_value (const Data d, ByteOrder databo)=0 |
Sets the value from a data object. | |
template<typename T> | |
operator T () | |
template<typename T> | |
Integer & | operator= (T i) |
virtual const std::type_info & | int_type ()=0 |
Public Attributes | |
ByteOrder | byte_order |
typedef BitPointer<Integer> bit::Integer::pointer |
Reimplemented in bit::Int< I >.
bit::Integer::Integer | ( | ByteOrder | bo = BYTEORDER_HOST |
) | [inline] |
virtual bit::Integer::~Integer | ( | ) | [inline, virtual] |
virtual Data bit::Integer::as_data | ( | ) | const [pure virtual] |
Implemented in bit::Int< I >.
virtual size_t bit::Integer::size | ( | ) | const [pure virtual] |
virtual const void* bit::Integer::voidptr | ( | ) | const [pure virtual] |
Implemented in bit::Int< I >.
virtual pointer bit::Integer::clone | ( | ) | const [pure virtual] |
Implemented in bit::Int< I >.
virtual void bit::Integer::set_value | ( | const Data | d | ) | [pure 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. |
Implemented in bit::Int< I >.
virtual void bit::Integer::set_value | ( | const void * | mem, | |
size_t | size | |||
) | [pure virtual] |
Implemented in bit::Int< I >.
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 |
Implemented in bit::Int< I >.
bit::Integer::operator T | ( | ) | [inline] |
References bit::Int< I >::host(), int_type(), and size().
Integer & bit::Integer::operator= | ( | T | i | ) | [inline] |
References int_type(), and size().
virtual const std::type_info& bit::Integer::int_type | ( | ) | [pure virtual] |