|
using | IndexType = Index |
| Type for indexing elements in related segments.
|
|
using | IteratorType = SegmentViewIterator< SegmentView > |
| Type of iterator for iterating over elements of the segment.
|
|
◆ SegmentView()
Conctructor with all parameters.
- Parameters
-
segmentIdx | is an index of segment the segment view will point to. |
offset | is an offset of the segment in the parent segments. |
size | is a size of the segment. |
◆ begin()
Returns iterator pointing at the beginning of the segment.
- Returns
- iterator pointing at the beginning.
◆ cbegin()
Returns constant iterator pointing at the beginning of the segment.
- Returns
- iterator pointing at the beginning.
◆ cend()
Returns constant iterator pointing at the end of the segment.
- Returns
- iterator pointing at the end.
◆ end()
Returns iterator pointing at the end of the segment.
- Returns
- iterator pointing at the end.
◆ getGlobalIndex()
Get global index of an element with rank localIndex in the segment.
- Parameters
-
localIndex | is the rank of the element in the segment. |
- Returns
- global index of the element.
◆ getSegmentIndex()
Get index of the segment.
- Returns
- index of the segment.
◆ getSize()
Get the size of the segment, i.e. number of elements in the segment.
- Returns
- number of elements in the segment.
The documentation for this class was generated from the following file:
- src/TNL/Algorithms/Segments/SegmentView.h