クラス Onikiri::Checkpoint

#include <Checkpoint.h>

すべてのメンバ一覧

Public 型

typedef CheckpointedDataBase::BackupIterator BackupIterator

Public メソッド

 Checkpoint (size_t dataRefSize)
void Commit ()
bool GetIterator (const CheckpointedDataHandle handle, BackupIterator *iterator) const
bool IsCommitted () const
void SetIterator (CheckpointedDataHandle handle, BackupIterator i)
 ~Checkpoint ()

Protected 変数

pool_vector< Entrym_backedUpEntries
bool m_committed

構成

struct  Entry


説明

Checkpoint.h43 行で定義されています。


型定義

typedef CheckpointedDataBase::BackupIterator Onikiri::Checkpoint::BackupIterator

Checkpoint.h47 行で定義されています。


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

Onikiri::Checkpoint::Checkpoint ( size_t  dataRefSize  )  [inline]

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

00049                                          : 
00050             m_committed( false ),
00051             m_backedUpEntries( dataRefSize )
00052         {
00053         };

Onikiri::Checkpoint::~Checkpoint (  )  [inline]

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

00056         {
00057         };


関数

void Onikiri::Checkpoint::Commit (  )  [inline]

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

参照先 m_committed.

00060         {
00061             m_committed = true;
00062         }

bool Onikiri::Checkpoint::GetIterator ( const CheckpointedDataHandle  handle,
BackupIterator iterator 
) const [inline]

Checkpoint.h80 行で定義されています。

参照先 ASSERTm_backedUpEntries.

00081         {
00082             ASSERT( m_backedUpEntries.size() > handle, "Invalid handle." );
00083             const Entry* entry = &m_backedUpEntries[ handle ];
00084             if( !entry->valid ){
00085                 return false;
00086             }
00087             else{
00088                 *iterator = entry->iterator;
00089                 return true;
00090             }
00091         }

bool Onikiri::Checkpoint::IsCommitted (  )  const [inline]

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

参照先 m_committed.

00065         {
00066             return m_committed;
00067         }

void Onikiri::Checkpoint::SetIterator ( CheckpointedDataHandle  handle,
BackupIterator  i 
) [inline]

Checkpoint.h72 行で定義されています。

参照先 ASSERTm_backedUpEntries.

参照元 Onikiri::CheckpointedData< uint64_t >::Allocate().

00073         {
00074             ASSERT( handle < m_backedUpEntries.size() );
00075             Entry* entry = &m_backedUpEntries[ handle ];
00076             entry->valid = true;
00077             entry->iterator = i;
00078         }

Here is the caller graph for this function:


変数

pool_vector< Entry > Onikiri::Checkpoint::m_backedUpEntries [protected]

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

参照元 GetIterator()SetIterator().

bool Onikiri::Checkpoint::m_committed [protected]

Checkpoint.h94 行で定義されています。

参照元 Commit()IsCommitted().


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