ValueOwner Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ValueOwner

Extending Qt Creator Manual 4.5.0

# ValueOwner Class

(QmlJS::ValueOwner)

The ValueOwner class manages the lifetime of QmlJS::Values. More...

Header: | #include <ValueOwner>

- List of all members, including inherited members

## 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 * | 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.

### `[protected]` Function *ValueOwner::addFunction(ObjectValue *object, const QString &name, const Value *result, int argumentCount = 0, int optionalCount = 0, bool variadic = false)

### `[protected]` Function *ValueOwner::addFunction(ObjectValue *object, const QString &name, int argumentCount = 0, int optionalCount = 0, bool variadic = false)

### const AnchorLineValue *ValueOwner::anchorLineValue() const

### const FunctionValue *ValueOwner::arrayCtor() const

### const ObjectValue *ValueOwner::arrayPrototype() const

### const FunctionValue *ValueOwner::booleanCtor() const

### const ObjectValue *ValueOwner::booleanPrototype() const

### const BooleanValue *ValueOwner::booleanValue() const

### const ColorValue *ValueOwner::colorValue() const

### const Value *ValueOwner::convertToBoolean(const Value *value)

### const Value *ValueOwner::convertToNumber(const Value *value)

### const Value *ValueOwner::convertToObject(const Value *value)

### const Value *ValueOwner::convertToString(const Value *value)

### CppQmlTypes &ValueOwner::cppQmlTypes()

### const CppQmlTypes &ValueOwner::cppQmlTypes() const

### const FunctionValue *ValueOwner::dateCtor() const

### const ObjectValue *ValueOwner::datePrototype() const

### const Value *ValueOwner::defaultValueForBuiltinType(const QString &typeName) const

### const FunctionValue *ValueOwner::functionCtor() const

### const ObjectValue *ValueOwner::functionPrototype() const

### const ObjectValue *ValueOwner::globalObject() const

### const IntValue *ValueOwner::intValue() const

### const ObjectValue *ValueOwner::mathObject() const

### ObjectValue *ValueOwner::newObject(const Value *prototype)

### ObjectValue *ValueOwner::newObject()

### const NullValue *ValueOwner::nullValue() const

### const FunctionValue *ValueOwner::numberCtor() const

### const ObjectValue *ValueOwner::numberPrototype() const

### const NumberValue *ValueOwner::numberValue() const

### const FunctionValue *ValueOwner::objectCtor() const

### const ObjectValue *ValueOwner::objectPrototype() const

### const ObjectValue *ValueOwner::qmlFontObject()

### const ObjectValue *ValueOwner::qmlMatrix4x4Object()

### const ObjectValue *ValueOwner::qmlPointObject()

### const ObjectValue *ValueOwner::qmlQuaternionObject()

### const ObjectValue *ValueOwner::qmlRectObject()

### const ObjectValue *ValueOwner::qmlSizeObject()

### const ObjectValue *ValueOwner::qmlVector2DObject()

### const ObjectValue *ValueOwner::qmlVector3DObject()

### const ObjectValue *ValueOwner::qmlVector4DObject()

### const ObjectValue *ValueOwner::qtObject() const

### const RealValue *ValueOwner::realValue() const

### const FunctionValue *ValueOwner::regexpCtor() const

### const ObjectValue *ValueOwner::regexpPrototype() const

### void ValueOwner::registerValue(Value *value)

### `[static]` SharedValueOwner *ValueOwner::sharedValueOwner(QString kind = QString())

### const FunctionValue *ValueOwner::stringCtor() const

### const ObjectValue *ValueOwner::stringPrototype() const

### const StringValue *ValueOwner::stringValue() const

### QString ValueOwner::typeId(const Value *value)

### const UndefinedValue *ValueOwner::undefinedValue() const

### const UnknownValue *ValueOwner::unknownValue() const

### const UrlValue *ValueOwner::urlValue() const