Public Member Functions

ibrcommon::BLOB::Reference Class Reference

#include <BLOB.h>

Inherits ibrcommon::Mutex.

Collaboration diagram for ibrcommon::BLOB::Reference:
Collaboration graph
[legend]

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.

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


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.

References ibrcommon::BLOB::clear().

Here is the call graph for this function:

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.

References ibrcommon::Mutex::enter(), and ibrcommon::BLOB::open().

Here is the call graph for this function:

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.

References ibrcommon::BLOB::__get_size().

Here is the call graph for this function:

BLOB::iostream ibrcommon::BLOB::Reference::iostream (  ) 
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.

References ibrcommon::BLOB::close(), and ibrcommon::Mutex::leave().

Here is the call graph for this function:

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.

References ibrcommon::BLOB::__get_stream().

Here is the call graph for this function:

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.

References ibrcommon::BLOB::open(), and ibrcommon::Mutex::trylock().

Here is the call graph for this function:


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