A buffer to count and store element ids during kernel execution. This facilitates the reporting mechanism by allowing a preallocated space for storing & counting elements.
More...
#include <SolutionCheckHelpers.hpp>
|
|
using | ElementCount = ElementsReporterCollector::ElementCount |
| | Type alias for elements count (e.g., localIndex, globalIndex).
|
| |
A buffer to count and store element ids during kernel execution. This facilitates the reporting mechanism by allowing a preallocated space for storing & counting elements.
Definition at line 88 of file SolutionCheckHelpers.hpp.
◆ ElementsReporterBuffer()
| geos::ElementsReporterBuffer::ElementsReporterBuffer |
( |
bool |
enabled, |
|
|
ElementCount |
maxCollectionSize |
|
) |
| |
Construct a preallocated buffer to collect a limited quantity of ids in kernels.
- Parameters
-
| maxCollectionSize | Limit of the buffer. If 0, the buffering functionnality is disabled and only the counting is enabled. |
◆ begin()
| auto geos::ElementsReporterBuffer::begin |
( |
| ) |
const |
|
inline |
◆ createCollector()
- Returns
- A view on the ids array owned by the instance. -> change comment to explain the interest for kernels
◆ empty()
| bool geos::ElementsReporterBuffer::empty |
( |
| ) |
const |
|
inline |
◆ enabled()
| bool geos::ElementsReporterBuffer::enabled |
( |
| ) |
const |
|
inline |
◆ end()
| auto geos::ElementsReporterBuffer::end |
( |
| ) |
const |
|
inline |
◆ getCollectedElementsCount()
| ElementCount geos::ElementsReporterBuffer::getCollectedElementsCount |
( |
| ) |
const |
|
inline |
- Returns
- the collected elements that could effectivly be stored (zero if no collection is enabled).
Definition at line 131 of file SolutionCheckHelpers.hpp.
◆ getSignaledElementsCount()
| ElementCount geos::ElementsReporterBuffer::getSignaledElementsCount |
( |
| ) |
const |
|
inline |
◆ isComplete()
| bool geos::ElementsReporterBuffer::isComplete |
( |
| ) |
const |
|
inline |
◆ operator[]()
- Returns
- a reference to an element report by its ID within the buffer (0 -> collected count-1).
Definition at line 137 of file SolutionCheckHelpers.hpp.
The documentation for this class was generated from the following file: