Class Acts::TrackStateType

class TrackStateType

View type over a bitset stored in a 64 bit integer This view allows modifications.

Public Types

using raw_type = std::uint64_t

Public Functions

inline TrackStateType(raw_type &raw)

Constructor from a reference to the underlying value container.

Parameters

raw – the value container

inline operator ConstTrackStateType()

Automatically convert to const track state type.

inline TrackStateType &operator=(const TrackStateType &other)

Assign the value from another set of flags.

Parameters

other – the other set of flags to assign

Returns

this object

inline TrackStateType &operator=(const ConstTrackStateType &other)

Assign the value from another set of flags.

Parameters

other – the other set of flags to assign

Returns

this object

inline void reset(std::size_t pos)

Change the value of the bit at position at pos to false.

Parameters

pos – the position of the bit to change

inline void set(std::size_t pos, bool value = true)

Change the value of the bit at position pos to value.

Parameters
  • pos – the position of the bit to change

  • value – the value to change the bit to

inline bool test(std::size_t pos) const

Return if the bit at position pos is 1.

Parameters

pos – the bit position

Returns

if the bit at pos is one or not

Public Static Attributes

static constexpr std::size_t kRawBits = std::numeric_limits<std::make_unsigned<raw_type>::type>::digits