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

In This Package:

Public Member Functions | Protected Attributes
DybDaq::EventBuilder Class Reference

#include <RpcEventBuilder.h>

Inheritance diagram for DybDaq::EventBuilder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EventBuilder ()
virtual ~EventBuilder ()
virtual int size ()
virtual bool empty ()
virtual int add (RecordBuffer *record)
virtual RecordBufferfront ()
virtual RecordBufferpop_front ()

Protected Attributes

int m_size
std::list< RecordBuffer * > m_records

Detailed Description

Definition at line 13 of file RpcEventBuilder.h.


Constructor & Destructor Documentation

EventBuilder::EventBuilder ( )

Definition at line 24 of file RpcEventBuilder.cc.

    : m_size(0)
{
}
EventBuilder::~EventBuilder ( ) [virtual]

Definition at line 29 of file RpcEventBuilder.cc.

{
}

Member Function Documentation

int EventBuilder::size ( ) [virtual]

Reimplemented in DybDaq::RpcEventBuilder.

Definition at line 33 of file RpcEventBuilder.cc.

{
    return m_size;
}
bool EventBuilder::empty ( ) [virtual]

Reimplemented in DybDaq::RpcEventBuilder.

Definition at line 38 of file RpcEventBuilder.cc.

{
    return (m_size == 0);
}
int EventBuilder::add ( RecordBuffer record) [virtual]

Reimplemented in DybDaq::RpcEventBuilder.

Definition at line 43 of file RpcEventBuilder.cc.

{
    if ( record != 0 ) {
        m_records.push_back(record);
        ++m_size;
    }
    return m_size;
}
RecordBuffer * EventBuilder::front ( ) [virtual]

Reimplemented in DybDaq::RpcEventBuilder.

Definition at line 52 of file RpcEventBuilder.cc.

{
    RecordBuffer* result = 0;
    if ( m_size > 0 ) {
        result = m_records.front();
    }
    return result;
}
RecordBuffer * EventBuilder::pop_front ( ) [virtual]

Reimplemented in DybDaq::RpcEventBuilder.

Definition at line 61 of file RpcEventBuilder.cc.

{
    RecordBuffer* result = 0;
    if ( m_size > 0 ) {
        result = m_records.front();
        m_records.pop_front();
        --m_size;
    }
    return result;
}

Member Data Documentation

Definition at line 30 of file RpcEventBuilder.h.

Definition at line 31 of file RpcEventBuilder.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 09:52:46 for RawRecordPool by doxygen 1.7.4