IBR-DTNSuite 0.6

ibrcommon::BLOB::Reference Class Reference

#include <BLOB.h>

Inheritance diagram for ibrcommon::BLOB::Reference:
Collaboration diagram for ibrcommon::BLOB::Reference:

List of all members.

Public Member Functions

 Reference (BLOB *blob)
 Reference (const Reference &ref)
virtual ~Reference ()
std::iostream & operator* () __attribute__((deprecated))
BLOB::iostream iostream ()
virtual void enter () throw (ibrcommon::MutexException)
virtual void leave () throw (ibrcommon::MutexException)
virtual void trylock () throw (ibrcommon::MutexException)
void clear () __attribute__((deprecated))
size_t getSize () const __attribute__((deprecated))

Detailed Description

Definition at line 98 of file BLOB.h.


Constructor & Destructor Documentation

ibrcommon::BLOB::Reference::Reference ( BLOB blob)

Definition at line 135 of file BLOB.cpp.

References ibrcommon::BLOB::_refcount, and ibrcommon::BLOB::_reflock.

ibrcommon::BLOB::Reference::Reference ( const Reference ref)

Definition at line 104 of file BLOB.cpp.

References ibrcommon::BLOB::_refcount, and ibrcommon::BLOB::_reflock.

ibrcommon::BLOB::Reference::~Reference ( ) [virtual]

Definition at line 111 of file BLOB.cpp.


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 181 of file BLOB.cpp.

void ibrcommon::BLOB::Reference::enter ( ) throw (ibrcommon::MutexException) [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 142 of file BLOB.cpp.

size_t ibrcommon::BLOB::Reference::getSize ( ) const

Returns the size of the content in this BLOB.

Returns:
The size in bytes.

Definition at line 173 of file BLOB.cpp.

void ibrcommon::BLOB::Reference::leave ( ) throw (ibrcommon::MutexException) [virtual]

Leave the thread-safe state.

Reimplemented from ibrcommon::Mutex.

Definition at line 152 of file BLOB.cpp.

std::iostream & ibrcommon::BLOB::Reference::operator* ( )

Get a direct access reference to the internal stream object.

Returns:
iostream reference.

Definition at line 127 of file BLOB.cpp.

void ibrcommon::BLOB::Reference::trylock ( ) throw (ibrcommon::MutexException) [virtual]

Try to enter into the thread-safe state for this BLOB.

Reimplemented from ibrcommon::Mutex.

Definition at line 163 of file BLOB.cpp.


The documentation for this class was generated from the following files: