Storage Engine API
mongo::dur::WriteIntent Struct Reference

Declaration of an intent to write to a region of a memory mapped view. More...

#include <dur_commitjob.h>

Detailed Description

Declaration of an intent to write to a region of a memory mapped view.

We store the end rather than the start pointer to make operator < faster since that is heavily used in set lookup.

Public Member Functions

 WriteIntent ()
 
 WriteIntent (void *a, unsigned b)
 
voidstart () const
 
voidend () const
 
unsigned length () const
 
bool operator< (const WriteIntent &rhs) const
 
bool overlaps (const WriteIntent &rhs) const
 
bool contains (const WriteIntent &rhs) const
 
void absorb (const WriteIntent &other)
 

Private Attributes

voidp
 
unsigned len
 

Friends

std::ostream & operator<< (std::ostream &out, const WriteIntent &wi)
 

Constructor & Destructor Documentation

◆ WriteIntent() [1/2]

mongo::dur::WriteIntent::WriteIntent ( )
inline

◆ WriteIntent() [2/2]

mongo::dur::WriteIntent::WriteIntent ( void a,
unsigned  b 
)
inline

Member Function Documentation

◆ absorb()

void mongo::dur::WriteIntent::absorb ( const WriteIntent other)

◆ contains()

bool mongo::dur::WriteIntent::contains ( const WriteIntent rhs) const
inline

◆ end()

void* mongo::dur::WriteIntent::end ( ) const
inline

◆ length()

unsigned mongo::dur::WriteIntent::length ( ) const
inline

◆ operator<()

bool mongo::dur::WriteIntent::operator< ( const WriteIntent rhs) const
inline

◆ overlaps()

bool mongo::dur::WriteIntent::overlaps ( const WriteIntent rhs) const
inline

◆ start()

void* mongo::dur::WriteIntent::start ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const WriteIntent wi 
)
friend

Member Data Documentation

◆ len

unsigned mongo::dur::WriteIntent::len
private

◆ p

void* mongo::dur::WriteIntent::p
private

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