library of assembled shared sources

http://lass.cocamware.com

lass::util::experimental::Future< T > Class Template Reference

Transporting Values and Exceptions between Threads

See:. More...

#include <future.h>


Data Structures

struct  Impl

Public Member Functions

 Future ()
const bool isBound () const
const bool operator! () const
 operator num::SafeBool () const
void wait ()
const WaitResult wait (unsigned long milliSeconds)
const T & operator() () const
void bind (const T &value)
void unbind ()
void error (const experimental::RemoteExceptionBase &error)
template<typename ExceptionType >
void error (const ExceptionType &error)

Private Types

typedef util::Semaphore TMutex
typedef util::Locker< TMutexTLocker
typedef util::IntrusiveCounter
< Impl, size_t,&Impl::referenceCount_
TCounterPolicy
typedef util::SharedPtr< Impl,
util::ObjectStorage,
TCounterPolicy
TImplPtr

Private Attributes

TImplPtr pimpl_


Detailed Description

template<typename T>
class lass::util::experimental::Future< T >

Transporting Values and Exceptions between Threads

See:.

Definition at line 86 of file future.h.


Member Typedef Documentation

template<typename T >
typedef util::Semaphore lass::util::experimental::Future< T >::TMutex [private]

Definition at line 174 of file future.h.

template<typename T >
typedef util::Locker<TMutex> lass::util::experimental::Future< T >::TLocker [private]

Definition at line 175 of file future.h.

template<typename T >
typedef util::IntrusiveCounter<Impl, size_t, &Impl::referenceCount_> lass::util::experimental::Future< T >::TCounterPolicy [private]

Definition at line 202 of file future.h.

Definition at line 203 of file future.h.


Constructor & Destructor Documentation

template<typename T >
lass::util::experimental::Future< T >::Future (  )  [inline]

Definition at line 90 of file future.h.


Member Function Documentation

template<typename T >
const bool lass::util::experimental::Future< T >::isBound (  )  const [inline]

template<typename T >
const bool lass::util::experimental::Future< T >::operator! (  )  const [inline]

Definition at line 97 of file future.h.

References lass::util::experimental::Future< T >::isBound().

template<typename T >
lass::util::experimental::Future< T >::operator num::SafeBool (  )  const [inline]

template<typename T >
void lass::util::experimental::Future< T >::wait (  )  [inline]

Definition at line 100 of file future.h.

template<typename T >
const WaitResult lass::util::experimental::Future< T >::wait ( unsigned long  milliSeconds  )  [inline]

Definition at line 107 of file future.h.

References lass::util::waitSuccess, and lass::util::waitTimeout.

template<typename T >
const T& lass::util::experimental::Future< T >::operator() (  )  const [inline]

Definition at line 112 of file future.h.

References lass::stde::T.

template<typename T >
void lass::util::experimental::Future< T >::bind ( const T &  value  )  [inline]

Definition at line 127 of file future.h.

References LASS_THROW_EX, and lass::stde::T.

template<typename T >
void lass::util::experimental::Future< T >::unbind (  )  [inline]

Definition at line 138 of file future.h.

template<typename T >
void lass::util::experimental::Future< T >::error ( const experimental::RemoteExceptionBase error  )  [inline]

Definition at line 144 of file future.h.

References lass::util::experimental::RemoteExceptionBase::clone().

template<typename T >
template<typename ExceptionType >
void lass::util::experimental::Future< T >::error ( const ExceptionType &  error  )  [inline]

Definition at line 158 of file future.h.


Field Documentation

template<typename T >
TImplPtr lass::util::experimental::Future< T >::pimpl_ [private]

Definition at line 205 of file future.h.

Referenced by lass::util::experimental::Future< T >::isBound().


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo