Project
Loading...
Searching...
No Matches
o2::ctf::Block< W > Struct Template Reference

binary blob for single entropy-compressed column: metadata + (optional) dictionary and data buffer + their sizes More...

#include <EncodedBlocks.h>

Public Member Functions

const W * getDict () const
 
const W * getData () const
 
const W * getDataPointer () const
 
const W * getLiterals () const
 
const W * getEndOfBlock () const
 
W * getCreatePayload ()
 
W * getCreateDict ()
 
W * getCreateData ()
 
W * getCreateLiterals ()
 
W * getEndOfBlock ()
 
auto getOffsDict ()
 
auto getOffsData ()
 
auto getOffsLiterals ()
 
void setNDict (int _ndict)
 
void setNData (int _ndata)
 
void setNLiterals (int _nliterals)
 
int getNDict () const
 
int getNData () const
 
int getNLiterals () const
 
int getNStored () const
 
 ~Block ()
 
void clear ()
 clear itself
 
void storeDict (int _ndict, const W *_dict)
 
void storeData (int _ndata, const W *_data)
 
void storeLiterals (int _nliterals, const W *_literals)
 
void realignBlock ()
 
void store (int _ndict, int _ndata, int _nliterals, const W *_dict, const W *_data, const W *_literals)
 store binary blob data (buffer filled from head to tail)
 
void relocate (const char *oldHead, char *newHeadData, char *newHeadRegistry)
 relocate to different head position
 
 ClassDefNV (Block, 1)
 

Static Public Member Functions

static size_t estimateSize (int n)
 estimate free size needed to add new block
 

Public Attributes

Registryregistry = nullptr
 
int nDict = 0
 non-persistent info for in-memory ops
 
int nData = 0
 
int nLiterals = 0
 
int nStored = 0
 
W * payload = nullptr
 

Detailed Description

template<typename W = uint32_t>
struct o2::ctf::Block< W >

binary blob for single entropy-compressed column: metadata + (optional) dictionary and data buffer + their sizes

Definition at line 152 of file EncodedBlocks.h.

Constructor & Destructor Documentation

◆ ~Block()

template<typename W = uint32_t>
o2::ctf::Block< W >::~Block ( )
inline

Definition at line 208 of file EncodedBlocks.h.

Member Function Documentation

◆ ClassDefNV()

template<typename W = uint32_t>
o2::ctf::Block< W >::ClassDefNV ( Block< W >  ,
 
)

◆ clear()

template<typename W = uint32_t>
void o2::ctf::Block< W >::clear ( )
inline

clear itself

Definition at line 216 of file EncodedBlocks.h.

◆ estimateSize()

template<typename W = uint32_t>
static size_t o2::ctf::Block< W >::estimateSize ( int  n)
inlinestatic

estimate free size needed to add new block

Definition at line 226 of file EncodedBlocks.h.

◆ getCreateData()

template<typename W = uint32_t>
W * o2::ctf::Block< W >::getCreateData ( )
inline

Definition at line 177 of file EncodedBlocks.h.

◆ getCreateDict()

template<typename W = uint32_t>
W * o2::ctf::Block< W >::getCreateDict ( )
inline

Definition at line 176 of file EncodedBlocks.h.

◆ getCreateLiterals()

template<typename W = uint32_t>
W * o2::ctf::Block< W >::getCreateLiterals ( )
inline

Definition at line 178 of file EncodedBlocks.h.

◆ getCreatePayload()

template<typename W = uint32_t>
W * o2::ctf::Block< W >::getCreatePayload ( )
inline

Definition at line 175 of file EncodedBlocks.h.

◆ getData()

template<typename W = uint32_t>
const W * o2::ctf::Block< W >::getData ( ) const
inline

Definition at line 162 of file EncodedBlocks.h.

◆ getDataPointer()

template<typename W = uint32_t>
const W * o2::ctf::Block< W >::getDataPointer ( ) const
inline

Definition at line 163 of file EncodedBlocks.h.

◆ getDict()

template<typename W = uint32_t>
const W * o2::ctf::Block< W >::getDict ( ) const
inline

Definition at line 161 of file EncodedBlocks.h.

◆ getEndOfBlock() [1/2]

template<typename W = uint32_t>
W * o2::ctf::Block< W >::getEndOfBlock ( )
inline

Definition at line 179 of file EncodedBlocks.h.

◆ getEndOfBlock() [2/2]

template<typename W = uint32_t>
const W * o2::ctf::Block< W >::getEndOfBlock ( ) const
inline

Definition at line 165 of file EncodedBlocks.h.

◆ getLiterals()

template<typename W = uint32_t>
const W * o2::ctf::Block< W >::getLiterals ( ) const
inline

Definition at line 164 of file EncodedBlocks.h.

◆ getNData()

template<typename W = uint32_t>
int o2::ctf::Block< W >::getNData ( ) const
inline

Definition at line 204 of file EncodedBlocks.h.

◆ getNDict()

template<typename W = uint32_t>
int o2::ctf::Block< W >::getNDict ( ) const
inline

Definition at line 203 of file EncodedBlocks.h.

◆ getNLiterals()

template<typename W = uint32_t>
int o2::ctf::Block< W >::getNLiterals ( ) const
inline

Definition at line 205 of file EncodedBlocks.h.

◆ getNStored()

template<typename W = uint32_t>
int o2::ctf::Block< W >::getNStored ( ) const
inline

Definition at line 206 of file EncodedBlocks.h.

◆ getOffsData()

template<typename W = uint32_t>
auto o2::ctf::Block< W >::getOffsData ( )
inline

Definition at line 182 of file EncodedBlocks.h.

◆ getOffsDict()

template<typename W = uint32_t>
auto o2::ctf::Block< W >::getOffsDict ( )
inline

Definition at line 181 of file EncodedBlocks.h.

◆ getOffsLiterals()

template<typename W = uint32_t>
auto o2::ctf::Block< W >::getOffsLiterals ( )
inline

Definition at line 183 of file EncodedBlocks.h.

◆ realignBlock()

template<typename W = uint32_t>
void o2::ctf::Block< W >::realignBlock ( )
inline

Definition at line 285 of file EncodedBlocks.h.

◆ relocate()

template<typename W = uint32_t>
void o2::ctf::Block< W >::relocate ( const char oldHead,
char newHeadData,
char newHeadRegistry 
)
inline

relocate to different head position

Definition at line 322 of file EncodedBlocks.h.

◆ setNData()

template<typename W = uint32_t>
void o2::ctf::Block< W >::setNData ( int  _ndata)
inline

Definition at line 191 of file EncodedBlocks.h.

◆ setNDict()

template<typename W = uint32_t>
void o2::ctf::Block< W >::setNDict ( int  _ndict)
inline

Definition at line 185 of file EncodedBlocks.h.

◆ setNLiterals()

template<typename W = uint32_t>
void o2::ctf::Block< W >::setNLiterals ( int  _nliterals)
inline

Definition at line 197 of file EncodedBlocks.h.

◆ store()

template<typename W = uint32_t>
void o2::ctf::Block< W >::store ( int  _ndict,
int  _ndata,
int  _nliterals,
const W *  _dict,
const W *  _data,
const W *  _literals 
)
inline

store binary blob data (buffer filled from head to tail)

Definition at line 294 of file EncodedBlocks.h.

◆ storeData()

template<typename W = uint32_t>
void o2::ctf::Block< W >::storeData ( int  _ndata,
const W *  _data 
)
inline

Definition at line 249 of file EncodedBlocks.h.

◆ storeDict()

template<typename W = uint32_t>
void o2::ctf::Block< W >::storeDict ( int  _ndict,
const W *  _dict 
)
inline

Definition at line 232 of file EncodedBlocks.h.

◆ storeLiterals()

template<typename W = uint32_t>
void o2::ctf::Block< W >::storeLiterals ( int  _nliterals,
const W *  _literals 
)
inline

Definition at line 267 of file EncodedBlocks.h.

Member Data Documentation

◆ nData

template<typename W = uint32_t>
int o2::ctf::Block< W >::nData = 0

Definition at line 156 of file EncodedBlocks.h.

◆ nDict

template<typename W = uint32_t>
int o2::ctf::Block< W >::nDict = 0

non-persistent info for in-memory ops

Definition at line 155 of file EncodedBlocks.h.

◆ nLiterals

template<typename W = uint32_t>
int o2::ctf::Block< W >::nLiterals = 0

Definition at line 157 of file EncodedBlocks.h.

◆ nStored

template<typename W = uint32_t>
int o2::ctf::Block< W >::nStored = 0

Definition at line 158 of file EncodedBlocks.h.

◆ payload

template<typename W = uint32_t>
W* o2::ctf::Block< W >::payload = nullptr

Definition at line 159 of file EncodedBlocks.h.

◆ registry

template<typename W = uint32_t>
Registry* o2::ctf::Block< W >::registry = nullptr

Definition at line 154 of file EncodedBlocks.h.


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