mongo::OpTime Class Reference

#include <optime.h>

List of all members.

Public Member Functions

unsigned long long asDate () const
long long asLL () const
unsigned getSecs () const
bool isNull () const
bool operator!= (const OpTime &r) const
bool operator< (const OpTime &r) const
bool operator<= (const OpTime &r) const
bool operator== (const OpTime &r) const
bool operator> (const OpTime &r) const
bool operator>= (const OpTime &r) const
 OpTime ()
 OpTime (const OpTime &other)
 OpTime (unsigned a, unsigned b)
 OpTime (ReplTime x)
 OpTime (Date_t date)
string toString () const
string toStringLong () const
string toStringPretty () const

Static Public Member Functions

static OpTime now ()
static void setLast (const Date_t &date)

Private Attributes

unsigned i
unsigned secs

Static Private Attributes

static OpTime last

Detailed Description

Definition at line 38 of file optime.h.


Constructor & Destructor Documentation

mongo::OpTime::OpTime ( Date_t  date  )  [inline]

Definition at line 49 of file optime.h.

mongo::OpTime::OpTime ( ReplTime  x  )  [inline]

Definition at line 52 of file optime.h.

mongo::OpTime::OpTime ( unsigned  a,
unsigned  b 
) [inline]

Definition at line 55 of file optime.h.

mongo::OpTime::OpTime ( const OpTime other  )  [inline]

Definition at line 59 of file optime.h.

mongo::OpTime::OpTime (  )  [inline]

Definition at line 63 of file optime.h.


Member Function Documentation

unsigned long long mongo::OpTime::asDate (  )  const [inline]

Definition at line 97 of file optime.h.

long long mongo::OpTime::asLL (  )  const [inline]

Definition at line 100 of file optime.h.

unsigned mongo::OpTime::getSecs (  )  const [inline]

Definition at line 46 of file optime.h.

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

Definition at line 104 of file optime.h.

static OpTime mongo::OpTime::now (  )  [inline, static]

Definition at line 67 of file optime.h.

bool mongo::OpTime::operator!= ( const OpTime r  )  const [inline]

Definition at line 130 of file optime.h.

bool mongo::OpTime::operator< ( const OpTime r  )  const [inline]

Definition at line 133 of file optime.h.

bool mongo::OpTime::operator<= ( const OpTime r  )  const [inline]

Definition at line 138 of file optime.h.

bool mongo::OpTime::operator== ( const OpTime r  )  const [inline]

Definition at line 127 of file optime.h.

bool mongo::OpTime::operator> ( const OpTime r  )  const [inline]

Definition at line 141 of file optime.h.

bool mongo::OpTime::operator>= ( const OpTime r  )  const [inline]

Definition at line 144 of file optime.h.

static void mongo::OpTime::setLast ( const Date_t date  )  [inline, static]

Definition at line 43 of file optime.h.

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

Definition at line 121 of file optime.h.

string mongo::OpTime::toStringLong (  )  const [inline]

Definition at line 106 of file optime.h.

string mongo::OpTime::toStringPretty (  )  const [inline]

Definition at line 115 of file optime.h.


Member Data Documentation

unsigned mongo::OpTime::i [private]

Definition at line 39 of file optime.h.

OpTime mongo::OpTime::last [static, private]

Definition at line 41 of file optime.h.

unsigned mongo::OpTime::secs [private]

Definition at line 40 of file optime.h.


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


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