ValueOwner Class
(QmlJS::ValueOwner)The ValueOwner class manages the lifetime of QmlJS::Values. More...
| Header: | #include <ValueOwner> |
Public Functions
| ValueOwner(const SharedValueOwner *shared = 0) | |
| virtual | ~ValueOwner() |
| const AnchorLineValue * | anchorLineValue() const |
| const FunctionValue * | arrayCtor() const |
| const ObjectValue * | arrayPrototype() const |
| const FunctionValue * | booleanCtor() const |
| const ObjectValue * | booleanPrototype() const |
| const BooleanValue * | booleanValue() const |
| const ColorValue * | colorValue() const |
| const Value * | convertToBoolean(const Value *value) |
| const Value * | convertToNumber(const Value *value) |
| const Value * | convertToObject(const Value *value) |
| const Value * | convertToString(const Value *value) |
| CppQmlTypes & | cppQmlTypes() |
| const CppQmlTypes & | cppQmlTypes() const |
| const FunctionValue * | dateCtor() const |
| const ObjectValue * | datePrototype() const |
| const Value * | defaultValueForBuiltinType(const QString &typeName) const |
| const FunctionValue * | functionCtor() const |
| const ObjectValue * | functionPrototype() const |
| const ObjectValue * | globalObject() const |
| const IntValue * | intValue() const |
| const ObjectValue * | mathObject() const |
| ObjectValue * | newObject(const Value *prototype) |
| ObjectValue * | newObject() |
| const NullValue * | nullValue() const |
| const FunctionValue * | numberCtor() const |
| const ObjectValue * | numberPrototype() const |
| const NumberValue * | numberValue() const |
| const FunctionValue * | objectCtor() const |
| const ObjectValue * | objectPrototype() const |
| const ObjectValue * | qmlFontObject() |
| const ObjectValue * | qmlKeysObject() |
| const ObjectValue * | qmlMatrix4x4Object() |
| const ObjectValue * | qmlPointObject() |
| const ObjectValue * | qmlQuaternionObject() |
| const ObjectValue * | qmlRectObject() |
| const ObjectValue * | qmlSizeObject() |
| const ObjectValue * | qmlVector2DObject() |
| const ObjectValue * | qmlVector3DObject() |
| const ObjectValue * | qmlVector4DObject() |
| const ObjectValue * | qtObject() const |
| const RealValue * | realValue() const |
| const FunctionValue * | regexpCtor() const |
| const ObjectValue * | regexpPrototype() const |
| void | registerValue(Value *value) |
| const FunctionValue * | stringCtor() const |
| const ObjectValue * | stringPrototype() const |
| const StringValue * | stringValue() const |
| QString | typeId(const Value *value) |
| const UndefinedValue * | undefinedValue() const |
| const UnknownValue * | unknownValue() const |
| const UrlValue * | urlValue() const |
Static Public Members
| SharedValueOwner * | sharedValueOwner(QString kind = QString()) |
Protected Functions
| Function * | addFunction(ObjectValue *object, const QString &name, const Value *result, int argumentCount = 0, int optionalCount = 0, bool variadic = false) |
| Function * | addFunction(ObjectValue *object, const QString &name, int argumentCount = 0, int optionalCount = 0, bool variadic = false) |
Detailed Description
The ValueOwner class manages the lifetime of QmlJS::Values.
Values are usually created on a ValueOwner. When the ValueOwner is destroyed it deletes all values it has registered.
A ValueOwner also provides access to various default values.
See also QmlJS::Value.
Member Function Documentation
ValueOwner::ValueOwner(const SharedValueOwner *shared = 0)
Default constructs an instance of ValueOwner.
[virtual] ValueOwner::~ValueOwner()
Destroys the instance of ValueOwner. The destructor is virtual.