In file future.hxx:

template class OFutureRef : public VOS_NAMESPACE OObject, vos

OFutureRef

Inheritance:


Public Methods

void create ()
Creates the underlying future
void dataValid ()
Declare the data stored in the future as valid
T getData ()
Access the data stored within the future
T* getDataPtr ()
Get a pointer to the data stored within the future
OFutureRef (OFutureRef& ref)
Overload copy-constr. to implement ref-counting.
OFutureRef ()
Creates an "empty" reference, use "create()" or assignment/copy-operator to make it a valid reference
operator T ()
Access the data stored within the future
OFutureRef & operator= (OFutureRef& ref)
Overload assignment-operator to implement ref-counting.
const T& operator= (const T& data)
Assign data to the future
void setData (const T& data)
Assign data to the future
~OFutureRef ()
decreases ref-count of underlying future

Inherited from OObject:

Public Methods

virtual const OClassInfo& getClassInfo()
Boolean isKindOf(const OClassInfo& rClass)
void operator delete(void* p)
void* operator new(size_t size)

Documentation

OFutureRef
OFutureRef()
Creates an "empty" reference, use "create()" or assignment/copy-operator to make it a valid reference

OFutureRef(OFutureRef& ref)
Overload copy-constr. to implement ref-counting.

~OFutureRef()
decreases ref-count of underlying future

OFutureRef & operator= (OFutureRef& ref)
Overload assignment-operator to implement ref-counting.

void create()
Creates the underlying future. Don't try to call this twice on the same object.

void setData(const T& data)
Assign data to the future. You should do this BEFORE declaring the futures data valid!

const T& operator= (const T& data)
Assign data to the future. You should do this BEFORE declaring the futures data valid!

operator T()
Access the data stored within the future. If the data has not been declared valid, the calling thread will be blocked.

T getData()
Access the data stored within the future. If the data has not been declared valid, the calling thread will be blocked.

T* getDataPtr()
Get a pointer to the data stored within the future. If the data has not been declared valid, the calling thread will be blocked.

void dataValid()
Declare the data stored in the future as valid. Any thread waiting on a getData-/getDataPtr-call will continue running now.


This class has no child classes.
Author:
Bernd Hofner
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de