Jpp
|
Data frame. More...
#include <JDAQFrame.hh>
Public Types | |
typedef const JDAQHit * | const_iterator |
typedef JDAQHit * | iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
JDAQFrame () | |
Default constructor. More... | |
JDAQFrame (const JDAQFrame &frame) | |
Copy constructor. More... | |
JDAQFrame (const int number_of_hits, const JDAQHit *data) | |
Constructor. More... | |
virtual | ~JDAQFrame () |
Destructor. More... | |
void | clear () |
Clear data. More... | |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
bool | empty () const |
int | size () const |
const JDAQHit * | data () const |
JDAQHit * | data () |
const JDAQHit & | operator[] (int index) const |
Get hit at given index. More... | |
JDAQFrameSubset | subset (const int i1, const int i2) const |
Get subset of data. More... | |
JDAQFrame & | add (const JDAQFrame &frame) |
Add data. More... | |
JDAQFrame & | add (const int number_of_hits, const JDAQHit *data) |
Add data. More... | |
void | swap (JDAQFrame &frame) |
Swap data. More... | |
ClassDef (JDAQFrame, 1) | |
Public Attributes | |
int | numberOfHits |
JDAQHit * | buffer |
Protected Member Functions | |
void | resize (const int number_of_hits) |
Resize internal buffer. More... | |
Friends | |
JReader & | operator>> (JReader &in, JDAQFrame &frame) |
Read DAQ frame from input. More... | |
JWriter & | operator<< (JWriter &out, const JDAQFrame &frame) |
Write DAQ frame to output. More... | |
Data frame.
Definition at line 70 of file JDAQFrame.hh.
typedef const JDAQHit* KM3NETDAQ::JDAQFrame::const_iterator |
Definition at line 74 of file JDAQFrame.hh.
typedef JDAQHit* KM3NETDAQ::JDAQFrame::iterator |
Definition at line 75 of file JDAQFrame.hh.
typedef std::reverse_iterator<const_iterator> KM3NETDAQ::JDAQFrame::const_reverse_iterator |
Definition at line 76 of file JDAQFrame.hh.
typedef std::reverse_iterator<iterator> KM3NETDAQ::JDAQFrame::reverse_iterator |
Definition at line 77 of file JDAQFrame.hh.
|
inline |
|
inline |
Copy constructor.
frame | JDAQ frame |
Definition at line 94 of file JDAQFrame.hh.
|
inline |
Constructor.
number_of_hits | number of hits |
data | pointer to data |
Definition at line 108 of file JDAQFrame.hh.
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 139 of file JDAQFrame.hh.
|
inline |
Definition at line 140 of file JDAQFrame.hh.
|
inline |
Definition at line 143 of file JDAQFrame.hh.
|
inline |
Definition at line 144 of file JDAQFrame.hh.
|
inline |
Definition at line 147 of file JDAQFrame.hh.
|
inline |
Definition at line 148 of file JDAQFrame.hh.
|
inline |
Definition at line 151 of file JDAQFrame.hh.
|
inline |
Definition at line 152 of file JDAQFrame.hh.
|
inline |
Definition at line 155 of file JDAQFrame.hh.
|
inline |
Definition at line 157 of file JDAQFrame.hh.
|
inline |
Definition at line 159 of file JDAQFrame.hh.
|
inline |
Definition at line 160 of file JDAQFrame.hh.
|
inline |
Get hit at given index.
index | index |
Definition at line 169 of file JDAQFrame.hh.
|
inline |
Get subset of data.
i1 | first index of hit (included) |
i2 | last index of hit (excluded) |
Definition at line 181 of file JDAQFrame.hh.
Add data.
frame | JDAQ frame |
Definition at line 193 of file JDAQFrame.hh.
Add data.
number_of_hits | number of hits |
data | pointer to data |
Definition at line 206 of file JDAQFrame.hh.
|
inline |
KM3NETDAQ::JDAQFrame::ClassDef | ( | JDAQFrame | , |
1 | |||
) |
|
inlineprotected |
Resize internal buffer.
This method increases the size of the buffer if necessary. Otherwise, the current size is maintained.
number_of_hits | total number of hits to allocate |
Definition at line 287 of file JDAQFrame.hh.
Read DAQ frame from input.
in | JReader |
frame | JDAQFrame |
Definition at line 238 of file JDAQFrame.hh.
Write DAQ frame to output.
out | JWriter |
frame | JDAQFrame |
Definition at line 261 of file JDAQFrame.hh.
int KM3NETDAQ::JDAQFrame::numberOfHits |
Definition at line 271 of file JDAQFrame.hh.
JDAQHit* KM3NETDAQ::JDAQFrame::buffer |
Definition at line 272 of file JDAQFrame.hh.