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.
static const char SEPARATOR
separator between values
JLimit(const counter_type lower, const counter_type upper)
Constructor.
static counter_type max()
Get maximum counter value.
const JLimit & getLimit() const
Get limit.
JLimit()
Default constructor.
JLimit & getLimit()
Get limit.
bool more(const counter_type counter) const
Compare counter.
friend std::istream & operator>>(std::istream &in, JLimit &limit)
Read limit from input.
JRange< counter_type > range_type
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.