◆ ResultsHash()
FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::ResultsHash | ( | fiftyoneDegreesResultsHash * | results, |
shared_ptr< fiftyoneDegreesResourceManager > | manager | ||
) |
Create a new instance of Results from the results structure provided.
This method should only be called from inside an engine's process method.
- Parameters
-
- results - pointer to the underlying results structure
- manager - shared pointer to the manager which manages the data set used to create the results. This is needed for thread-safe operation, see local variable description for more info.
Member Function Documentation
◆ getDeviceId() [1/2]
string FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDeviceId ( uint32_t resultIndex ) Returns the unique device id if the Id property was included in the required list of properties when the Provider was constructed.
- Parameters
-
- resultIndex - index of the individual User-Agent in the results
- Returns
- device id string
- Examples
- Hash/MatchMetrics.cpp.
◆ getDeviceId() [2/2]
string FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDeviceId ( ) virtualReturns the unique device id if the Id property was included in the required list of properties when the Provider was constructed.
- Returns
- profile ids separated with a '-' character
Implements FiftyoneDegrees::DeviceDetection::ResultsDeviceDetection.
◆ getDifference() [1/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDifference ( ) Returns the total difference between the results returned and the target User-Agents.
Where multiple evidence items are used, this is the total difference.
- Returns
- total difference
- Examples
- Hash/MatchMetrics.cpp.
◆ getDifference() [2/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDifference ( uint32_t resultIndex ) Returns the difference between the result returned and the target User-Agent.
- Parameters
-
- resultIndex - index of the individual User-Agent in the results
- Returns
- individual difference
◆ getDrift() [1/2]
ResultsDeviceDetection. ◆ getDifference() [1/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDifference ( ) Returns the total difference between the results returned and the target User-Agents.
Where multiple evidence items are used, this is the total difference.
- Returns
- total difference
- Examples
- Hash/MatchMetrics.cpp.
◆ getDifference() [2/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDifference ( uint32_t resultIndex ) Returns the difference between the result returned and the target User-Agent.
- Parameters
-
- resultIndex - index of the individual User-Agent in the results
- Returns
- individual difference
◆ getDrift() [1/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDrift ( ) Returns the maximum drift for a matched substring from the character position where it was expected to be found.
The higher this value, the less accurate the results should be considered.
- Returns
- int maximum drift
- Examples
- Hash/MatchMetrics.cpp.
◆ getDrift() [2/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getDrift ( uint32_t resultIndex ) Returns the drift for a matched substring from the character position where it was expected to be found.
The higher this value, the lass accurate the results should be considered.
- Parameters
-
- resultIndex - index of the individual User-Agent in the results
- Returns
- individual drift
◆ getIterations()
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getIterations ( ) Get the number of iterations carried out in order to find a match.
This is the number of nodes in the graph which have been visited.
- Returns
- number of iterations
- Examples
- Hash/MatchMetrics.cpp.
◆ getMatchedNodes()
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getMatchedNodes ( ) Returns the number of hash nodes matched within the evidence.
- Returns
◆ getMethod() [1/2]
int FiftyoneDegrees::DeviceDetection::Hash::ResultsHash::getMethod ( ) Returns the method used to determine the match result.
See fiftyoneDegreesHashMatchMethod
- Returns
- highest method used
- Examples
- Hash/MatchMetrics.cpp.
◆ getMethod() [2/2]