edbee - Qt Editor Library
Public Member Functions | List of all members
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 More...
 
virtual ~ScopedDynamicVariable ()
 destructs the variable More...
 
virtual double score (TextScopeList *scopes) const
 returns the score for the location More...
 
TextScopeSelectorselector () const
 returns the active selector More...
 
- Public Member Functions inherited from edbee::BasicDynamicVariable
 BasicDynamicVariable (const QVariant &value)
 Constructs a basic dynamic (read static :P ) variable. More...
 
virtual QVariant value () const
 returns value of the variable More...
 
- Public Member Functions inherited from edbee::DynamicVariable
virtual ~DynamicVariable ()
 empty virtual destructor More...
 

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: