/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
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 Thu Dec 5 17:50:46 2013

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.

: m_bytes(0) {}
DayaBay::DaqBlock::DaqBlock ( const DaqBlock rh) [inline]

Copy Constructor.

Definition at line 130 of file DaqBlock.h.

                                                           : 
   m_bytes( rh.m_bytes )
   {}
DayaBay::DaqBlock::~DaqBlock ( ) [inline, virtual]

destructor

Definition at line 141 of file DaqBlock.h.

{

         
}

Member Function Documentation

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

Assignment operator.

Definition at line 134 of file DaqBlock.h.

                                                                              {
  if ( this != &rh ) {
    m_bytes = rh.m_bytes;
  }
  return *this;
}
unsigned int DaqBlock::size ( ) const

Returns the number of bytes in this block.

Definition at line 14 of file DaqBlock.cc.

                                  {
    if (0 == m_bytes) {
        return 0;
    } else {
        return m_bytes->size();
    }
}
std::ostream & DaqBlock::fillStream ( std::ostream &  s) const

Print the DAQ Block.

Definition at line 22 of file DaqBlock.cc.

                                                    {
    s << std::endl;
    s << "{ " << "Length : "<< size() << std::endl;
    s << std::endl;
    s << " }";
    return s;
}
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.

{
  return m_bytes;
}
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.

{
  return m_bytes;
}
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.

{
  m_bytes = value;
}
static void* DayaBay::DaqBlock::operator new ( size_t  size) [inline, static]

operator new

Definition at line 79 of file DaqBlock.h.

    {
      return ( sizeof(DaqBlock) == size ? 
               boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::malloc() :
               ::operator new(size) );
    }
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.

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

operator delete

Definition at line 95 of file DaqBlock.h.

    {
      boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::is_from(p) ?
      boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

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 Fri May 16 2014 10:00:54 for DaqBlock by doxygen 1.7.4