edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::ScopedDynamicVariable Class Reference

A class that specifies a dynamic variabele with a scope selector. More...

#include <dynamicvariables.h>

+ Inheritance diagram for edbee::ScopedDynamicVariable:
+ Collaboration diagram for edbee::ScopedDynamicVariable:

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
 
TextScopeSelectorselector () const
 returns the active selector
 
- Public Member Functions inherited from edbee::BasicDynamicVariable
 BasicDynamicVariable (const QVariant &value)
 Constructs a basic dynamic (read static :P ) variable.
 
virtual QVariant value () const
 returns value of the variable
 
- Public Member Functions inherited from edbee::DynamicVariable
virtual ~DynamicVariable ()
 empty virtual destructor
 

Detailed Description

A class that specifies a dynamic variabele with a scope selector.

Constructor & Destructor Documentation

◆ ScopedDynamicVariable()

edbee::ScopedDynamicVariable::ScopedDynamicVariable ( const QVariant & value,
TextScopeSelector * selector = 0 )

constructs a dynamic variable

Parameters
valuethe value of the variable
selector(default=0) the selector to use. This class takes ownership of the selector!!

◆ ~ScopedDynamicVariable()

edbee::ScopedDynamicVariable::~ScopedDynamicVariable ( )
virtual

destructs the variable

Member Function Documentation

◆ score()

double edbee::ScopedDynamicVariable::score ( TextScopeList * scopes) const
virtual

returns the score for the location

◆ selector()

TextScopeSelector * edbee::ScopedDynamicVariable::selector ( ) const

returns the active selector


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