diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-01 08:06:06 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-01 08:06:06 (GMT) |
commit | 27ecd0b1d0bf0114b465beeb4db482f0f1f87c52 (patch) | |
tree | fbf5c869321f15b75b6f5c1c2299b5f5fd960e18 /openscad.h | |
parent | b7ca4bfdb38b8caf153f6d93b1d3959f8ffd53ca (diff) |
Clifford Wolf:
Another cleanup in expression handling
git-svn-id: http://svn.clifford.at/openscad/trunk@43 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r-- | openscad.h | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -104,11 +104,23 @@ public: Value(const Value &v); Value& operator = (const Value &v); + Value operator ! () const; + Value operator && (const Value &v) const; + Value operator || (const Value &v) const; + Value operator + (const Value &v) const; Value operator - (const Value &v) const; Value operator * (const Value &v) const; Value operator / (const Value &v) const; Value operator % (const Value &v) const; + + Value operator < (const Value &v) const; + Value operator <= (const Value &v) const; + Value operator == (const Value &v) const; + Value operator != (const Value &v) const; + Value operator >= (const Value &v) const; + Value operator > (const Value &v) const; + Value inv() const; bool getnum(double &v) const; @@ -131,8 +143,11 @@ public: QString call_funcname; QVector<QString> call_argnames; - // Math operators: * / % + - - // Condition (?: operator): ? + // Boolean: ! && || + // Operators: * / % + - + // Relations: < <= == != >= > + // Vector element: [] + // Condition operator: ?: // Invert (prefix '-'): I // Constant value: C // Create Range: R @@ -141,7 +156,7 @@ public: // Lookup Variable: L // Lookup member per name: N // Function call: F - char type; + QString type; Expression(); ~Expression(); |