In this file we define the class Range, a range of Index denoting a sub-vector region.
More...
|
| template<int Size_> |
| ostream & | STK::operator<< (ostream &os, TRange< Size_ > const &I) |
| | Write a TRange in the form first:last (MATLAB-like form) in an output stream.
|
| |
| istream & | STK::operator>> (istream &is, Range &I) |
| |
| template<int SizeI_, int SizeJ_> |
| Range | STK::sup (TRange< SizeI_ > const &I, TRange< SizeJ_ > const &J) |
| | compute sup(I,J).
|
| |
| template<int SizeI_, int SizeJ_> |
| Range | STK::inf (TRange< SizeI_ > const &I, TRange< SizeJ_ > const &J) |
| | compute inf(I,J).
|
| |
| template<int SizeI_> |
| Range | STK::incFirst (TRange< SizeI_ > const &I) |
| | if I=a:b, return a+1:b
|
| |
| template<int SizeI_> |
| Range | STK::incLast (TRange< SizeI_ > const &I) |
| | if I=a:b, return a:b+1
|
| |
| template<int SizeI_> |
| Range | STK::decFirst (TRange< SizeI_ > const &I) |
| | if I=a:b, return a-1:b
|
| |
| template<int SizeI_> |
| Range | STK::decLast (TRange< SizeI_ > const &I) |
| | if I=a:b, return a:b-1
|
| |
| Range | STK::stringToRange (String const &str) |
| | Convert a String to a Range.
|
| |
| template<int Size_> |
| TRange< Size_ > | STK::stringToRange (String const &str, std::map< String, TRange< Size_ > > const &mapping) |
| | Convert a String to a Range using a map.
|
| |
| template<int Size_> |
| String | STK::rangeToString (TRange< Size_ > const &value, std::ios_base &(*f)(std::ios_base &)=std::dec) |
| | Convert an Range to a String.
|
| |
| template<int Size_> |
| String | STK::rangeToString (TRange< Size_ > const &value, std::map< TRange< Size_ >, String > const &mapping) |
| | Convert a Range to a String.
|
| |
| template<> |
| String | STK::typeToString< Range > (Range const &t, std::ios_base &(*f)(std::ios_base &)) |
| | Specialization for Range.
|
| |
In this file we define the class Range, a range of Index denoting a sub-vector region.
Definition in file STK_Range.h.