SequoiaDB
 All Classes Namespaces Files Functions Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
bson::OpTime Class Reference

Public Member Functions

signed getSecs () const
 
 OpTime (Date_t date)
 
 OpTime (ReplTime x)
 
 OpTime (signed a, unsigned b)
 Constructor.
 
long long asDate () const
 
long long asLL () const
 
bool isNull () const
 
string toStringLong () const
 
string toStringPretty () const
 
string toString () 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
 

Static Public Member Functions

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

Constructor & Destructor Documentation

bson::OpTime::OpTime ( signed  a,
unsigned  b 
)
inline

Constructor.

Parameters
aseconds since epoch.
bmicroseconds in range of [0us, 999999us].

The documentation for this class was generated from the following file: