1#ifndef __JSUPPORT__JLIMIT__
2#define __JSUPPORT__JLIMIT__
42 public JRange<counter_type>,
86 return static_cast<const JLimit&
>(*this);
97 return static_cast<JLimit&
>(*this);
108 static_cast<JLimit&
>(*this) = limit;
130 return std::numeric_limits<counter_type>::max();
191 string::size_type pos = buffer.find(
SEPARATOR);
193 if (pos != string::npos) {
197 istringstream is(buffer);
207 istringstream is(buffer);
Type definition for counter for ROOT TTree and auxiliary methods.
Auxiliary class to define a range between two values.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
Support classes and methods for experiment specific I/O.
JLimit JLimit_t
Type definition of limit.
Template definition of auxiliary base class for comparison of data structures.
Auxiliary class for defining the range of iterations of objects.
JRange< counter_type > range_type
static const char SEPARATOR
separator between values
JLimit(const counter_type lower, const counter_type upper)
Constructor.
const JLimit & getLimit() const
Get limit.
JLimit & getLimit()
Get limit.
static counter_type max()
Get maximum counter value.
JLimit()
Default constructor.
friend std::istream & operator>>(std::istream &in, JLimit &limit)
Read limit from input.
bool more(const counter_type counter) const
Compare counter.
void setLimit(const JLimit &limit)
Set limit.
JLimit(const counter_type counter)
Constructor.
bool less(const JLimit &limit) const
Compare limit.
static counter_type min()
Get minimum counter value.
bool less(const counter_type counter) const
Compare counter.