diff options
Diffstat (limited to 'src/variable.h')
-rw-r--r-- | src/variable.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/variable.h b/src/variable.h index 2eedcbb..2e84ae1 100644 --- a/src/variable.h +++ b/src/variable.h | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #include <bu/string.h> | 6 | #include <bu/string.h> |
7 | #include <bu/hash.h> | 7 | #include <bu/hash.h> |
8 | #include <bu/array.h> | ||
8 | 9 | ||
9 | #include "enums.h" | 10 | #include "enums.h" |
10 | 11 | ||
@@ -52,7 +53,7 @@ public: | |||
52 | 53 | ||
53 | Type getType() const { return eType; } | 54 | Type getType() const { return eType; } |
54 | 55 | ||
55 | typedef Bu::List<Variable> VariableList; | 56 | typedef Bu::Array<Variable> VariableArray; |
56 | typedef Bu::Hash<Variable, Variable> VariableHash; | 57 | typedef Bu::Hash<Variable, Variable> VariableHash; |
57 | 58 | ||
58 | bool getBool() const; | 59 | bool getBool() const; |
@@ -61,7 +62,7 @@ public: | |||
61 | Bu::String getString() const; | 62 | Bu::String getString() const; |
62 | VariableRef getVariableRef() const; | 63 | VariableRef getVariableRef() const; |
63 | Variable *getVariablePtr() const; | 64 | Variable *getVariablePtr() const; |
64 | const VariableList &getList() const; | 65 | const VariableArray &getList() const; |
65 | const VariableHash &getHash() const; | 66 | const VariableHash &getHash() const; |
66 | 67 | ||
67 | Variable to( Type e ) const; | 68 | Variable to( Type e ) const; |
@@ -101,7 +102,7 @@ private: | |||
101 | double fValue; | 102 | double fValue; |
102 | bool bValue; | 103 | bool bValue; |
103 | Bu::String *sValue; | 104 | Bu::String *sValue; |
104 | VariableList *lValue; | 105 | VariableArray *lValue; |
105 | VariableHash *hValue; | 106 | VariableHash *hValue; |
106 | VariableRef *rValue; | 107 | VariableRef *rValue; |
107 | Variable *pValue; | 108 | Variable *pValue; |