Storage Engine API
mongo::RecordAccessTracker::Slice Class Reference

simple hash map for region -> status this constitutes a single region of time it does chaining, but very short chains More...

Detailed Description

simple hash map for region -> status this constitutes a single region of time it does chaining, but very short chains

Public Member Functions

 Slice ()
 
void reset ()
 
State get (int regionHash, size_t region, short offset)
 
bool put (int regionHash, size_t region, short offset)
 

Private Member Functions

Entry_get (int start, size_t region, bool add)
 

Private Attributes

Entry _data [SliceSize]
 

Constructor & Destructor Documentation

◆ Slice()

mongo::RecordAccessTracker::Slice::Slice ( )

Member Function Documentation

◆ _get()

RecordAccessTracker::Entry * mongo::RecordAccessTracker::Slice::_get ( int  start,
size_t  region,
bool  add 
)
private

◆ get()

RecordAccessTracker::State mongo::RecordAccessTracker::Slice::get ( int  regionHash,
size_t  region,
short  offset 
)

◆ put()

bool mongo::RecordAccessTracker::Slice::put ( int  regionHash,
size_t  region,
short  offset 
)
Returns
true if added, false if full

◆ reset()

void mongo::RecordAccessTracker::Slice::reset ( )

Member Data Documentation

◆ _data

Entry mongo::RecordAccessTracker::Slice::_data[SliceSize]
private

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