![]() |
VR-Forces 4.0.4 Class Documentation
|
The DtKeyword mixin is a mixin class (add funcionality by inheritence) for adding generic keywords to another class. More...

Public Member Functions | |
| DtKeywordMixin () | |
| CTOR. | |
| virtual | ~DtKeywordMixin () |
| DTOR. | |
| virtual void | addKeyword (const std::string &keyword) |
| Add a keyword. | |
| virtual void | removeKeyword (const std::string &keyword) |
| Remove a keyword. | |
| virtual void | clearKeywords () |
| Clear the keywords. | |
| virtual const std::set < std::string > & | keywords () const |
| Get the keywords. | |
| virtual bool | findKeywords (const std::set< std::string > &) const |
| 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 bool | findKeyword (const std::string &word) const |
| Check to see if a single keyword is in the set. | |
Protected Attributes | |
| std::set< std::string > | myKeywords |
The DtKeyword mixin is a mixin class (add funcionality by inheritence) for adding generic keywords to another class.
CTOR.
| virtual makVrv::DtKeywordMixin::~DtKeywordMixin | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtKeywordMixin::addKeyword | ( | const std::string & | keyword | ) | [virtual] |
Add a keyword.
| virtual void makVrv::DtKeywordMixin::removeKeyword | ( | const std::string & | keyword | ) | [virtual] |
Remove a keyword.
| virtual void makVrv::DtKeywordMixin::clearKeywords | ( | ) | [virtual] |
Clear the keywords.
| virtual const std::set<std::string>& makVrv::DtKeywordMixin::keywords | ( | ) | const [virtual] |
Get the keywords.
| virtual bool makVrv::DtKeywordMixin::findKeywords | ( | const std::set< std::string > & | ) | const [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 bool makVrv::DtKeywordMixin::findKeyword | ( | const std::string & | word | ) | const [virtual] |
Check to see if a single keyword is in the set.
std::set<std::string> makVrv::DtKeywordMixin::myKeywords [protected] |