#include <dur_commitjob.h>
Public Member Functions | |
void | absorb (const WriteIntent &other) |
bool | contains (const WriteIntent &rhs) const |
void * | end () const |
unsigned | length () const |
bool | operator< (const WriteIntent &rhs) const |
bool | overlaps (const WriteIntent &rhs) const |
void * | start () const |
WriteIntent (void *a, unsigned b) | |
WriteIntent () | |
Public Attributes | |
void * | w_ptr |
Private Attributes | |
unsigned | len |
void * | p |
Friends | |
ostream & | operator<< (ostream &out, const WriteIntent &wi) |
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.
Definition at line 36 of file dur_commitjob.h.
mongo::dur::WriteIntent::WriteIntent | ( | ) | [inline] |
Definition at line 30 of file dur_commitjob.h.
mongo::dur::WriteIntent::WriteIntent | ( | void * | a, | |
unsigned | b | |||
) | [inline] |
Definition at line 31 of file dur_commitjob.h.
void mongo::dur::WriteIntent::absorb | ( | const WriteIntent & | other | ) |
bool mongo::dur::WriteIntent::contains | ( | const WriteIntent & | rhs | ) | const [inline] |
Definition at line 45 of file dur_commitjob.h.
void* mongo::dur::WriteIntent::end | ( | ) | const [inline] |
Definition at line 34 of file dur_commitjob.h.
unsigned mongo::dur::WriteIntent::length | ( | ) | const [inline] |
Definition at line 35 of file dur_commitjob.h.
bool mongo::dur::WriteIntent::operator< | ( | const WriteIntent & | rhs | ) | const [inline] |
Definition at line 37 of file dur_commitjob.h.
bool mongo::dur::WriteIntent::overlaps | ( | const WriteIntent & | rhs | ) | const [inline] |
Definition at line 40 of file dur_commitjob.h.
void* mongo::dur::WriteIntent::start | ( | ) | const [inline] |
Definition at line 33 of file dur_commitjob.h.
ostream& operator<< | ( | ostream & | out, | |
const WriteIntent & | wi | |||
) | [friend] |
Definition at line 52 of file dur_commitjob.h.
unsigned mongo::dur::WriteIntent::len [private] |
Definition at line 63 of file dur_commitjob.h.
void* mongo::dur::WriteIntent::p [private] |
Definition at line 62 of file dur_commitjob.h.
void* mongo::dur::WriteIntent::w_ptr [mutable] |
Definition at line 56 of file dur_commitjob.h.