goodies.h File Reference

#include "../bson/util/misc.h"
#include "concurrency/mutex.h"
#include <pthread.h>
#include <execinfo.h>
Include dependency graph for goodies.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mongo::ProgressMeter
class  mongo::ProgressMeterHolder
struct  mongo::ptr< T >
class  mongo::ThreadLocalValue< T >
class  mongo::ThreadSafeString
class  mongo::TicketHolder
class  mongo::TicketHolderReleaser
struct  mongo::WrappingInt

Namespaces

namespace  mongo

Defines

#define assert   MONGO_assert
#define MONGO_PRINT(x)   cout << #x ": " << (x) << endl
#define MONGO_PRINTFL   cout << __FILE__ ":" << __LINE__ << endl
#define PRINT   MONGO_PRINT
#define PRINTFL   MONGO_PRINTFL

Typedefs

typedef int mongo::HANDLE

Functions

void mongo::dumpmemory (const char *data, int len)
bool mongo::endsWith (const char *p, const char *suffix)
unsigned long mongo::fixEndian (unsigned long x)
pthread_t mongo::GetCurrentThreadId ()
string mongo::getThreadName ()
string mongo::hexdump (const char *data, unsigned len)
bool mongo::isNumber (char c)
bool mongo::isPrime (int n)
int mongo::lexNumCmp (const char *s1, const char *s2)
int mongo::nextPrime (int n)
ostream & mongo::operator<< (ostream &s, const ThreadSafeString &o)
void mongo::printStackTrace (ostream &o=cout)
unsigned mongo::setThreadName (const char *name)
bool mongo::startsWith (string s, string p)
bool mongo::startsWith (const char *str, const char *prefix)
void mongo::strcpy_s (char *dst, unsigned len, const char *src)
unsigned mongo::stringToNum (const char *str)
unsigned long mongo::swapEndian (unsigned long x)
template<class T >
string mongo::ToString (const T &t)

Define Documentation

#define assert   MONGO_assert

Definition at line 114 of file goodies.h.

#define MONGO_PRINT (  )     cout << #x ": " << (x) << endl

Definition at line 107 of file goodies.h.

#define MONGO_PRINTFL   cout << __FILE__ ":" << __LINE__ << endl

Definition at line 110 of file goodies.h.

#define PRINT   MONGO_PRINT

Definition at line 108 of file goodies.h.

#define PRINTFL   MONGO_PRINTFL

Definition at line 111 of file goodies.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


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