mongo::HashTable< Key, Type > Class Template Reference

#include <hashtab.h>

List of all members.

Classes

struct  Node

Public Types

typedef void(* IteratorCallback )(const Key &k, Type &v)
typedef void(* IteratorCallback2 )(const Key &k, Type &v, void *extra)

Public Member Functions

int _find (const Key &k, bool &found)
Type * get (const Key &k)
 HashTable (void *buf, int buflen, const char *_name)
void iterAll (IteratorCallback2 callback, void *extra)
void iterAll (IteratorCallback callback)
void kill (const Key &k)
Nodenodes (int i)
bool put (const Key &k, const Type &value)

Public Attributes

void * _buf
int maxChain
int n
const char * name

Detailed Description

template<class Key, class Type>
class mongo::HashTable< Key, Type >

Definition at line 42 of file hashtab.h.


Member Typedef Documentation

template<class Key, class Type>
typedef void(* mongo::HashTable< Key, Type >::IteratorCallback)(const Key &k, Type &v)

Definition at line 156 of file hashtab.h.

template<class Key, class Type>
typedef void(* mongo::HashTable< Key, Type >::IteratorCallback2)(const Key &k, Type &v, void *extra)

Definition at line 166 of file hashtab.h.


Constructor & Destructor Documentation

template<class Key, class Type>
mongo::HashTable< Key, Type >::HashTable ( void *  buf,
int  buflen,
const char *  _name 
) [inline]

Definition at line 102 of file hashtab.h.


Member Function Documentation

template<class Key, class Type>
int mongo::HashTable< Key, Type >::_find ( const Key &  k,
bool &  found 
) [inline]

Definition at line 65 of file hashtab.h.

template<class Key, class Type>
Type* mongo::HashTable< Key, Type >::get ( const Key &  k  )  [inline]

Definition at line 119 of file hashtab.h.

template<class Key, class Type>
void mongo::HashTable< Key, Type >::iterAll ( IteratorCallback2  callback,
void *  extra 
) [inline]

Definition at line 167 of file hashtab.h.

template<class Key, class Type>
void mongo::HashTable< Key, Type >::iterAll ( IteratorCallback  callback  )  [inline]

Definition at line 157 of file hashtab.h.

template<class Key, class Type>
void mongo::HashTable< Key, Type >::kill ( const Key &  k  )  [inline]

Definition at line 127 of file hashtab.h.

template<class Key, class Type>
Node& mongo::HashTable< Key, Type >::nodes ( int  i  )  [inline]

Definition at line 60 of file hashtab.h.

template<class Key, class Type>
bool mongo::HashTable< Key, Type >::put ( const Key &  k,
const Type &  value 
) [inline]

returns false if too full

Definition at line 139 of file hashtab.h.


Member Data Documentation

template<class Key, class Type>
void* mongo::HashTable< Key, Type >::_buf

Definition at line 56 of file hashtab.h.

template<class Key, class Type>
int mongo::HashTable< Key, Type >::maxChain

Definition at line 58 of file hashtab.h.

template<class Key, class Type>
int mongo::HashTable< Key, Type >::n

Definition at line 57 of file hashtab.h.

template<class Key, class Type>
const char* mongo::HashTable< Key, Type >::name

Definition at line 44 of file hashtab.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:55 2013