VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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]

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 ( )

CTOR.

virtual makVrv::DtKeywordMixin::~DtKeywordMixin ( )
virtual

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 Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)