All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Radiant::FutureBoolI Class Referenceabstract

Interface class for FutureBool backends. More...

#include <Radiant/FutureBool.hpp>

Public Member Functions

virtual bool isReady () const =0
 Are all Radiant::Tasks finished that are associated with this object If the job we are waiting for doesn't use tasks, return true. More...
 
virtual Radiant::TaskPtr task () const =0
 Return next task that need to be executed to get the job done. More...
 
virtual bool validate ()=0
 Once all tasks are ready, this returns the actual boolean value we want. More...
 
virtual ~FutureBoolI ()
 Destructor.
 

Detailed Description

Interface class for FutureBool backends.

Member Function Documentation

virtual bool Radiant::FutureBoolI::isReady ( ) const
pure virtual

Are all Radiant::Tasks finished that are associated with this object If the job we are waiting for doesn't use tasks, return true.

Returns
True if the value is ready to be evaluated by calling validate
virtual Radiant::TaskPtr Radiant::FutureBoolI::task ( ) const
pure virtual

Return next task that need to be executed to get the job done.

Returns
Next task needed for evaluating this future boolean
virtual bool Radiant::FutureBoolI::validate ( )
pure virtual

Once all tasks are ready, this returns the actual boolean value we want.

This is only called once and might block.

Returns
Value wrapped by this object