Common Library  0.9.5
tadah_fussy::exception::NotEqualLength< T > クラステンプレート

長さを比較して等しくなかった場合に投げられる例外クラス [詳解]

tadah_fussy::exception::NotEqualLength< T > の継承関係図
tadah_fussy::exception::Length

公開メンバ関数

 NotEqualLength (const std::string &info, T diff1, T diff2)
 二つの長さを指定して構築 [詳解]
 
diff1 () const
 長さ 1 を返す [詳解]
 
diff2 () const
 長さ 2 を返す [詳解]
 
void printInfo (std::ostream &os) const
 二つの長さの出力 [詳解]
 
- 基底クラス tadah_fussy::exception::Length に属する継承公開メンバ関数
 Length (const std::string &info)
 例外に関する情報を指定して構築 [詳解]
 

詳解

template<class T>
class tadah_fussy::exception::NotEqualLength< T >

長さを比較して等しくなかった場合に投げられる例外クラス

内部に両者の長さを保持する。

テンプレート引数の T は通常、対象イテレータやコンテナクラスの difference_type となる。

構築子と解体子

◆ NotEqualLength()

template<class T >
tadah_fussy::exception::NotEqualLength< T >::NotEqualLength ( const std::string &  info,
diff1,
diff2 
)
inline

二つの長さを指定して構築

引数
info例外に関する情報
diff1長さ 1
diff2長さ 2

関数詳解

◆ diff1()

template<class T >
T tadah_fussy::exception::NotEqualLength< T >::diff1 ( ) const
inline

長さ 1 を返す

戻り値
長さ 1

◆ diff2()

template<class T >
T tadah_fussy::exception::NotEqualLength< T >::diff2 ( ) const
inline

長さ 2 を返す

戻り値
長さ 2

◆ printInfo()

template<class T >
void tadah_fussy::exception::NotEqualLength< T >::printInfo ( std::ostream &  os) const
inlinevirtual

二つの長さの出力

引数
os出力ストリームへの参照
戻り値
なし

tadah_fussy::exception::Lengthを実装しています。


このクラス詳解は次のファイルから抽出されました: