| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::DaqBlock Class Reference

Block of DAQ data. More...

#include <DaqBlock.h>

List of all members.


Public Types

typedef std::vector< unsigned
int > 
RawData
 Container for DAQ bytes.

Public Member Functions

 DaqBlock ()
 Default Constructor.
 DaqBlock (const DaqBlock &rh)
 Copy Constructor.
DaqBlockoperator= (const DaqBlock &rh)
 Assignment operator.
virtual ~DaqBlock ()
 destructor
unsigned int size () const
 Returns the number of bytes in this block.
std::ostream & fillStream (std::ostream &s) const
 Print the DAQ Block.
const RawDatabytes () const
 Retrieve const The bytes that are contained in this block of data.
RawDatabytes ()
 Retrieve The bytes that are contained in this block of data.
void setBytes (RawData *value)
 Update The bytes that are contained in this block of data.

Static Public Member Functions

static void * operator new (size_t size)
 operator new
static void * operator new (size_t size, void *pObj)
 placement operator new it is needed by libstdc++ 3.2.3 (e.g.
static void operator delete (void *p)
 operator delete
static void operator delete (void *p, void *pObj)
 placement operator delete not sure if really needed, but it does not harm

Private Attributes

RawDatam_bytes
 The bytes that are contained in this block of data.

Detailed Description

Block of DAQ data.

Author:
sjpatton@lbl.gov created Mon Apr 11 03:43:22 2011

Definition at line 39 of file DaqBlock.h.


Member Typedef Documentation

typedef std::vector<unsigned int> DayaBay::DaqBlock::RawData

Container for DAQ bytes.

Definition at line 44 of file DaqBlock.h.


Constructor & Destructor Documentation

DayaBay::DaqBlock::DaqBlock (  )  [inline]

Default Constructor.

Definition at line 47 of file DaqBlock.h.

00047 : m_bytes(0) {}

DayaBay::DaqBlock::DaqBlock ( const DaqBlock rh  )  [inline]

Copy Constructor.

Definition at line 130 of file DaqBlock.h.

00130                                                            : 
00131    m_bytes( rh.m_bytes )
00132    {}

DayaBay::DaqBlock::~DaqBlock (  )  [inline, virtual]

destructor

Definition at line 141 of file DaqBlock.h.

00142 {
00143 
00144          
00145 }


Member Function Documentation

DayaBay::DaqBlock & DayaBay::DaqBlock::operator= ( const DaqBlock rh  )  [inline]

Assignment operator.

Definition at line 134 of file DaqBlock.h.

00134                                                                               {
00135   if ( this != &rh ) {
00136     m_bytes = rh.m_bytes;
00137   }
00138   return *this;
00139 }

unsigned int DaqBlock::size (  )  const

Returns the number of bytes in this block.

Definition at line 14 of file DaqBlock.cc.

00014                                   {
00015     if (0 == m_bytes) {
00016         return 0;
00017     } else {
00018         return m_bytes->size();
00019     }
00020 }

std::ostream & DaqBlock::fillStream ( std::ostream &  s  )  const

Print the DAQ Block.

Definition at line 22 of file DaqBlock.cc.

00022                                                     {
00023     s << std::endl;
00024     s << "{ " << "Length : "<< size() << std::endl;
00025     s << std::endl;
00026     s << " }";
00027     return s;
00028 }

const DayaBay::DaqBlock::RawData * DayaBay::DaqBlock::bytes (  )  const [inline]

Retrieve const The bytes that are contained in this block of data.

Definition at line 147 of file DaqBlock.h.

00148 {
00149   return m_bytes;
00150 }

DayaBay::DaqBlock::RawData * DayaBay::DaqBlock::bytes (  )  [inline]

Retrieve The bytes that are contained in this block of data.

Definition at line 152 of file DaqBlock.h.

00153 {
00154   return m_bytes;
00155 }

void DayaBay::DaqBlock::setBytes ( RawData value  )  [inline]

Update The bytes that are contained in this block of data.

Definition at line 157 of file DaqBlock.h.

00158 {
00159   m_bytes = value;
00160 }

static void* DayaBay::DaqBlock::operator new ( size_t  size  )  [inline, static]

operator new

Definition at line 79 of file DaqBlock.h.

00080     {
00081       return ( sizeof(DaqBlock) == size ? 
00082                boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::malloc() :
00083                ::operator new(size) );
00084     }

static void* DayaBay::DaqBlock::operator new ( size_t  size,
void *  pObj 
) [inline, static]

placement operator new it is needed by libstdc++ 3.2.3 (e.g.

in std::vector) it is not needed in libstdc++ >= 3.4

Definition at line 89 of file DaqBlock.h.

00090     {
00091       return ::operator new (size,pObj);
00092     }

static void DayaBay::DaqBlock::operator delete ( void *  p  )  [inline, static]

operator delete

Definition at line 95 of file DaqBlock.h.

00096     {
00097       boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::is_from(p) ?
00098       boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::free(p) :
00099       ::operator delete(p);
00100     }

static void DayaBay::DaqBlock::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Definition at line 104 of file DaqBlock.h.

00105     {
00106       ::operator delete (p, pObj);
00107     }


Member Data Documentation

RawData* DayaBay::DaqBlock::m_bytes [private]

The bytes that are contained in this block of data.

Definition at line 113 of file DaqBlock.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:23:59 2011 for DaqBlock by doxygen 1.4.7