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