mongo::DiskLoc Class Reference

#include <diskloc.h>

List of all members.

Public Types

enum  SentinelValues { NullOfs = -1, MaxFiles = 16000 }

Public Member Functions

int a () const
void assertOk ()
const BtreeBucketbtree () const
BtreeBucketbtreemod () const
int compare (const DiskLoc &b) const
 DiskLoc (const DiskLoc &l)
 DiskLoc ()
 DiskLoc (int a, int b)
DeletedRecorddrec () const
Extentext () const
int getOfs () const
int & GETOFS ()
void inc (int amt)
bool isNull () const
bool isValid () const
void Null ()
BSONObj obj () const
bool operator!= (const DiskLoc &b) const
bool operator< (const DiskLoc &b) const
const DiskLocoperator= (const DiskLoc &b)
bool operator== (const DiskLoc &b) const
bool questionable () const
Recordrec () const
bool sameFile (DiskLoc b)
void set (int a, int b)
void setInvalid ()
BSONObj toBSONObj () const
string toString () const
DiskLocwriting () const

Private Attributes

int _a
int ofs

Detailed Description

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)

Definition at line 40 of file diskloc.h.


Member Enumeration Documentation

Enumerator:
NullOfs 
MaxFiles 

Definition at line 46 of file diskloc.h.


Constructor & Destructor Documentation

mongo::DiskLoc::DiskLoc ( int  a,
int  b 
) [inline]

Definition at line 51 of file diskloc.h.

mongo::DiskLoc::DiskLoc (  )  [inline]

Definition at line 52 of file diskloc.h.

mongo::DiskLoc::DiskLoc ( const DiskLoc l  )  [inline]

Definition at line 53 of file diskloc.h.


Member Function Documentation

int mongo::DiskLoc::a (  )  const [inline]

Definition at line 86 of file diskloc.h.

void mongo::DiskLoc::assertOk (  )  [inline]

Definition at line 69 of file diskloc.h.

const BtreeBucket * mongo::DiskLoc::btree (  )  const [inline]

Definition at line 426 of file pdfile.h.

BtreeBucket* mongo::DiskLoc::btreemod (  )  const
int mongo::DiskLoc::compare ( const DiskLoc b  )  const [inline]

Definition at line 116 of file diskloc.h.

DeletedRecord * mongo::DiskLoc::drec (  )  const [inline]

Definition at line 419 of file pdfile.h.

Extent * mongo::DiskLoc::ext (  )  const [inline]

Definition at line 423 of file pdfile.h.

int mongo::DiskLoc::getOfs (  )  const [inline]

Definition at line 89 of file diskloc.h.

int& mongo::DiskLoc::GETOFS (  )  [inline]

Definition at line 88 of file diskloc.h.

void mongo::DiskLoc::inc ( int  amt  )  [inline]

Definition at line 95 of file diskloc.h.

bool mongo::DiskLoc::isNull (  )  const [inline]

Definition at line 64 of file diskloc.h.

bool mongo::DiskLoc::isValid (  )  const [inline]

Definition at line 74 of file diskloc.h.

void mongo::DiskLoc::Null (  )  [inline]

Definition at line 65 of file diskloc.h.

BSONObj mongo::DiskLoc::obj (  )  const [inline]

Definition at line 416 of file pdfile.h.

bool mongo::DiskLoc::operator!= ( const DiskLoc b  )  const [inline]

Definition at line 107 of file diskloc.h.

bool mongo::DiskLoc::operator< ( const DiskLoc b  )  const [inline]

Definition at line 122 of file diskloc.h.

const DiskLoc& mongo::DiskLoc::operator= ( const DiskLoc b  )  [inline]

Definition at line 110 of file diskloc.h.

bool mongo::DiskLoc::operator== ( const DiskLoc b  )  const [inline]

Definition at line 104 of file diskloc.h.

bool mongo::DiskLoc::questionable (  )  const [inline]

Definition at line 58 of file diskloc.h.

Record * mongo::DiskLoc::rec (  )  const [inline]

Definition at line 413 of file pdfile.h.

bool mongo::DiskLoc::sameFile ( DiskLoc  b  )  [inline]

Definition at line 100 of file diskloc.h.

void mongo::DiskLoc::set ( int  a,
int  b 
) [inline]

Definition at line 90 of file diskloc.h.

void mongo::DiskLoc::setInvalid (  )  [inline]

Definition at line 70 of file diskloc.h.

BSONObj mongo::DiskLoc::toBSONObj (  )  const [inline]

Definition at line 84 of file diskloc.h.

string mongo::DiskLoc::toString (  )  const [inline]

Definition at line 76 of file diskloc.h.

DiskLoc & mongo::DiskLoc::writing (  )  const [inline]

Marks this disk loc for writing

Returns:
a non const reference to this disk loc This function explicitly signals we are writing and casts away const

declare that we are modifying a diskloc and this is a datafile write.

Definition at line 199 of file dur.h.


Member Data Documentation

int mongo::DiskLoc::_a [private]

Definition at line 41 of file diskloc.h.

int mongo::DiskLoc::ofs [private]

Definition at line 42 of file diskloc.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:55 2013