VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
makVrv::DtKeywordMixin Class Reference

The DtKeyword mixin is a mixin class (add funcionality by inheritence) for adding generic keywords to another class. More...

Inheritance diagram for makVrv::DtKeywordMixin:
Inheritance graph
[legend]

List of all members.

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

CTOR.

DTOR.


Member Function Documentation

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.


Member Data Documentation

std::set<std::string> makVrv::DtKeywordMixin::myKeywords [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)