#include <counter.h>
shttl::counter_base< value_type, value_body_type >のコラボレーション図
Public メソッド | |
bool | above_threshold () const |
counter_base (value_body_type value, value_type initv=value_type(), value_type min=0, value_type max=3, value_type add=1, value_type sub=1, value_type threshold=0) | |
value_type | dec () |
value_type | inc () |
value_type | initv () const |
value_type | max () const |
value_type | min () const |
operator value_type () const | |
void | reset () |
void | set (value_type initv=value_type(), value_type min=0, value_type max=3, value_type add=1, value_type sub=1, value_type threshold=0) |
value_type | threshold () const |
Protected 変数 | |
value_type | m_add |
value_type | m_initv |
value_type | m_max |
value_type | m_min |
value_type | m_sub |
value_type | m_threshold |
value_body_type | m_value |
shttl::counter_base< value_type, value_body_type >::counter_base | ( | value_body_type | value, | |
value_type | initv = value_type() , |
|||
value_type | min = 0 , |
|||
value_type | max = 3 , |
|||
value_type | add = 1 , |
|||
value_type | sub = 1 , |
|||
value_type | threshold = 0 | |||
) | [inline, explicit] |
00064 : 00065 m_value( value ), 00066 m_initv( initv ), 00067 m_min ( min ), 00068 m_max ( max ), 00069 m_add ( add ), 00070 m_sub ( sub ), 00071 m_threshold( threshold ) 00072 { 00073 /* static_assert( 00074 sizeof(int) >= sizeof(value_type), 00075 "The size of value_type is too large." 00076 );*/ 00077 }
bool shttl::counter_base< value_type, value_body_type >::above_threshold | ( | ) | const [inline] |
value_type shttl::counter_base< value_type, value_body_type >::dec | ( | ) | [inline] |
value_type shttl::counter_base< value_type, value_body_type >::inc | ( | ) | [inline] |
value_type shttl::counter_base< value_type, value_body_type >::initv | ( | ) | const [inline] |
参照元 shttl::counter_base< value_type, value_type >::set().
00080 { 00081 return m_initv; 00082 }
Here is the caller graph for this function:
value_type shttl::counter_base< value_type, value_body_type >::max | ( | ) | const [inline] |
参照元 shttl::counter_base< value_type, value_type >::set().
00090 { 00091 return m_max; 00092 }
Here is the caller graph for this function:
value_type shttl::counter_base< value_type, value_body_type >::min | ( | ) | const [inline] |
参照元 shttl::counter_base< value_type, value_type >::set().
00085 { 00086 return m_min; 00087 }
Here is the caller graph for this function:
shttl::counter_base< value_type, value_body_type >::operator value_type | ( | ) | const [inline] |
void shttl::counter_base< value_type, value_body_type >::reset | ( | ) | [inline] |
void shttl::counter_base< value_type, value_body_type >::set | ( | value_type | initv = value_type() , |
|
value_type | min = 0 , |
|||
value_type | max = 3 , |
|||
value_type | add = 1 , |
|||
value_type | sub = 1 , |
|||
value_type | threshold = 0 | |||
) | [inline] |
value_type shttl::counter_base< value_type, value_body_type >::threshold | ( | ) | const [inline] |
参照元 shttl::counter_base< value_type, value_type >::set().
00095 { 00096 return m_threshold; 00097 }
Here is the caller graph for this function:
value_type shttl::counter_base< value_type, value_body_type >::m_add [protected] |
value_type shttl::counter_base< value_type, value_body_type >::m_initv [protected] |
value_type shttl::counter_base< value_type, value_body_type >::m_max [protected] |
value_type shttl::counter_base< value_type, value_body_type >::m_min [protected] |
value_type shttl::counter_base< value_type, value_body_type >::m_sub [protected] |
value_type shttl::counter_base< value_type, value_body_type >::m_threshold [protected] |
value_body_type shttl::counter_base< value_type, value_body_type >::m_value [protected] |
参照元 shttl::counter_base< value_type, value_type >::above_threshold()・shttl::counter_base< value_type, value_type >::dec()・shttl::counter_base< value_type, value_type >::inc()・shttl::counter_base< value_type, value_type >::operator value_type ()・shttl::counter_base< value_type, value_type >::reset().