QDoubleComplexNumber Class


The OPC UA DoubleComplexNumber type. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QDoubleComplexNumber(const QOpcUa::QDoubleComplexNumber &)
QDoubleComplexNumber(double real, double imaginary)
double imaginary() const
double real() const
void setImaginary(double imaginary)
void setReal(double real)
QVariant operator QVariant() const
QOpcUa::QDoubleComplexNumber &operator=(const QOpcUa::QDoubleComplexNumber &rhs)
bool operator==(const QOpcUa::QDoubleComplexNumber &rhs) const

Detailed Description

The OPC UA DoubleComplexNumber type.

The DoubleComplexNumberType defined in OPC-UA part 8, 5.6.5. It stores a complex number with double precision.

Member Function Documentation


Default constructs an instance of QDoubleComplexNumber.

QDoubleComplexNumber::QDoubleComplexNumber(const QOpcUa::QDoubleComplexNumber &)

Default constructs an instance of QDoubleComplexNumber.

QDoubleComplexNumber::QDoubleComplexNumber(double real, double imaginary)

Constructs a double complex number with real part real and imaginary part imaginary.


Destroys the instance of QDoubleComplexNumber.

double QDoubleComplexNumber::imaginary() const

Returns the imaginary part of the complex number.

See also setImaginary().

double QDoubleComplexNumber::real() const

Returns the real part of the complex number.

See also setReal().

void QDoubleComplexNumber::setImaginary(double imaginary)

Sets the imaginary part of the complex number to imaginary.

See also imaginary().

void QDoubleComplexNumber::setReal(double real)

Sets the real part of the complex number to real.

See also real().

QVariant QDoubleComplexNumber::operator QVariant() const

Converts this double complex number to QVariant.

QOpcUa::QDoubleComplexNumber &QDoubleComplexNumber::operator=(const QOpcUa::QDoubleComplexNumber &rhs)

Sets the values from rhs in this double complex number.

bool QDoubleComplexNumber::operator==(const QOpcUa::QDoubleComplexNumber &rhs) const

Returns true if this double complex number has the same value as rhs.

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.