Extending Qt Creator Manual | Function

Extending Qt Creator Manual 4.7.1

# Function Class

(QmlJS::QmlJS::Function)

Inherits: | QmlJS::QmlJS::FunctionValue

- List of all members, including inherited members

## Public Functions

| Function(QmlJS::QmlJS::ValueOwner *valueOwner)
virtual | ~Function()
void | addArgument(const QmlJS::QmlJS::Value *argument, const QmlJS::QString &name = ...)
void | setOptionalNamedArgumentCount(int count)
void | setReturnValue(const QmlJS::QmlJS::Value *returnValue)
void | setVariadic(bool variadic)

## Reimplemented Public Functions

virtual const QmlJS::QmlJS::Value * | argument(int index) const override
virtual QmlJS::QString | argumentName(int index) const override
virtual const QmlJS::QmlJS::Function * | asFunction() const override
virtual bool | isVariadic() const override
virtual int | namedArgumentCount() const override
virtual int | optionalNamedArgumentCount() const override
virtual const QmlJS::QmlJS::Value * | returnValue() const override

- 8 public functions inherited from QmlJS::QmlJS::FunctionValue
- 16 public functions inherited from QmlJS::QmlJS::ObjectValue
- 29 public functions inherited from QmlJS::QmlJS::Value

## Member Function Documentation

### Function::Function(QmlJS::QmlJS::ValueOwner *valueOwner)

Default constructs an instance of Function.

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

Destroys the instance of Function. The destructor is virtual.

### void Function::addArgument(const QmlJS::QmlJS::Value *argument, const QmlJS::QString &name = ...)

### `[override virtual]` const QmlJS::QmlJS::Value *Function::argument(int index) const

### `[override virtual]` QmlJS::QString Function::argumentName(int index) const

### `[override virtual]` const QmlJS::QmlJS::Function *Function::asFunction() const

### `[override virtual]` bool Function::isVariadic() const

### `[override virtual]` int Function::namedArgumentCount() const

### `[override virtual]` int Function::optionalNamedArgumentCount() const

See also setOptionalNamedArgumentCount().

### `[override virtual]` const QmlJS::QmlJS::Value *Function::returnValue() const

See also setReturnValue().

### void Function::setOptionalNamedArgumentCount(int count)

See also optionalNamedArgumentCount().

### void Function::setReturnValue(const QmlJS::QmlJS::Value *returnValue)

See also returnValue().

### void Function::setVariadic(bool variadic)

See also isVariadic().