From 52fe0c39457421e075959179ee6b64a20b96f0d9 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 2 Mar 2014 11:33:53 +0100 Subject: 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 --- include/value.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/value.h') 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; /** -- cgit v1.2.3