libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::TagNotCondition Class Reference

Negates the result of the given child condition. More...

#include <Tag.h>

+ Inheritance diagram for osmscout::TagNotCondition:

Public Member Functions

void CollectTagKeys (std::vector< TagId > &keys, bool &guaranteed) const override
 Collects the tag keys that act as primary discriminators for this condition.
 
bool Evaluate (const TagMap &tagMap) const override
 
 TagNotCondition (const TagConditionRef &condition)
 
- Public Member Functions inherited from osmscout::TagCondition
virtual ~TagCondition ()=default
 

Detailed Description

Negates the result of the given child condition.

Constructor & Destructor Documentation

◆ TagNotCondition()

osmscout::TagNotCondition::TagNotCondition ( const TagConditionRef condition)
explicit

Member Function Documentation

◆ CollectTagKeys()

void osmscout::TagNotCondition::CollectTagKeys ( std::vector< TagId > &  keys,
bool &  guaranteed 
) const
inlineoverridevirtual

Collects the tag keys that act as primary discriminators for this condition.

If 'guaranteed' is true, at least one of the returned keys is guaranteed to be present in the tag map whenever this condition evaluates to true, i.e. the condition can only match objects that carry one of these keys. If 'guaranteed' is false, the condition may evaluate to true even if none of the returned keys is present (e.g. conditions containing negation) and the caller has to always evaluate the condition.

Implements osmscout::TagCondition.

◆ Evaluate()

bool osmscout::TagNotCondition::Evaluate ( const TagMap tagMap) const
inlineoverridevirtual

The documentation for this class was generated from the following files: