#include <IndexRange.h>
Definition at line 23 of file IndexRange.h.
IndexRange::IndexRange |
( |
| ) |
|
|
inline |
IndexRange::IndexRange |
( |
Index |
len | ) |
|
|
inline |
IndexRange::IndexRange |
( |
Index |
a_begin, |
|
|
Index |
a_end |
|
) |
| |
|
inline |
IndexRange::IndexRange |
( |
Name |
sran | ) |
|
|
inlineexplicit |
Definition at line 50 of file IndexRange.h.
53 std::string::size_type ipos = srem.find(
":");
54 if ( ipos ==0 || ipos == std::string::npos )
return;
57 srem = srem.substr(ipos+1);
58 if ( srem.size() == 0 )
return;
59 ipos = srem.find(
":");
60 if ( ipos ==0 || ipos == std::string::npos )
return;
62 if ( swrd.find_first_not_of(
"0123456789") != std::string::npos )
return;
63 Index beginTmp = std::stoi(swrd);
65 srem = srem.substr(ipos+1);
66 if ( srem.size() == 0 )
return;
67 ipos = srem.find(
":");
68 if ( ipos ==0 )
return;
69 swrd = srem.substr(0, ipos);
70 if ( swrd.find_first_not_of(
"0123456789" ) != std::string::npos )
return;
71 Index endTmp = std::stoi(swrd);
72 if ( endTmp <= beginTmp )
return;
79 while ( ipos != std::string::npos ) {
80 srem = srem.substr(ipos+1);
81 swrd = srem.substr(0, ipos);
82 ipos = srem.find(
":");
bool IndexRange::contains |
( |
Index |
ival | ) |
const |
|
inline |
Index IndexRange::first |
( |
| ) |
const |
|
inline |
bool IndexRange::isValid |
( |
| ) |
const |
|
inline |
Name IndexRange::label |
( |
Index |
ilab = 0 | ) |
const |
|
inline |
Index IndexRange::last |
( |
| ) |
const |
|
inline |
Definition at line 97 of file IndexRange.h.
std::string to_string(ModuleType const mt)
void IndexRange::setLabel |
( |
Name |
lab | ) |
|
|
inline |
void IndexRange::setLabel |
( |
Index |
ilab, |
|
|
Name |
lab |
|
) |
| |
|
inline |
Index IndexRange::size |
( |
| ) |
const |
|
inline |
Index IndexRange::begin =0 |
The documentation for this class was generated from the following file: