Jpp
18.0.0
the software that should make you happy
|
Clone of a container. More...
#include <JClone.hh>
Public Types | |
typedef JContainer_t::value_type | value_type |
typedef JLANG::JClass < value_type >::argument_type | argument_type |
typedef JContainer_t::const_iterator | const_iterator |
typedef JContainer_t::const_iterator | iterator |
Public Member Functions | |
JClone () | |
Default constructor. More... | |
JClone (const JContainer_t &input) | |
Constructor. More... | |
iterator | begin () const |
Get begin of data. More... | |
iterator | end () const |
Get end of data. More... | |
unsigned int | size () const |
Get size of data. More... | |
bool | empty () const |
Check size of data. More... | |
void | rewind () const |
Rewind internal iterator. More... | |
bool | is_valid () const |
Check internal iterator. More... | |
void | next () const |
Increment internal iterator. More... | |
iterator | get () const |
Get internal iterator. More... | |
double | getT () const |
Get time of internal iterator. More... | |
double | getToT () const |
Get time-over-threshold of internal iterator. More... | |
JHit | getJHit () const |
Construct JHit from internal iterator. More... | |
double | getTimeDifference (argument_type hit) const |
Get time difference with respect to given hits. More... | |
iterator | lower_bound (argument_type hit) const |
Set the internal iterator to the lower bound corresponding to the time of the given hit. More... | |
iterator | fast_forward (argument_type hit) const |
Increment the internal iterator until the lower bound corresponding to the time of the given hit. More... | |
Protected Attributes | |
iterator | __begin |
iterator | __end |
iterator | __i |
Clone of a container.
A JClone object contains a reference to container data and can be used as any normal container. It comprises in addition an internal iterator which is implemented as mutable data member.
The methods
can be used to check, set and access the internal iterator.
The data in the original container should have been terminated with an appriopriate end marker.
typedef JContainer_t::value_type JTRIGGER::JClone< JContainer_t >::value_type |
typedef JLANG::JClass<value_type>::argument_type JTRIGGER::JClone< JContainer_t >::argument_type |
typedef JContainer_t::const_iterator JTRIGGER::JClone< JContainer_t >::const_iterator |
typedef JContainer_t::const_iterator JTRIGGER::JClone< JContainer_t >::iterator |
|
inline |
|
inline |
|
inline |
Get begin of data.
|
inline |
Get end of data.
|
inline |
Get size of data.
Definition at line 105 of file JClone.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Increment internal iterator.
|
inline |
Get internal iterator.
|
inline |
|
inline |
Get time-over-threshold of internal iterator.
Definition at line 178 of file JClone.hh.
|
inline |
Construct JHit from internal iterator.
Definition at line 189 of file JClone.hh.
|
inline |
Get time difference with respect to given hits.
hit | hit |
Definition at line 201 of file JClone.hh.
|
inline |
|
inline |
|
protected |
|
protected |
|
mutableprotected |