![]() |
ATLAS Offline Software
|
#include <BitSpec.h>
Classes | |
| struct | Params |
Public Types | |
| using | value_type = Value |
| using | bits_type = Bitset<width,Clamped,Signed> |
| using | encoder_type = std::function<bits_type(Value)> |
| using | decoder_type = std::function<std::pair<Value,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, Value scale=0, Value offset=0, double centre=0.5, bool lower_inc=true) |
| constexpr | BitField (const Params &p) |
| 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 |
| template<typename... Args> | |
| bits_type | encode (const std::variant< Args... > &value) const |
| template<typename... Args> | |
| std::pair< std::int64_t, std::pair< bool, bool > > | encodeAndCheckBoundary (const std::variant< Args... > &value) const |
| bits_type | bits (const SG::AuxElement &obj) const |
| std::pair< Value, Value > | range (bits_type bits) 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 |
Static Public Member Functions | |
| static std::int64_t | code (bits_type bits) |
Public Attributes | |
| AuxSpec | auxspec |
| std::string_view | name |
| std::string_view | description |
Static Public Attributes | |
| static constexpr unsigned | lo = Lo |
| static constexpr unsigned | hi = Hi |
| static constexpr unsigned | width = Hi - Lo + 1 |
| static constexpr auto | maxCode = bits_type::max |
| static constexpr auto | minCode = bits_type::min |
Private Attributes | |
| encoder_type | m_encoder |
| decoder_type | m_decoder |
| Value | m_valueoffset {} |
| SG::ConstAccessor< AuxValue > | m_acc |
| SG::Accessor< AuxValue > | m_wacc |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::bits_type = Bitset<width,Clamped,Signed> |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::encoder_type = std::function<bits_type(Value)> |
| using GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::value_type = Value |
|
inlineconstexpr |
Definition at line 234 of file BitSpec.h.
|
inlineconstexpr |
Definition at line 294 of file BitSpec.h.
|
inline |
|
inlinestatic |
|
inline |
Definition at line 446 of file BitSpec.h.
|
inline |
Definition at line 487 of file BitSpec.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 330 of file BitSpec.h.
|
inline |
|
inline |
| AuxSpec GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::auxspec |
| std::string_view GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::description |
|
staticconstexpr |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexpr |
|
staticconstexpr |
| std::string_view GlobalSim::BitField< Lo, Hi, AuxValue, Value, Signed, Clamped >::name |
|
staticconstexpr |