mongo::CachedBSONObj Class Reference
#include <curop.h>
List of all members.
Detailed Description
stores a copy of a bson obj in a fixed size buffer if its too big for the buffer, says "too big" useful for keeping a copy around indefinitely without wasting a lot of space or doing malloc
Definition at line 44 of file curop.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 46 of file curop.h.
Constructor & Destructor Documentation
mongo::CachedBSONObj::CachedBSONObj |
( |
|
) |
[inline] |
Member Function Documentation
BSONObj mongo::CachedBSONObj::_get |
( |
|
) |
[inline, private] |
you have to be locked when you call this
Definition at line 113 of file curop.h.
void mongo::CachedBSONObj::_reset |
( |
int |
sz |
) |
[inline, private] |
you have to be locked when you call this
Definition at line 123 of file curop.h.
BSONObj mongo::CachedBSONObj::get |
( |
|
) |
[inline] |
bool mongo::CachedBSONObj::have |
( |
|
) |
const [inline] |
void mongo::CachedBSONObj::reset |
( |
int |
sz = 0 |
) |
[inline] |
void mongo::CachedBSONObj::set |
( |
const BSONObj & |
o |
) |
[inline] |
int mongo::CachedBSONObj::size |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: