summaryrefslogtreecommitdiff
path: root/src/variable.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-16 22:32:56 -0700
committerMike Buland <eichlan@xagasoft.com>2012-01-16 22:32:56 -0700
commit3afa514e11dc16e3a166b39ad411465abd971d8a (patch)
tree3fc9a9b62682c2905909e749f461034634d78903 /src/variable.h
parent92f50ee62101b67e768b75c9111af3d0258c6ddd (diff)
downloadstage-17aa6057c23c8cf96136c4e2755198644d743701.tar.gz
stage-17aa6057c23c8cf96136c4e2755198644d743701.tar.bz2
stage-17aa6057c23c8cf96136c4e2755198644d743701.tar.xz
stage-17aa6057c23c8cf96136c4e2755198644d743701.zip
Lists (arrays) are now properly inedxable.0.02
Diffstat (limited to 'src/variable.h')
-rw-r--r--src/variable.h7
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;