Holds the provider results produced by a node or edge visit. More...
Holds the provider results produced by a node or edge visit.
Only use an instance during the provider callback that received it. A successful visit replaces earlier results for the same provider and node or edge. Results for unscheduled entities remain unchanged.
Public Member Functions | |
| SimilarityProviderResults (BNSimilarityProviderResults *results) | |
| BNSimilarityProviderResults * | GetObject () const |
| SimilarityResultId | AddResult (const SimilarityEntityRef &source, const SimilarityEntityRef &target, uint8_t similarity, uint8_t confidence) |
| Adds a result to the current visit. | |
|
inlineexplicit |
|
inline |
| SimilarityResultId SimilarityProviderResults::AddResult | ( | const SimilarityEntityRef & | source, |
| const SimilarityEntityRef & | target, | ||
| uint8_t | similarity, | ||
| uint8_t | confidence ) |
Adds a result to the current visit.
The result must belong to an entity scheduled for this visit. Node results belong to `source`; edge results belong to the entity on the destination node. Returns zero if the result could not be added. A later visit replaces the result and gives it a new ID.