Template Numerical Library version\ main:bb09b17
|
Simple structure representing one element of a segment. More...
#include <TNL/Algorithms/Segments/SegmentElement.h>
Public Types | |
using | IndexType = Index |
Type used for indexing of the elements. | |
Public Member Functions | |
__cuda_callable__ | SegmentElement (IndexType segmentIdx, IndexType localIdx, IndexType globalIdx) |
Constructor of the segment element with all parameters. | |
__cuda_callable__ IndexType | globalIndex () const |
Returns index of the element in the related container. | |
__cuda_callable__ IndexType | localIndex () const |
Returns rank of the element in the segment. | |
__cuda_callable__ IndexType | segmentIndex () const |
Returns index of the parent segment. | |
Protected Attributes | |
const IndexType | globalIdx |
const IndexType | localIdx |
const IndexType | segmentIdx |
Simple structure representing one element of a segment.
Index | is type used for indexing of the elements. |
|
inline |
Constructor of the segment element with all parameters.
segmentIdx | is in index of the parent segment. |
localIdx | is a rank of the element in the segment. |
globalIdx | is an index of the element in the related container. |
|
inlinenodiscard |
Returns index of the element in the related container.
|
inlinenodiscard |
Returns rank of the element in the segment.
|
inlinenodiscard |
Returns index of the parent segment.