ibrcommon::BLOB::Reference Class Reference

#include <BLOB.h>

Inheritance diagram for ibrcommon::BLOB::Reference:
ibrcommon::Mutex

List of all members.

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

Detailed Description

Definition at line 53 of file BLOB.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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.

Returns:
The size in bytes.

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.

Returns:
iostream reference.

Definition at line 41 of file BLOB.cpp.

References ibrcommon::BLOB::_stream.


The documentation for this class was generated from the following files:
Generated on Mon Aug 23 08:13:00 2010 for IBR-DTNSuite by  doxygen 1.6.3