クラス テンプレート shttl::counter_array< T >

#include <counter_array.h>

shttl::counter_array< T >のコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public 型

typedef counter_base< T, T & > counter_type
typedef size_t size_type
typedef counter_array< T > this_type
typedef T value_type

Public メソッド

counter_type at (const size_type s)
void construct (size_type size, 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)
 counter_array (size_type size=0, 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 initv () const
value_type max () const
value_type min () const
counter_type operator[] (const size_type s)
size_type size () const
value_type threshold () const
 ~counter_array ()

Protected 変数

value_type m_add
std::vector< value_typem_array
value_type m_initv
value_type m_max
value_type m_min
value_type m_sub
value_type m_threshold

説明

template<typename T = u8>
class shttl::counter_array< T >

counter_array.h45 行で定義されています。


型定義

template<typename T = u8>
typedef counter_base<T, T&> shttl::counter_array< T >::counter_type

counter_array.h52 行で定義されています。

template<typename T = u8>
typedef size_t shttl::counter_array< T >::size_type

counter_array.h49 行で定義されています。

template<typename T = u8>
typedef counter_array<T> shttl::counter_array< T >::this_type

counter_array.h51 行で定義されています。

template<typename T = u8>
typedef T shttl::counter_array< T >::value_type

counter_array.h50 行で定義されています。


コンストラクタとデストラクタ

template<typename T = u8>
shttl::counter_array< T >::counter_array ( size_type  size = 0,
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]

counter_array.h62 行で定義されています。

00071         {
00072             construct( size, initv, min, max, add, sub, threshold );
00073         }

template<typename T = u8>
shttl::counter_array< T >::~counter_array (  )  [inline]

counter_array.h93 行で定義されています。

00094         {
00095         }


関数

template<typename T = u8>
counter_type shttl::counter_array< T >::at ( const size_type  s  )  [inline]

counter_array.h104 行で定義されています。

参照元 shttl::counter_array< uint8_t >::operator[]().

00105         {
00106             return counter_base<T, T&>(
00107                 m_array[s],
00108                 m_initv,
00109                 m_min,
00110                 m_max,
00111                 m_add,
00112                 m_sub,
00113                 m_threshold
00114             );
00115         }

Here is the caller graph for this function:

template<typename T = u8>
void shttl::counter_array< T >::construct ( size_type  size,
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]

counter_array.h75 行で定義されています。

参照元 shttl::counter_array< uint8_t >::counter_array().

00083          {
00084             m_array.resize( size, initv );
00085             m_initv = initv;
00086             m_min   = min;
00087             m_max   = max;
00088             m_add   = add;
00089             m_sub   = sub;
00090             m_threshold = threshold;
00091         }

Here is the caller graph for this function:

template<typename T = u8>
value_type shttl::counter_array< T >::initv (  )  const [inline]

counter_array.h56 行で定義されています。

参照元 shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::counter_array().

00056 { return m_initv;           }

Here is the caller graph for this function:

template<typename T = u8>
value_type shttl::counter_array< T >::max (  )  const [inline]

counter_array.h58 行で定義されています。

参照元 shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::counter_array().

00058 { return m_max;             }

Here is the caller graph for this function:

template<typename T = u8>
value_type shttl::counter_array< T >::min (  )  const [inline]

counter_array.h57 行で定義されています。

参照元 shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::counter_array().

00057 { return m_min;             }

Here is the caller graph for this function:

template<typename T = u8>
counter_type shttl::counter_array< T >::operator[] ( const size_type  s  )  [inline]

counter_array.h99 行で定義されています。

00100         {
00101             return at( s );
00102         }

template<typename T = u8>
size_type shttl::counter_array< T >::size (  )  const [inline]

counter_array.h55 行で定義されています。

参照元 shttl::counter_array< uint8_t >::counter_array().

00055 { return m_array.size();    }

Here is the caller graph for this function:

template<typename T = u8>
value_type shttl::counter_array< T >::threshold (  )  const [inline]

counter_array.h59 行で定義されています。

参照元 shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::counter_array().

00059 { return m_threshold;       }

Here is the caller graph for this function:


変数

template<typename T = u8>
value_type shttl::counter_array< T >::m_add [protected]

counter_array.h123 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct().

template<typename T = u8>
std::vector< value_type > shttl::counter_array< T >::m_array [protected]

counter_array.h118 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::size().

template<typename T = u8>
value_type shttl::counter_array< T >::m_initv [protected]

counter_array.h120 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::initv().

template<typename T = u8>
value_type shttl::counter_array< T >::m_max [protected]

counter_array.h122 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::max().

template<typename T = u8>
value_type shttl::counter_array< T >::m_min [protected]

counter_array.h121 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::min().

template<typename T = u8>
value_type shttl::counter_array< T >::m_sub [protected]

counter_array.h124 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct().

template<typename T = u8>
value_type shttl::counter_array< T >::m_threshold [protected]

counter_array.h125 行で定義されています。

参照元 shttl::counter_array< uint8_t >::at()shttl::counter_array< uint8_t >::construct()shttl::counter_array< uint8_t >::threshold().


このクラスの説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:33:45 2013に生成されました。  doxygen 1.4.7