#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< Entry > | m_backedUpEntries |
bool | m_committed |
構成 | |
struct | Entry |
Checkpoint.h の 43 行で定義されています。
Checkpoint.h の 47 行で定義されています。
Onikiri::Checkpoint::Checkpoint | ( | size_t | dataRefSize | ) | [inline] |
Checkpoint.h の 49 行で定義されています。
00049 : 00050 m_committed( false ), 00051 m_backedUpEntries( dataRefSize ) 00052 { 00053 };
Onikiri::Checkpoint::~Checkpoint | ( | ) | [inline] |
void Onikiri::Checkpoint::Commit | ( | ) | [inline] |
bool Onikiri::Checkpoint::GetIterator | ( | const CheckpointedDataHandle | handle, | |
BackupIterator * | iterator | |||
) | const [inline] |
Checkpoint.h の 80 行で定義されています。
参照先 ASSERT・m_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] |
void Onikiri::Checkpoint::SetIterator | ( | CheckpointedDataHandle | handle, | |
BackupIterator | i | |||
) | [inline] |
Checkpoint.h の 72 行で定義されています。
参照先 ASSERT・m_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] |
bool Onikiri::Checkpoint::m_committed [protected] |