summaryrefslogtreecommitdiff
path: root/openscad.h
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-01 08:06:06 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-01 08:06:06 (GMT)
commit27ecd0b1d0bf0114b465beeb4db482f0f1f87c52 (patch)
treefbf5c869321f15b75b6f5c1c2299b5f5fd960e18 /openscad.h
parentb7ca4bfdb38b8caf153f6d93b1d3959f8ffd53ca (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.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/openscad.h b/openscad.h
index 4c7f68f..081a7a0 100644
--- a/openscad.h
+++ b/openscad.h
@@ -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();
contact: Jan Huwald // Impressum