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

長さが不正だった場合に対する例外クラス [詳解]

tadah_fussy::exception::InvalidLength< T > の継承関係図
tadah_fussy::exception::Length tadah_fussy::exception::NegativeLength< T > tadah_fussy::exception::NotPositiveLength< T >

公開メンバ関数

 InvalidLength (const std::string &info, T invalidLength)
 不正と判断された長さを指定して構築 [詳解]
 
invalidLength () const
 不正な長さを返す [詳解]
 
void printInfo (std::ostream &os) const
 不正値の出力 [詳解]
 
- 基底クラス tadah_fussy::exception::Length に属する継承公開メンバ関数
 Length (const std::string &info)
 例外に関する情報を指定して構築 [詳解]
 

詳解

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

長さが不正だった場合に対する例外クラス

不正な長さ(負値であるなど)の場合に投げられる例外クラス。内部に不正と判断された長さを保持する。

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

構築子と解体子

◆ InvalidLength()

template<class T >
tadah_fussy::exception::InvalidLength< T >::InvalidLength ( const std::string &  info,
invalidLength 
)
inline

不正と判断された長さを指定して構築

引数
info例外に関する情報
invalidLength不正な長さ

関数詳解

◆ invalidLength()

template<class T >
T tadah_fussy::exception::InvalidLength< T >::invalidLength ( ) const
inline

不正な長さを返す

戻り値
不正な長さ

◆ printInfo()

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

不正値の出力

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

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


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