Go to the documentation of this file.
21 #ifndef __combinedRange_hpp__
22 #define __combinedRange_hpp__
66 for(
auto& sR: strRanges)
73 "bad systax for range defintion "<< sR<<
endl;
85 sRanges_.emplace_back(begin, end, stride);
93 sRanges_.emplace_back(begin, end, stride);
135 if(sR.isMember(val))
return true;
140 if(iR.isMember(val))
return true;
152 #endif //__combinedRange_hpp__
static bool parseRange(const word &rangeString, T &begin, T &end)
bool readValue(const word &w, real &val)
bool addStridedRange(const word &strRange)
std::set< Key, std::less< Key >, std::allocator< Key > > Set
bool addIndividual(const word &strVal)
iOstream & endl(iOstream &os)
combinedRange(const std::vector< word > &strRanges)
bool addIntervalRange(const word &strRange)
#define fatalErrorInFunction
bool addRanges(const std::vector< word > &strRanges)
bool addIndividual(const T &val)
bool isMember(T val) const
List< StridedRangeType > sRanges_
List< IntervalRangeType > iRanges_
bool addIntervalRange(T begin, T end)
bool addStridedRange(T begin, T end, T stride)
static bool parseRange(const word &rangeString, T &begin, T &end, T &stride)