CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
InputChunk Struct Reference

#include <FedRawDataInputSource.h>

Public Member Functions

 InputChunk (unsigned int index, uint32_t size)
 
void reset (unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
 
 ~InputChunk ()
 

Public Attributes

unsigned char * buf_
 
unsigned int fileIndex_
 
unsigned int index_
 
InputChunknext_ = 0
 
unsigned int offset_
 
std::atomic< bool > readComplete_
 
uint32_t size_
 
uint32_t usedSize_ = 0
 

Detailed Description

Definition at line 169 of file FedRawDataInputSource.h.

Constructor & Destructor Documentation

InputChunk::InputChunk ( unsigned int  index,
uint32_t  size 
)
inline

Definition at line 179 of file FedRawDataInputSource.h.

References buf_, reset(), and size_.

179  : size_(size),index_(index) {
180  buf_ = new unsigned char[size_];
181  reset(0,0,0);
182  }
unsigned int index_
void reset(unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
unsigned char * buf_
tuple size
Write out results.
InputChunk::~InputChunk ( )
inline

Definition at line 190 of file FedRawDataInputSource.h.

References buf_.

190 {delete[] buf_;}
unsigned char * buf_

Member Function Documentation

void InputChunk::reset ( unsigned int  newOffset,
unsigned int  toRead,
unsigned int  fileIndex 
)
inline

Definition at line 183 of file FedRawDataInputSource.h.

References fileIndex_, offset_, readComplete_, and usedSize_.

Referenced by InputChunk(), and FedRawDataInputSource::readSupervisor().

183  {
184  offset_=newOffset;
185  usedSize_=toRead;
186  fileIndex_=fileIndex;
187  readComplete_=false;
188  }
unsigned int offset_
unsigned int fileIndex_
std::atomic< bool > readComplete_

Member Data Documentation

unsigned char* InputChunk::buf_
unsigned int InputChunk::fileIndex_

Definition at line 176 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().

unsigned int InputChunk::index_

Definition at line 174 of file FedRawDataInputSource.h.

InputChunk* InputChunk::next_ = 0

Definition at line 171 of file FedRawDataInputSource.h.

unsigned int InputChunk::offset_

Definition at line 175 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().

std::atomic<bool> InputChunk::readComplete_
uint32_t InputChunk::size_

Definition at line 172 of file FedRawDataInputSource.h.

Referenced by InputChunk().

uint32_t InputChunk::usedSize_ = 0

Definition at line 173 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().