Project
Loading...
Searching...
No Matches
o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType > Class Template Reference

Helper class to get value of specified type which holds the number used bits. More...

#include <BitstreamReader.h>

Public Types

using field_type = FieldType
 

Public Member Functions

 Bits ()
 
 Bits (ParentType *parent, FieldType &&data)
 
 Bits (Bits &&other)
 
 ~Bits ()
 
auto & operator= (Bits< FieldType, N, ParentType > &&other)
 
FieldType & operator* ()
 
void markUsed (size_t length)
 

Detailed Description

template<typename BufferType>
template<typename FieldType, size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
class o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >

Helper class to get value of specified type which holds the number used bits.

The class holds both the extracted value access via peek method and the number of used bits. The reader will be incremented when the object is destroyed. The number of bits can be adjusted by using markUsed method

Definition at line 161 of file BitstreamReader.h.

Member Typedef Documentation

◆ field_type

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
using o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::field_type = FieldType

Definition at line 164 of file BitstreamReader.h.

Constructor & Destructor Documentation

◆ Bits() [1/3]

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::Bits ( )
inline

Definition at line 166 of file BitstreamReader.h.

◆ Bits() [2/3]

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::Bits ( ParentType *  parent,
FieldType &&  data 
)
inline

Definition at line 170 of file BitstreamReader.h.

◆ Bits() [3/3]

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::Bits ( Bits< FieldType, N, ParentType > &&  other)
inline

Definition at line 174 of file BitstreamReader.h.

◆ ~Bits()

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::~Bits ( )
inline

Definition at line 181 of file BitstreamReader.h.

Member Function Documentation

◆ markUsed()

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
void o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::markUsed ( size_t  length)
inline

Definition at line 204 of file BitstreamReader.h.

◆ operator*()

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
FieldType & o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::operator* ( )
inline

Definition at line 199 of file BitstreamReader.h.

◆ operator=()

template<typename BufferType >
template<typename FieldType , size_t N = sizeof(FieldType) * 8, typename ParentType = self_type>
auto & o2::algorithm::BitstreamReader< BufferType >::Bits< FieldType, N, ParentType >::operator= ( Bits< FieldType, N, ParentType > &&  other)
inline

Definition at line 188 of file BitstreamReader.h.


The documentation for this class was generated from the following file: