summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppevaluation.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/cppevaluation.h')
-rw-r--r--languages/cpp/cppevaluation.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/languages/cpp/cppevaluation.h b/languages/cpp/cppevaluation.h
index e4adeb28..97924b0a 100644
--- a/languages/cpp/cppevaluation.h
+++ b/languages/cpp/cppevaluation.h
@@ -22,7 +22,7 @@
#ifndef CPPEVALUATION_H
#define CPPEVALUATION_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "expressioninfo.h"
#include "simpletype.h"
@@ -31,19 +31,19 @@
class SimpleContext;
-void statusBarText( const QString& str, int time = 1000 );
+void statusBarText( const TQString& str, int time = 1000 );
namespace CppEvaluation {
template <class To, class From>
-extern QValueList<To> convertList( const QValueList<From>& from );
+extern TQValueList<To> convertList( const TQValueList<From>& from );
-extern QString nameFromType( SimpleType t );
+extern TQString nameFromType( SimpleType t );
class Operator;
struct OperatorIdentification {
- QValueList<QString> innerParams; /** Inner parameters of the operator( for the vec["hello"] the "hello" ) */
+ TQValueList<TQString> innerParams; /** Inner parameters of the operator( for the vec["hello"] the "hello" ) */
int start, end; /** Range the operator occupies */
bool found;
Operator* op; ///Can be 0 !
@@ -139,12 +139,12 @@ class Operator {
virtual BindingSide binding() = 0; ///The side to which the operator binds
///When this returns true, the ident-structure must be filled correctly
- virtual OperatorIdentification identify( QString& str ) = 0;
+ virtual OperatorIdentification identify( TQString& str ) = 0;
///params
- virtual EvaluationResult apply( QValueList<EvaluationResult> params, QValueList<EvaluationResult> innerParams ) = 0;
+ virtual EvaluationResult apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams ) = 0;
- virtual QString name() = 0;
+ virtual TQString name() = 0;
///Should return whether the item it the given side can be a type(Neutral stands for the inner paremeters)
virtual bool canBeType( BindingSide side ) {
@@ -152,14 +152,14 @@ class Operator {
}
protected:
- void log( const QString& msg );
- QString printTypeList( QValueList<EvaluationResult>& lst );
+ void log( const TQString& msg );
+ TQString printTypeList( TQValueList<EvaluationResult>& lst );
};
class OperatorSet {
private:
- typedef QValueList< Operator* > OperatorList;
+ typedef TQValueList< Operator* > OperatorList;
OperatorList m_operators;
public:
OperatorSet() {}
@@ -170,7 +170,7 @@ class OperatorSet {
m_operators << op;
}
- OperatorIdentification identifyOperator( const QString& str_ , Operator::BindingSide allowedBindings = ( Operator::BindingSide ) ( Operator::Left | Operator::Right | Operator::Neutral ) );
+ OperatorIdentification identifyOperator( const TQString& str_ , Operator::BindingSide allowedBindings = ( Operator::BindingSide ) ( Operator::Left | Operator::Right | Operator::Neutral ) );
};
extern OperatorSet AllOperators;
@@ -190,7 +190,7 @@ class RegisterOperator {
class UnaryOperator : public Operator {
public:
- UnaryOperator( int priority , QString identString, QString description, Operator::BindingSide binding ) : Operator(), m_priority( priority ), m_identString( identString ), m_name( description ), m_binding( binding ) {}
+ UnaryOperator( int priority , TQString identString, TQString description, Operator::BindingSide binding ) : Operator(), m_priority( priority ), m_identString( identString ), m_name( description ), m_binding( binding ) {}
virtual int priority() {
return m_priority;
@@ -208,28 +208,28 @@ class UnaryOperator : public Operator {
return 1;
}
- virtual OperatorIdentification identify( QString& str );
+ virtual OperatorIdentification identify( TQString& str );
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams ) = 0;
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams ) = 0;
- virtual bool checkParams( const QValueList<EvaluationResult>& params ) {
+ virtual bool checkParams( const TQValueList<EvaluationResult>& params ) {
return !params.isEmpty() && params[ 0 ];
}
- virtual EvaluationResult apply( QValueList<EvaluationResult> params, QValueList<EvaluationResult> innerParams );
+ virtual EvaluationResult apply( TQValueList<EvaluationResult> params, TQValueList<EvaluationResult> innerParams );
- virtual QString name() {
+ virtual TQString name() {
return m_name;
}
private:
int m_priority;
- QString m_identString;
- QString m_name;
+ TQString m_identString;
+ TQString m_name;
Operator::BindingSide m_binding;
protected:
- QString identString() const {
+ TQString identString() const {
return m_identString;
}
@@ -240,7 +240,7 @@ class NestedTypeOperator : public UnaryOperator {
public:
NestedTypeOperator() : UnaryOperator( 18, "::", "nested-type-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
};
//RegisterOperator< NestedTypeOperator > NestedTypeReg( AllOperators ); ///This registers the operator to the list of all operators
@@ -249,7 +249,7 @@ class DotOperator : public UnaryOperator {
public:
DotOperator() : UnaryOperator( 17, ".", "dot-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -260,7 +260,7 @@ class ArrowOperator : public UnaryOperator {
public:
ArrowOperator() : UnaryOperator( 17, "->", "arrow-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -273,7 +273,7 @@ class StarOperator : public UnaryOperator {
StarOperator() : UnaryOperator( 15, "*", "star-operator", Operator::Right ) { ///Normally this should have a priority of 16, but that would need changes to the expression-parsin g-loop
}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -285,7 +285,7 @@ class AddressOperator : public UnaryOperator {
public:
AddressOperator() : UnaryOperator( 16, "&", "address-operator", Operator::Right ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& /*innerParams*/ );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& /*innerParams*/ );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -296,9 +296,9 @@ class AddressOperator : public UnaryOperator {
class UnaryParenOperator : public UnaryOperator {
public:
///Identstring should be both parens, for Example "[]" or "()"
- UnaryParenOperator( int priority , QString identString, QString description, Operator::BindingSide binding ) : UnaryOperator( priority, identString, description, binding ) {}
+ UnaryParenOperator( int priority , TQString identString, TQString description, Operator::BindingSide binding ) : UnaryOperator( priority, identString, description, binding ) {}
- virtual OperatorIdentification identify( QString& str );
+ virtual OperatorIdentification identify( TQString& str );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -309,7 +309,7 @@ class IndexOperator : public UnaryParenOperator {
public:
IndexOperator() : UnaryParenOperator( 17, "[]", "index-operator", Operator::Left ) {}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -321,11 +321,11 @@ class ParenOperator : public UnaryParenOperator {
public:
ParenOperator() : UnaryParenOperator( 16, "()", "paren-operator", Operator::Left ) {}
- virtual bool checkParams( const QValueList<EvaluationResult>& params ) {
+ virtual bool checkParams( const TQValueList<EvaluationResult>& params ) {
return !params.isEmpty();
}
- virtual EvaluationResult unaryApply( EvaluationResult param, const QValueList<EvaluationResult>& innerParams );
+ virtual EvaluationResult unaryApply( EvaluationResult param, const TQValueList<EvaluationResult>& innerParams );
virtual bool canBeType( BindingSide side ) {
return false;
@@ -354,7 +354,7 @@ class ExpressionEvaluation {
vector[ (*it)->position ]().
*/
- virtual EvaluationResult evaluateExpressionInternal( QString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression = true );
+ virtual EvaluationResult evaluateExpressionInternal( TQString expr, EvaluationResult scope, SimpleContext * ctx, SimpleContext* innerCtx , bool canBeTypeExpression = true );
///Locates types or members
EvaluationResult evaluateAtomicExpression( TypeDesc expr, EvaluationResult scope, SimpleContext * ctx = 0, bool canBeTypeExpression = true );