mongo::ShardChunkVersion Struct Reference

#include <util.h>

List of all members.

Public Member Functions

void inc (bool major)
void incMajor ()
void incMinor ()
bool isSet () const
int majorVersion () const
int minorVersion () const
 operator unsigned long long () const
ShardChunkVersionoperator= (const BSONElement &elem)
 ShardChunkVersion (const BSONElement &e)
 ShardChunkVersion (unsigned long long ll)
 ShardChunkVersion (int major=0, int minor=0)
unsigned long long toLong () const
string toString () const

Public Attributes

union {
   struct {
      int   _major
      int   _minor
   } 
   unsigned long long   _combined
}; 

Detailed Description

Definition at line 31 of file util.h.


Constructor & Destructor Documentation

mongo::ShardChunkVersion::ShardChunkVersion ( int  major = 0,
int  minor = 0 
) [inline]

Definition at line 40 of file util.h.

mongo::ShardChunkVersion::ShardChunkVersion ( unsigned long long  ll  )  [inline]

Definition at line 44 of file util.h.

mongo::ShardChunkVersion::ShardChunkVersion ( const BSONElement e  )  [inline]

Definition at line 48 of file util.h.


Member Function Documentation

void mongo::ShardChunkVersion::inc ( bool  major  )  [inline]

Definition at line 62 of file util.h.

void mongo::ShardChunkVersion::incMajor (  )  [inline]

Definition at line 69 of file util.h.

void mongo::ShardChunkVersion::incMinor (  )  [inline]

Definition at line 74 of file util.h.

bool mongo::ShardChunkVersion::isSet (  )  const [inline]

Definition at line 82 of file util.h.

int mongo::ShardChunkVersion::majorVersion (  )  const [inline]

Definition at line 92 of file util.h.

int mongo::ShardChunkVersion::minorVersion (  )  const [inline]

Definition at line 93 of file util.h.

mongo::ShardChunkVersion::operator unsigned long long (  )  const [inline]

Definition at line 95 of file util.h.

ShardChunkVersion& mongo::ShardChunkVersion::operator= ( const BSONElement elem  )  [inline]

Definition at line 97 of file util.h.

unsigned long long mongo::ShardChunkVersion::toLong (  )  const [inline]

Definition at line 78 of file util.h.

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

Definition at line 86 of file util.h.


Member Data Documentation

union { ... }

Definition at line 37 of file util.h.

Definition at line 35 of file util.h.

Definition at line 34 of file util.h.


The documentation for this struct 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:58 2013