QOpcUaDoubleComplexNumber Class

The OPC UA DoubleComplexNumber type. 更多...

頭: #include <QOpcUaDoubleComplexNumber>
qmake: QT += opcua

公共函數

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

詳細描述

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

成員函數文檔編製

QOpcUaDoubleComplexNumber:: QOpcUaDoubleComplexNumber ( double real , double imaginary )

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

QOpcUaDoubleComplexNumber &QOpcUaDoubleComplexNumber:: operator= (const QOpcUaDoubleComplexNumber & rhs )

設置值從 rhs in this double complex number.

double QOpcUaDoubleComplexNumber:: imaginary () const

Returns the imaginary part of the complex number.

另請參閱 setImaginary ().

double QOpcUaDoubleComplexNumber:: real () const

Returns the real part of the complex number.

另請參閱 setReal ().

void QOpcUaDoubleComplexNumber:: setImaginary ( double imaginary )

Sets the imaginary part of the complex number to imaginary .

另請參閱 imaginary ().

void QOpcUaDoubleComplexNumber:: setReal ( double real )

Sets the real part of the complex number to real .

另請參閱 real ().

QVariant QOpcUaDoubleComplexNumber:: operator QVariant () const

Converts this double complex number to QVariant .

bool QOpcUaDoubleComplexNumber:: operator== (const QOpcUaDoubleComplexNumber & rhs ) const

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