![]() |
Storage Engine API
|
represents a disk location/offset on disk in a database. More...
#include <diskloc.h>
represents a disk location/offset on disk in a database.
64 bits. it is assumed these will be passed around by value a lot so don't do anything to make them large (such as adding a virtual function)
Public Types | |
| enum | SentinelValues { NullOfs = -1, MaxFiles = 16000, InvalidRepr = -2LL } |
Public Member Functions | |
| DiskLoc (int a, int Ofs) | |
| DiskLoc () | |
| bool | questionable () const |
| bool | isNull () const |
| DiskLoc & | Null () |
| void | assertOk () const |
| DiskLoc & | setInvalid () |
| bool | isValid () const |
| std::string | toString () const |
| BSONObj | toBSONObj () const |
| int | a () const |
| int & | GETOFS () |
| int | getOfs () const |
| void | set (int a, int b) |
| void | inc (int amt) |
| bool | sameFile (DiskLoc b) |
| bool | operator== (const DiskLoc &b) const |
| bool | operator!= (const DiskLoc &b) const |
| int | compare (const DiskLoc &b) const |
| RecordId | toRecordId () const |
Static Public Member Functions | |
| static DiskLoc | min () |
| static DiskLoc | max () |
| static DiskLoc | fromRecordId (RecordId id) |
Private Attributes | |
| int | _a |
| int | ofs |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |