A class that specifies a dynamic variabele with a scope selector. More...
#include <dynamicvariables.h>
Public Member Functions | |
ScopedDynamicVariable (const QVariant &value, TextScopeSelector *selector=0) | |
constructs a dynamic variable | |
virtual | ~ScopedDynamicVariable () |
destructs the variable | |
virtual double | score (TextScopeList *scopes) const |
returns the score for the location | |
TextScopeSelector * | selector () const |
returns the active selector | |
![]() | |
BasicDynamicVariable (const QVariant &value) | |
Constructs a basic dynamic (read static :P ) variable. | |
virtual QVariant | value () const |
returns value of the variable | |
![]() | |
virtual | ~DynamicVariable () |
empty virtual destructor | |
A class that specifies a dynamic variabele with a scope selector.
edbee::ScopedDynamicVariable::ScopedDynamicVariable | ( | const QVariant & | value, |
TextScopeSelector * | selector = 0 ) |
constructs a dynamic variable
value | the value of the variable |
selector | (default=0) the selector to use. This class takes ownership of the selector!! |
|
virtual |
destructs the variable
|
virtual |
returns the score for the location
TextScopeSelector * edbee::ScopedDynamicVariable::selector | ( | ) | const |
returns the active selector