Extending Qt Creator Manual | ValueOwner

Extending Qt Creator Manual 4.7.1

# 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 QmlJS::SharedValueOwner *shared = 0)
virtual | ~ValueOwner()
const QmlJS::AnchorLineValue * | anchorLineValue() const
const QmlJS::FunctionValue * | arrayCtor() const
const QmlJS::ObjectValue * | arrayPrototype() const
const QmlJS::FunctionValue * | booleanCtor() const
const QmlJS::ObjectValue * | booleanPrototype() const
const QmlJS::BooleanValue * | booleanValue() const
const QmlJS::ColorValue * | colorValue() const
const QmlJS::Value * | convertToBoolean(const QmlJS::Value *value)
const QmlJS::Value * | convertToNumber(const QmlJS::Value *value)
const QmlJS::Value * | convertToObject(const QmlJS::Value *value)
const QmlJS::Value * | convertToString(const QmlJS::Value *value)
QmlJS::CppQmlTypes & | cppQmlTypes()
const QmlJS::CppQmlTypes & | cppQmlTypes() const
const QmlJS::FunctionValue * | dateCtor() const
const QmlJS::ObjectValue * | datePrototype() const
const QmlJS::Value * | defaultValueForBuiltinType(const QString &typeName) const
const QmlJS::FunctionValue * | functionCtor() const
const QmlJS::ObjectValue * | functionPrototype() const
const QmlJS::ObjectValue * | globalObject() const
const QmlJS::IntValue * | intValue() const
const QmlJS::ObjectValue * | mathObject() const
QmlJS::ObjectValue * | newObject(const QmlJS::Value *prototype)
QmlJS::ObjectValue * | newObject()
const QmlJS::NullValue * | nullValue() const
const QmlJS::FunctionValue * | numberCtor() const
const QmlJS::ObjectValue * | numberPrototype() const
const QmlJS::NumberValue * | numberValue() const
const QmlJS::FunctionValue * | objectCtor() const
const QmlJS::ObjectValue * | objectPrototype() const
const QmlJS::ObjectValue * | qmlFontObject()
const QmlJS::ObjectValue * | qmlMatrix4x4Object()
const QmlJS::ObjectValue * | qmlPointObject()
const QmlJS::ObjectValue * | qmlQuaternionObject()
const QmlJS::ObjectValue * | qmlRectObject()
const QmlJS::ObjectValue * | qmlSizeObject()
const QmlJS::ObjectValue * | qmlVector2DObject()
const QmlJS::ObjectValue * | qmlVector3DObject()
const QmlJS::ObjectValue * | qmlVector4DObject()
const QmlJS::ObjectValue * | qtObject() const
const QmlJS::RealValue * | realValue() const
const QmlJS::FunctionValue * | regexpCtor() const
const QmlJS::ObjectValue * | regexpPrototype() const
void | registerValue(QmlJS::Value *value)
const QmlJS::FunctionValue * | stringCtor() const
const QmlJS::ObjectValue * | stringPrototype() const
const QmlJS::StringValue * | stringValue() const
QString | typeId(const QmlJS::Value *value)
const QmlJS::UndefinedValue * | undefinedValue() const
const QmlJS::UnknownValue * | unknownValue() const
const QmlJS::UrlValue * | urlValue() const

## Static Public Members

QmlJS::SharedValueOwner * | sharedValueOwner(QString kind = ...)

## Protected Functions

QmlJS::Function * | addFunction(QmlJS::ObjectValue *object, const QString &name, const QmlJS::Value *result, int argumentCount = 0, int optionalCount = 0, bool variadic = false)
QmlJS::Function * | addFunction(QmlJS::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 QmlJS::SharedValueOwner *shared = 0)

Default constructs an instance of ValueOwner.

### `[virtual]` ValueOwner::~ValueOwner()

Destroys the instance of ValueOwner. The destructor is virtual.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

### QmlJS::ObjectValue *ValueOwner::newObject()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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