DxLibEx
dxle::impl::Counter_template< T > Class Template Reference

#include <helper.hpp>

Classes

struct  Cast
 

Public Member Functions

 Counter_template () DXLE_NOEXCEPT_OR_NOTHROW
 
const T & GetInt () const DXLE_NOEXCEPT_OR_NOTHROW
 整数型の値を取得する More...
 
const T & count () const DXLE_NOEXCEPT_OR_NOTHROW
 整数型の値を取得する More...
 
 operator T () const DXLE_NOEXCEPT_OR_NOTHROW
 整数型の値を取得する More...
 
const This_Toperator+ () const DXLE_NOEXCEPT_OR_NOTHROW
 
This_T operator- () const DXLE_NOEXCEPT_OR_NOTHROW
 
This_T operator+ (const T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
This_T operator- (const T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
This_Toperator+= (const T &other) DXLE_NOEXCEPT_OR_NOTHROW
 
This_Toperator-= (const T &other) DXLE_NOEXCEPT_OR_NOTHROW
 
operator- (const This_T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
bool operator< (const This_T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
bool operator> (const This_T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
bool operator<= (const This_T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 
bool operator>= (const This_T &other) const DXLE_NOEXCEPT_OR_NOTHROW
 

Protected Member Functions

 Counter_template (T param) DXLE_NOEXCEPT_OR_NOTHROW
 

Friends

This_T operator+ (const T &other, const This_T &bace) DXLE_NOEXCEPT_OR_NOTHROW
 
This_T operator- (const T &other, const This_T &bace) DXLE_NOEXCEPT_OR_NOTHROW
 

Detailed Description

template<typename T>
class dxle::impl::Counter_template< T >

実装用 カウンタ系 GetNowCountの戻り値を誤って生のまま使うことを防ぐ

Definition at line 25 of file helper.hpp.

Constructor & Destructor Documentation

§ Counter_template() [1/2]

template<typename T>
dxle::impl::Counter_template< T >::Counter_template ( )
inline

Definition at line 32 of file helper.hpp.

§ Counter_template() [2/2]

template<typename T>
dxle::impl::Counter_template< T >::Counter_template ( param)
inlineexplicitprotected

Definition at line 59 of file helper.hpp.

Member Function Documentation

§ count()

template<typename T>
const T& dxle::impl::Counter_template< T >::count ( ) const
inline

整数型の値を取得する

Definition at line 37 of file helper.hpp.

§ GetInt()

template<typename T>
const T& dxle::impl::Counter_template< T >::GetInt ( ) const
inline

整数型の値を取得する

Definition at line 35 of file helper.hpp.

§ operator T()

template<typename T>
dxle::impl::Counter_template< T >::operator T ( ) const
inlineexplicit

整数型の値を取得する

Definition at line 39 of file helper.hpp.

§ operator+() [1/2]

template<typename T>
const This_T& dxle::impl::Counter_template< T >::operator+ ( ) const
inline

Definition at line 41 of file helper.hpp.

§ operator+() [2/2]

template<typename T>
This_T dxle::impl::Counter_template< T >::operator+ ( const T &  other) const
inline

Definition at line 44 of file helper.hpp.

§ operator+=()

template<typename T>
This_T& dxle::impl::Counter_template< T >::operator+= ( const T &  other)
inline

Definition at line 48 of file helper.hpp.

§ operator-() [1/3]

template<typename T>
This_T dxle::impl::Counter_template< T >::operator- ( ) const
inline

Definition at line 42 of file helper.hpp.

§ operator-() [2/3]

template<typename T>
This_T dxle::impl::Counter_template< T >::operator- ( const T &  other) const
inline

Definition at line 45 of file helper.hpp.

§ operator-() [3/3]

template<typename T>
T dxle::impl::Counter_template< T >::operator- ( const This_T other) const
inline

Definition at line 51 of file helper.hpp.

§ operator-=()

template<typename T>
This_T& dxle::impl::Counter_template< T >::operator-= ( const T &  other)
inline

Definition at line 49 of file helper.hpp.

§ operator<()

template<typename T>
bool dxle::impl::Counter_template< T >::operator< ( const This_T other) const
inline

Definition at line 53 of file helper.hpp.

§ operator<=()

template<typename T>
bool dxle::impl::Counter_template< T >::operator<= ( const This_T other) const
inline

Definition at line 55 of file helper.hpp.

§ operator>()

template<typename T>
bool dxle::impl::Counter_template< T >::operator> ( const This_T other) const
inline

Definition at line 54 of file helper.hpp.

§ operator>=()

template<typename T>
bool dxle::impl::Counter_template< T >::operator>= ( const This_T other) const
inline

Definition at line 56 of file helper.hpp.

Friends And Related Function Documentation

§ operator+

template<typename T>
This_T operator+ ( const T &  other,
const This_T bace 
)
friend

Definition at line 46 of file helper.hpp.

§ operator-

template<typename T>
This_T operator- ( const T &  other,
const This_T bace 
)
friend

Definition at line 47 of file helper.hpp.


The documentation for this class was generated from the following file: