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 |
Detailed Description
The DtKeyword mixin is a mixin class (add funcionality by inheritence) for adding generic keywords to another class.
Constructor & Destructor Documentation
| makVrv::DtKeywordMixin::DtKeywordMixin |
( |
| ) |
|
| virtual makVrv::DtKeywordMixin::~DtKeywordMixin |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtKeywordMixin::addKeyword |
( |
const std::string & |
keyword | ) |
|
|
virtual |
| virtual void makVrv::DtKeywordMixin::removeKeyword |
( |
const std::string & |
keyword | ) |
|
|
virtual |
| virtual void makVrv::DtKeywordMixin::clearKeywords |
( |
| ) |
|
|
virtual |
| virtual const std::set<std::string>& makVrv::DtKeywordMixin::keywords |
( |
| ) |
const |
|
virtual |
| 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.
Member Data Documentation
| std::set<std::string> makVrv::DtKeywordMixin::myKeywords |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-3-branch/include/vrvUtil/DtKeywordMixin.h