diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 11:33:53 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 11:33:53 +0100 |
commit | 52fe0c39457421e075959179ee6b64a20b96f0d9 (patch) | |
tree | e6dd000114d104bf6286d74682feb694b3cb97a3 /include/value.h | |
parent | fa02aa127d2c4261d15123829e44f6d997444abc (diff) |
types are not a C++11 class, introduced FixedValue class that can not change type, and implemented both Object and Array to make use of that type, implemented - but not yet tested - Base::value() method
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/value.h b/include/value.h index d4fae0b..fc6e4fe 100644 --- a/include/value.h +++ b/include/value.h @@ -285,13 +285,13 @@ public: * Check if the value is of a certain type * @return bool */ - bool isNull() const { return type() == nullType; } - bool isNumeric() const { return type() == numericType; } - bool isBool() const { return type() == boolType; } - bool isString() const { return type() == stringType; } - bool isFloat() const { return type() == floatType; } - bool isObject() const { return type() == objectType; } - bool isArray() const { return type() == arrayType; } + bool isNull() const { return type() == Type::Null; } + bool isNumeric() const { return type() == Type::Numeric; } + bool isBool() const { return type() == Type::Bool; } + bool isString() const { return type() == Type::String; } + bool isFloat() const { return type() == Type::Float; } + bool isObject() const { return type() == Type::Object; } + bool isArray() const { return type() == Type::Array; } bool isCallable() const; /** |