|
Krita Source Code Documentation
|
The CompareWithOtherTagFunctor class defines a comparer for tags. More...
#include <TagActions.h>
Public Member Functions | |
| CompareWithOtherTagFunctor (KisTagSP referenceTag) | |
| CompareWithOtherTagFunctor defines a default constructor. | |
| bool | operator() (KisTagSP otherTag) |
| operator () contains comparison logic | |
| KisTagSP | referenceTag () |
| referenceTag is a getter for the reference tag | |
| void | setReferenceTag (KisTagSP referenceTag) |
| setReferenceTag sets a reference tag in the comparer | |
Private Attributes | |
| KisTagSP | m_referenceTag |
| Tag to compare all other tags to. | |
The CompareWithOtherTagFunctor class defines a comparer for tags.
It contains a saved tag and can be used to determine if another tag is equal to the saved tag ("reference tag") or not. It can be used in stl list features like erase() etc.
Definition at line 185 of file TagActions.h.
| CompareWithOtherTagFunctor::CompareWithOtherTagFunctor | ( | KisTagSP | referenceTag | ) |
CompareWithOtherTagFunctor defines a default constructor.
| referenceTag | a tag to compare all other tags to |
Definition at line 180 of file TagActions.cpp.
References m_referenceTag, and referenceTag().
| bool CompareWithOtherTagFunctor::operator() | ( | KisTagSP | otherTag | ) |
operator () contains comparison logic
| otherTag | a tag to compare with the reference tag |
Definition at line 185 of file TagActions.cpp.
References m_referenceTag.
| KisTagSP CompareWithOtherTagFunctor::referenceTag | ( | ) |
referenceTag is a getter for the reference tag
Definition at line 197 of file TagActions.cpp.
References m_referenceTag.
setReferenceTag sets a reference tag in the comparer
| referenceTag | a tag that is used to compare other tags to |
Definition at line 193 of file TagActions.cpp.
References m_referenceTag, and referenceTag().
|
private |
Tag to compare all other tags to.
Definition at line 188 of file TagActions.h.