#include <source/ariba/utility/serialization/Data.hpp>
Public Member Functions | |
finline | DataManipulator (DataModel &_bits, size_t _index) |
template<typename X> | |
finline | operator X () const |
template<typename X> | |
finline DataManipulator & | operator= (X value) |
template<typename X> | |
finline void | set (X value, size_t length=sizeof(X)*8, if_uint(X)) |
template<typename X> | |
finline void | set (X value, size_t length=sizeof(X)*8, if_int(X)) |
template<typename X> | |
finline void | get (X &value, size_t length=sizeof(X)*8, if_uint(X)) const |
template<typename X> | |
finline void | get (X &value, size_t length=sizeof(X)*8, if_int(X)) const |
finline void | get (bool &value) const |
Private Attributes | |
DataModel | bits |
size_t | index |
Definition at line 83 of file Data.hpp.
finline DataTpl< T, DataModel >::DataManipulator::DataManipulator | ( | DataModel & | _bits, | |
size_t | _index | |||
) | [inline] |
finline DataTpl< T, DataModel >::DataManipulator::operator X | ( | ) | const [inline] |
Definition at line 94 of file Data.hpp.
References DataTpl< T, DataModel >::DataManipulator::bits, and DataTpl< T, DataModel >::DataManipulator::index.
finline DataManipulator& DataTpl< T, DataModel >::DataManipulator::operator= | ( | X | value | ) | [inline] |
Definition at line 99 of file Data.hpp.
References DataTpl< T, DataModel >::DataManipulator::bits, bitset(), and DataTpl< T, DataModel >::DataManipulator::index.
finline void DataTpl< T, DataModel >::DataManipulator::set | ( | X | value, | |
size_t | length = sizeof(X) * 8 , |
|||
if_uint(X) | ||||
) | [inline] |
Definition at line 105 of file Data.hpp.
References bitcpy(), DataTpl< T, DataModel >::DataManipulator::bits, and DataTpl< T, DataModel >::DataManipulator::index.
finline void DataTpl< T, DataModel >::DataManipulator::set | ( | X | value, | |
size_t | length = sizeof(X) * 8 , |
|||
if_int(X) | ||||
) | [inline] |
finline void DataTpl< T, DataModel >::DataManipulator::get | ( | X & | value, | |
size_t | length = sizeof(X) * 8 , |
|||
if_uint(X) | ||||
) | const [inline] |
Definition at line 115 of file Data.hpp.
References DataTpl< T, DataModel >::DataManipulator::bits, and DataTpl< T, DataModel >::DataManipulator::index.
finline void DataTpl< T, DataModel >::DataManipulator::get | ( | X & | value, | |
size_t | length = sizeof(X) * 8 , |
|||
if_int(X) | ||||
) | const [inline] |
Definition at line 120 of file Data.hpp.
References DataTpl< T, DataModel >::DataManipulator::bits, and DataTpl< T, DataModel >::DataManipulator::index.
finline void DataTpl< T, DataModel >::DataManipulator::get | ( | bool & | value | ) | const [inline] |
Definition at line 124 of file Data.hpp.
References bitget(), DataTpl< T, DataModel >::DataManipulator::bits, and DataTpl< T, DataModel >::DataManipulator::index.
DataModel DataTpl< T, DataModel >::DataManipulator::bits [private] |
Definition at line 85 of file Data.hpp.
Referenced by DataTpl< T, DataModel >::DataManipulator::get(), DataTpl< T, DataModel >::DataManipulator::operator X(), DataTpl< T, DataModel >::DataManipulator::operator=(), and DataTpl< T, DataModel >::DataManipulator::set().
size_t DataTpl< T, DataModel >::DataManipulator::index [private] |
Definition at line 86 of file Data.hpp.
Referenced by DataTpl< T, DataModel >::DataManipulator::get(), DataTpl< T, DataModel >::DataManipulator::operator X(), DataTpl< T, DataModel >::DataManipulator::operator=(), and DataTpl< T, DataModel >::DataManipulator::set().