System.DelphiInterface.operator =
C++
DelphiInterface<T>& __fastcall operator =(const DelphiInterface<ANOTHERINTF> &rhs)
DelphiInterface<T>& __fastcall operator =(const DelphiInterface<T>& rhs)
DelphiInterface<T>& __fastcall operator =(T *rhs)
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | systobj.h | System | DelphiInterface |
説明
DelphiInterface に値を割り当てます。
この代入演算子は,基底の型のインターフェースポインタから,または同じインターフェース型をラップする別の DelphiInterface オブジェクトから基底のインターフェースに値を割り当てます。
この演算子は,参照カウントのすべての課題を管理します。つまり,この演算子は,割り当ての前に現在のインターフェース(あれば)の参照カウントをデクリメントし,新しく割り当てられるインターフェース(あれば)の参照カウントをインクリメントします。