Jpp
master_rocky
the software that should make you happy
|
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 (JDAQFrame &&frame) | |
Move constructor. More... | |
JDAQFrame (const int number_of_hits, const JDAQHit *data) | |
Constructor. More... | |
virtual | ~JDAQFrame () |
Destructor. More... | |
JDAQFrame & | operator= (const JDAQFrame &frame) |
Assignment operator. 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 | |
size_t | getSizeof (const JDAQFrame &) |
Get size of object. More... | |
JReader & | operator>> (JReader &, JDAQFrame &) |
Read DAQ frame from input. More... | |
JWriter & | operator<< (JWriter &, const JDAQFrame &) |
Write DAQ frame to output. More... | |
Data frame.
Definition at line 65 of file JDAQFrame.hh.
typedef const JDAQHit* KM3NETDAQ::JDAQFrame::const_iterator |
Definition at line 69 of file JDAQFrame.hh.
typedef JDAQHit* KM3NETDAQ::JDAQFrame::iterator |
Definition at line 70 of file JDAQFrame.hh.
typedef std::reverse_iterator<const_iterator> KM3NETDAQ::JDAQFrame::const_reverse_iterator |
Definition at line 71 of file JDAQFrame.hh.
typedef std::reverse_iterator<iterator> KM3NETDAQ::JDAQFrame::reverse_iterator |
Definition at line 72 of file JDAQFrame.hh.
|
inline |
|
inline |
Copy constructor.
frame | frame |
Definition at line 92 of file JDAQFrame.hh.
|
inline |
|
inline |
Constructor.
number_of_hits | number of hits |
data | pointer to data |
Definition at line 120 of file JDAQFrame.hh.
|
inlinevirtual |
Assignment operator.
frame | frame |
Definition at line 143 of file JDAQFrame.hh.
|
inline |
|
inline |
Definition at line 165 of file JDAQFrame.hh.
|
inline |
Definition at line 166 of file JDAQFrame.hh.
|
inline |
Definition at line 169 of file JDAQFrame.hh.
|
inline |
Definition at line 170 of file JDAQFrame.hh.
|
inline |
Definition at line 173 of file JDAQFrame.hh.
|
inline |
Definition at line 174 of file JDAQFrame.hh.
|
inline |
Definition at line 177 of file JDAQFrame.hh.
|
inline |
Definition at line 178 of file JDAQFrame.hh.
|
inline |
Definition at line 181 of file JDAQFrame.hh.
|
inline |
Definition at line 183 of file JDAQFrame.hh.
|
inline |
Definition at line 185 of file JDAQFrame.hh.
|
inline |
Definition at line 186 of file JDAQFrame.hh.
|
inline |
Get hit at given index.
index | index |
Definition at line 195 of file JDAQFrame.hh.
|
inline |
Get subset of data.
i1 | first index of hit (included) |
i2 | last index of hit (excluded) |
Definition at line 207 of file JDAQFrame.hh.
Add data.
number_of_hits | number of hits |
data | pointer to data |
Definition at line 232 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 273 of file JDAQFrame.hh.
|
friend |
Get size of object.
object | DAQ frame |
Definition at line 21 of file JDAQFrameIO.hh.
Read DAQ frame from input.
in | reader |
frame | DAQ frame |
Definition at line 34 of file JDAQFrameIO.hh.
Write DAQ frame to output.
out | writer |
frame | DAQ frame |
Definition at line 57 of file JDAQFrameIO.hh.
int KM3NETDAQ::JDAQFrame::numberOfHits |
Definition at line 257 of file JDAQFrame.hh.
JDAQHit* KM3NETDAQ::JDAQFrame::buffer |
Definition at line 258 of file JDAQFrame.hh.