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

ゼロを境界とする範囲チェック用例外クラス [詳解]

tadah_fussy::exception::ZeroLimits< T > の継承関係図
tadah_fussy::exception::Domain tadah_fussy::exception::NegativeNumber< T > tadah_fussy::exception::NotPositiveNumber< T >

公開メンバ関数

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

詳解

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

ゼロを境界とする範囲チェック用例外クラス

「ゼロ以上」や「ゼロ未満」など、ゼロを境界とする範囲チェックに利用する。

テンプレート引数の T は値の型を表す。

構築子と解体子

◆ ZeroLimits()

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

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

引数
info例外に対する情報
invalidValue不正値

関数詳解

◆ invalidValue()

template<class T >
T tadah_fussy::exception::ZeroLimits< T >::invalidValue ( ) const
inline

不正値を返す

戻り値
不正値

◆ printInfo()

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

不正値・指定範囲の出力

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

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


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