◆ erase() [1/2]
void FiftyoneDegrees::Common::EvidenceBase::erase | ( | iterator | position | ) |
Remove the evidence item at the position indicated.
- Parameters
-
- position - of the item to remove
\r\n
Base evidence class containing evidence to be processed by an engine.
This wraps a dynamically generated C evidence structure.
The class extends the map<string, string> template to add a method of constructing a C evidence structure from the key value pairs.
Constructors and Destructors | |
EvidenceBase ()
Construct a new instance containing no evidence.
| |
virtual | ~EvidenceBase ()
Free all the underlying memory containing the evidence.
|
Getters | |
fiftyoneDegreesEvidenceKeyValuePairArray * | get ()
Get the underlying C structure containing the evidence. More...
|
Overrides | |
void | clear ()
Clear all evidence items from the instance.
|
void | erase (iterator position)
Remove the evidence item at the position indicated. More...
|
void | erase (iterator first, iterator last)
Remove the evidence items between the two position indicated. More...
|
virtual bool | isRelevant (fiftyoneDegreesEvidencePrefix prefix)
Get whether or not the evidence key prefix is relevant or not. More...
|
void FiftyoneDegrees::Common::EvidenceBase::erase | ( | iterator | position | ) |
Remove the evidence item at the position indicated.
void FiftyoneDegrees::Common::EvidenceBase::erase | ( | iterator | first, |
iterator | last | ||
) |
Remove the evidence items between the two position indicated.
fiftyoneDegreesEvidenceKeyValuePairArray* FiftyoneDegrees::Common::EvidenceBase::get | ( | ) |
Get the underlying C structure containing the evidence.
This only includes evidence which is relevant to the engine. Any evidence which is irrelevant will not be included in the result.
virtual bool FiftyoneDegrees::Common::EvidenceBase::isRelevant | ( | fiftyoneDegreesEvidencePrefix | prefix | ) |
Get whether or not the evidence key prefix is relevant or not.
If the prefix is not relevant or not known then it is of no use to the engine processing it.
Reimplemented in FiftyoneDegrees::DeviceDetection::EvidenceDeviceDetection.