クラス テンプレート Onikiri::pool_body< T >::pool_stack< U >

#include <pool_allocator.h>

Onikiri::pool_body< T >::pool_stack< U >のコラボレーション図

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

Public メソッド

 pool_stack ()
void pop ()
void push (const U &v)
size_t size ()
U & top ()

説明

template<typename T>
template<typename U>
class Onikiri::pool_body< T >::pool_stack< U >

pool_allocator.h64 行で定義されています。


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

template<typename T>
template<typename U>
Onikiri::pool_body< T >::pool_stack< U >::pool_stack (  )  [inline]

pool_allocator.h70 行で定義されています。

00070                          : 
00071                 stack_body(POOL_ALLOCATOR_CHUNK_SIZE_BASE),
00072                 stack_top(0)
00073             {
00074             };


関数

template<typename T>
template<typename U>
void Onikiri::pool_body< T >::pool_stack< U >::pop (  )  [inline]

pool_allocator.h85 行で定義されています。

参照元 Onikiri::pool_body< T >::allocate().

00086             {
00087                 stack_top--;
00088             }

Here is the caller graph for this function:

template<typename T>
template<typename U>
void Onikiri::pool_body< T >::pool_stack< U >::push ( const U &  v  )  [inline]

pool_allocator.h76 行で定義されています。

参照元 Onikiri::pool_body< T >::allocate_chank()Onikiri::pool_body< T >::deallocate().

00077             {
00078                 if(stack_body.size() <= stack_top){
00079                     stack_body.resize(stack_body.size()*2);
00080                 }
00081                 stack_body[stack_top] = v;
00082                 stack_top++;
00083             }

Here is the caller graph for this function:

template<typename T>
template<typename U>
size_t Onikiri::pool_body< T >::pool_stack< U >::size (  )  [inline]

pool_allocator.h96 行で定義されています。

参照元 Onikiri::pool_body< T >::allocate().

00097             {
00098                 return stack_top;
00099             }

Here is the caller graph for this function:

template<typename T>
template<typename U>
U& Onikiri::pool_body< T >::pool_stack< U >::top (  )  [inline]

pool_allocator.h90 行で定義されています。

参照元 Onikiri::pool_body< T >::allocate().

00091             {
00092                 assert(stack_top != 0);
00093                 return stack_body[stack_top - 1];
00094             }

Here is the caller graph for this function:


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