matlab::data::Reference<T>
Array の要素への参照を取得するための、テンプレート化された C++ クラス
説明
Reference オブジェクトは、コピーを作成しない、Array の要素への参照です。Reference は次のとおりです。
共有コピーではない
参照を含む配列が有効である限り有効であり続ける
スレッドセーフではない
クラスの詳細
| 名前空間: | matlab::data |
| インクルード: | Reference.hpp |
テンプレート パラメーター
|
| 参照先の要素の型。次のように指定します。
|
コンストラクター
コピー コンストラクター
Reference(const Reference<T>& rhs)
|
| コピーする値。 |
代入演算子のコピー
Reference<T>& operator=(const Reference<T>& rhs)
|
| コピーする値。 |
|
| 更新されたインスタンス。 |
移動代入演算子
Reference<T>& operator=(Reference<T>&& rhs)
|
| 移動させる値。 |
|
| 更新されたインスタンス。 |
なし
移動コンストラクター
Reference(Reference<T>&& rhs)
Reference オブジェクトの内容を新しいインスタンスに移動させます。
|
| 移動させる値。 |
なし
その他の演算子
operator=
Reference<T>& operator=(T rhs)
Reference<T>& operator=(std::string rhs)
Reference<T>& operator=(String rhs)
|
| 代入する値。インデックス付けされる配列は非 |
|
| 代入する文字列。配列は非 |
|
|
|
|
| 更新されたインスタンス。 |
なし
operator<<
std::ostream& operator <<(std::ostream& os, Reference<T> const& rhs)
|
| |
|
|
|
|
operator T()
operator T() const
配列から要素にキャストします。
|
| 配列の要素の共有コピー。 |
なし
operator std::string()
operator std::string() const
std::string に配列をキャストし、std::string のコピーを作成します。この演算子は、std::string にキャストできる型にのみ有効です。
|
| 文字列。 |
| 入力は |
|
|
フリー関数
operator==
inline bool operator ==(Reference<MATLABString> const& lhs, std::string const& rhs)
inline bool operator ==(std::string const& lhs, Reference<MATLABString> const& rhs)
inline bool operator ==(Reference<MATLABString> const& lhs, String const& rhs)
inline bool operator ==(String const& lhs, Reference<MATLABString> const& rhs)
inline bool operator ==(Reference<MATLABString> const& lhs, MATLABString const& rhs)
inline bool operator ==(MATLABString const& lhs, Reference<MATLABString> const& rhs)
inline bool operator ==(Reference<MATLABString> const& lhs, Reference<MATLABString> const& rhs)
template<typename T> bool operator ==(Reference<T> const& lhs, T const& rhs)
template<typename T> bool operator ==(T const& lhs, Reference<T> const& rhs)
template<typename T> bool operator ==(Reference<T> const& lhs, Reference<T> const& rhs)
|
|
| 比較する値。 |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
| 値が等しい場合、 |
|
| 引数を |
バージョン履歴
R2017b で導入