#include <BLOB.h>
Public Member Functions | |
| Reference (BLOB *blob) | |
| Reference (const Reference &ref) | |
| virtual | ~Reference () |
| std::iostream & | operator* () |
| void | enter () |
| void | leave () |
| void | clear () |
| size_t | getSize () const |
Definition at line 53 of file BLOB.h.
| ibrcommon::BLOB::Reference::Reference | ( | BLOB * | blob | ) |
Definition at line 46 of file BLOB.cpp.
References ibrcommon::BLOB::increment().
| ibrcommon::BLOB::Reference::Reference | ( | const Reference & | ref | ) |
Definition at line 26 of file BLOB.cpp.
References ibrcommon::BLOB::increment().
| ibrcommon::BLOB::Reference::~Reference | ( | ) | [virtual] |
Definition at line 32 of file BLOB.cpp.
References ibrcommon::BLOB::decrement(), and ibrcommon::BLOB::isUnbound().
| void ibrcommon::BLOB::Reference::clear | ( | ) |
This method deletes the content of the payload. The size will be zero after calling.
Definition at line 81 of file BLOB.cpp.
References ibrcommon::BLOB::clear().
Referenced by dtn::data::PayloadBlock::deserialize(), and dtn::data::ExtensionBlock::deserialize().
| void ibrcommon::BLOB::Reference::enter | ( | ) | [virtual] |
Enter into a thread-safe state for this BLOB. This time it is locked and the pointers are initialized to zero.
Reimplemented from ibrcommon::Mutex.
Definition at line 52 of file BLOB.cpp.
References ibrcommon::Mutex::enter().
| size_t ibrcommon::BLOB::Reference::getSize | ( | ) | const |
Returns the size of the content in this BLOB.
Definition at line 76 of file BLOB.cpp.
References ibrcommon::BLOB::getSize().
Referenced by dtn::data::PayloadBlock::getLength(), dtn::data::ExtensionBlock::getLength(), and dtn::net::HTTPConvergenceLayer::queue().
| void ibrcommon::BLOB::Reference::leave | ( | ) | [virtual] |
Leave the thread-safe state.
Reimplemented from ibrcommon::Mutex.
Definition at line 63 of file BLOB.cpp.
References ibrcommon::Mutex::leave().
| std::iostream & ibrcommon::BLOB::Reference::operator* | ( | ) |
Get a direct access reference to the internal stream object.
Definition at line 41 of file BLOB.cpp.
References ibrcommon::BLOB::_stream.
1.6.3