QOpcUaComplexNumber Class

The OPC UA ComplexNumber type. 更多...

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

公共函數

QOpcUaComplexNumber (float real , float imaginary )
QOpcUaComplexNumber & operator= (const QOpcUaComplexNumber & rhs )
float imaginary () const
float real () const
void setImaginary (float imaginary )
void setReal (float real )
QVariant operator QVariant () const
bool operator== (const QOpcUaComplexNumber & rhs ) const

詳細描述

The ComplexNumberType defined in OPC-UA part 8, 5.6.4. It stores a complex number with float precision.

成員函數文檔編製

QOpcUaComplexNumber:: QOpcUaComplexNumber ( float real , float imaginary )

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

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

設置值從 rhs in this complex number.

float QOpcUaComplexNumber:: imaginary () const

Returns the imaginary part of the complex number.

另請參閱 setImaginary ().

float QOpcUaComplexNumber:: real () const

Returns the real part of the complex number.

另請參閱 setReal ().

void QOpcUaComplexNumber:: setImaginary ( float imaginary )

Sets the imaginary part of the complex number to imaginary .

另請參閱 imaginary ().

void QOpcUaComplexNumber:: setReal ( float real )

Sets the real part of the complex number to real .

另請參閱 real ().

QVariant QOpcUaComplexNumber:: operator QVariant () const

Converts this complex number to QVariant .

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

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