|
| JLimit () |
| Default constructor. More...
|
|
| JLimit (const counter_type counter) |
| Constructor. More...
|
|
const JLimit & | getLimit () const |
| Get limit. More...
|
|
JLimit & | getLimit () |
| Get limit. More...
|
|
void | setLimit (const JLimit &limit) |
| Set limit. More...
|
|
bool | less (const JLimit &limit) const |
| Compare limit. More...
|
|
bool | less (const counter_type counter) const |
| Compare counter. More...
|
|
bool | more (const counter_type counter) const |
| Compare counter. More...
|
|
const range_type & | getRange () const |
| Get range. More...
|
|
void | setRange (const range_type &range) |
| Set range. More...
|
|
void | setRange (argument_type x, argument_type y) |
| Set lower and upper limit. More...
|
|
template<class R > |
void | setRange (R first, R second) |
| Set range. More...
|
|
template<class iterator_type , class value_type , class result_type > |
void | setRange (iterator_type __begin, iterator_type __end, result_type value_type::*member) |
| Set lower and upper limit according to minimal and maximal value in input data, respectively. More...
|
|
template<class iterator_type , class value_type , class result_type > |
void | setRange (iterator_type __begin, iterator_type __end, result_type(value_type::*function)() const) |
| Set lower and upper limit according to minimal and maximal value in input data, respectively. More...
|
|
T | getLowerLimit () const |
| Get lower limit. More...
|
|
T | getUpperLimit () const |
| Get upper limit. More...
|
|
void | setLowerLimit (argument_type x) |
| Set lower limit. More...
|
|
void | setUpperLimit (argument_type y) |
| Set upper limit. More...
|
|
void | fixLowerLimit (argument_type x) |
| Fix lower limit. More...
|
|
void | fixUpperLimit (argument_type y) |
| Fix upper limit. More...
|
|
bool | equals (const range_type &range) const |
| Equal method. More...
|
|
T | getLength () const |
| Get length (difference between upper and lower limit). More...
|
|
bool | is_valid () const |
| Check validity of range. More...
|
|
bool | operator() (argument_type x) const |
| Test whether value is inside range. More...
|
|
T | constrain (argument_type x) const |
| Constrain value to range. More...
|
|
T | mod (argument_type x) const |
| Modulo value with respect to range. More...
|
|
bool | overlap (const range_type &range) const |
| Test overlap with given range. More...
|
|
range_type | include (argument_type x) |
| Include given value to range. More...
|
|
range_type & | join (const range_type &range) |
| Join ranges. More...
|
|
range_type & | combine (const range_type &range) |
| Combine ranges. More...
|
|
range_type & | add (argument_type x) |
| Add offset. More...
|
|
range_type & | add (const range_type &range) |
| Add offsets. More...
|
|
range_type & | sub (argument_type x) |
| Subtract offset. More...
|
|
range_type & | sub (const range_type &range) |
| Subtract offsets. More...
|
|
range_type & | mul (const double factor) |
| Multiply range. More...
|
|
JFirst_t & | mul (const JSecond_t &object) |
| Multiply with object. More...
|
|
range_type & | div (const double factor) |
| Divide range. More...
|
|
T | getN (const double R) const |
| Get expected number of occurances of given rate within this interval. More...
|
|
const key_type & | getKey () const |
|
const mapped_type & | getValue () const |
|
mapped_type & | getValue () |
|
Auxiliary class for defining the range of iterations of objects.
Possible input syntax:
<begin of iteration>:<number of iterations>
<number of iterations>
where the iteration starts at 0.
Definition at line 41 of file JLimit.hh.
template<class T, class JComparator_t = std::less<T>>
template<class iterator_type , class value_type , class result_type >
void JTOOLS::JRange< T, JComparator_t >::setRange |
( |
iterator_type |
__begin, |
|
|
iterator_type |
__end, |
|
|
result_type value_type::* |
member |
|
) |
| |
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
- Parameters
-
__begin | begin of data |
__end | end of data |
member | pointer to data member |
Definition at line 182 of file JRange.hh.
186 for (iterator_type i = __begin; i != __end; ++i) {
template<class T, class JComparator_t = std::less<T>>
template<class iterator_type , class value_type , class result_type >
void JTOOLS::JRange< T, JComparator_t >::setRange |
( |
iterator_type |
__begin, |
|
|
iterator_type |
__end, |
|
|
result_type(value_type::*)() const |
function |
|
) |
| |
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
- Parameters
-
__begin | begin of data |
__end | end of data |
function | pointer to member method |
Definition at line 200 of file JRange.hh.
204 for (iterator_type i = __begin; i != __end; ++i) {