|
STIR
6.3.0
|
The (simple) 1 dimensional specialisation of IndexRange. More...
#include "stir/IndexRange.h"
Public Member Functions | |
| IndexRange (const int min, const int max) | |
| IndexRange (const BasicCoordinate< 1, int > &min, const BasicCoordinate< 1, int > &max) | |
| IndexRange (const int length) | |
| IndexRange (const BasicCoordinate< 1, int > &size) | |
| int | get_min_index () const |
| int | get_max_index () const |
| int | get_length () const |
| size_t | size_all () const |
| return the total number of elements in this range | |
| bool | operator== (const IndexRange< 1 > &range2) const |
| bool | is_regular () const |
| checks if the range is 'regular' (always true for the 1d case) | |
| bool | get_regular_range (BasicCoordinate< 1, int > &min, BasicCoordinate< 1, int > &max) const |
| fills in min and max, and returns true | |
| void | resize (const int min_index, const int max_index) |
| resets to new index range | |
The (simple) 1 dimensional specialisation of IndexRange.
1.8.13