Storage Engine API
mongo::WiredTigerCursor Class Reference

This is a smart pointer that wraps a WT_CURSOR and knows how to obtain and get from pool. More...

#include <wiredtiger_recovery_unit.h>

Detailed Description

This is a smart pointer that wraps a WT_CURSOR and knows how to obtain and get from pool.

Public Member Functions

 WiredTigerCursor (const std::string &uri, uint64_t tableID, bool forRecordStore, OperationContext *opCtx)
 
 ~WiredTigerCursor ()
 
WT_CURSOR * get () const
 
WT_CURSOR * operator-> () const
 
WiredTigerSessiongetSession ()
 
void reset ()
 
void assertInActiveTxn () const
 

Private Attributes

uint64_t _tableID
 
WiredTigerRecoveryUnit_ru
 
WiredTigerSession_session
 
WT_CURSOR * _cursor
 

Constructor & Destructor Documentation

◆ WiredTigerCursor()

mongo::WiredTigerCursor::WiredTigerCursor ( const std::string &  uri,
uint64_t  tableID,
bool  forRecordStore,
OperationContext *  opCtx 
)

◆ ~WiredTigerCursor()

mongo::WiredTigerCursor::~WiredTigerCursor ( )

Member Function Documentation

◆ assertInActiveTxn()

void mongo::WiredTigerCursor::assertInActiveTxn ( ) const
inline

◆ get()

WT_CURSOR* mongo::WiredTigerCursor::get ( ) const
inline

◆ getSession()

WiredTigerSession* mongo::WiredTigerCursor::getSession ( )
inline

◆ operator->()

WT_CURSOR* mongo::WiredTigerCursor::operator-> ( ) const
inline

◆ reset()

void mongo::WiredTigerCursor::reset ( )

Member Data Documentation

◆ _cursor

WT_CURSOR* mongo::WiredTigerCursor::_cursor
private

◆ _ru

WiredTigerRecoveryUnit* mongo::WiredTigerCursor::_ru
private

◆ _session

WiredTigerSession* mongo::WiredTigerCursor::_session
private

◆ _tableID

uint64_t mongo::WiredTigerCursor::_tableID
private

The documentation for this class was generated from the following files: