![]() |
ATLAS Offline Software
|
#include <BitSpec.h>
Public Types | |
| using | value_type = Value |
| using | bits_type = std::bitset<width> |
| using | encoder_type = bits_type (*)(Value) |
| using | decoder_type = Value (*)(bits_type) |
Public Member Functions | |
| constexpr | BitField (std::string_view name, std::string_view auxvar, std::string_view description, encoder_type encoder=nullptr, decoder_type decoder=nullptr) |
| constexpr std::string_view | name () const |
| constexpr std::string_view | description () const |
| Value | value (const SG::AuxElement &obj) const |
| Value | value (const SG::AuxElement &obj, bool truncate) const |
| AuxValue & | store (SG::AuxElement &obj, Value value) const |
| bits_type | encode (Value value) const |
| bits_type | bits (const SG::AuxElement &obj) const |
| Value | decode (bits_type bits) const |
| template<std::size_t N> | |
| bits_type | extract (const std::bitset< N > &packed) const |
| template<std::size_t N> | |
| Value | decodeFrom (const std::bitset< N > &packed) const |
| template<std::size_t N> | |
| void | decodeAndAssignFrom (const std::bitset< N > &packed, SG::AuxElement &obj) const |
| template<std::size_t N> | |
| void | pack (std::bitset< N > &result, const SG::AuxElement &obj) const |
Public Attributes | |
| AuxSpec | auxspec |
Static Public Attributes | |
| static constexpr unsigned | lo = Lo |
| static constexpr unsigned | hi = Hi |
| static constexpr unsigned | width = Hi - Lo + 1 |
Private Attributes | |
| std::string_view | m_name |
| std::string_view | m_description |
| encoder_type | m_encoder |
| decoder_type | m_decoder |
| SG::ConstAccessor< AuxValue > | m_acc |
| SG::Accessor< AuxValue > | m_wacc |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value >::bits_type = std::bitset<width> |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value >::decoder_type = Value (*)(bits_type) |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value >::encoder_type = bits_type (*)(Value) |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value >::value_type = Value |
|
inlineconstexpr |
Definition at line 147 of file BitSpec.h.
|
inline |
|
inline |
|
inline |
Definition at line 274 of file BitSpec.h.
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
Definition at line 196 of file BitSpec.h.
|
inline |
|
inline |
| AuxSpec GlobalSim::BitField< Lo, Hi, AuxValue, Value >::auxspec |
|
staticconstexpr |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexpr |