![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtKeyword mixin is a mixin class (add funcionality by inheritence) for adding generic keywords to another class.

Public Member Functions | |
| DtKeywordMixin () | |
| virtual | ~DtKeywordMixin () |
| virtual void | addKeyword (const std::string &keyword) |
| virtual void | removeKeyword (const std::string &keyword) |
| virtual void | clearKeywords () |
| virtual const std::set < std::string > & | keywords () const |
| virtual bool | findKeywords (const std::set< std::string > &) const |
| virtual bool | findKeyword (const std::string &word) const |
Protected Attributes | |
| std::set< std::string > | myKeywords |
| makVrv::DtKeywordMixin::DtKeywordMixin | ( | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Add a keyword.
|
virtual |
Remove a keyword.
|
virtual |
Clear the keywords.
|
virtual |
Get the keywords.
|
virtual |
Check to see if the class has any of the supplied keywords For best performance sort the keywords (from most frequent to less frequent) and for keywords with the same frequency shortest to longest.
|
virtual |
Check to see if a single keyword is in the set.
|
protected |