PLCnext API Documentation  22.9.0.33
Classes | Public Member Functions | Protected Member Functions | List of all members
Arp::System::Nm::FutureBase Class Referenceabstract

Base class with common behavior for Future<T> and Future<void> More...

#include <Future.hpp>

Inheritance diagram for Arp::System::Nm::FutureBase:
Inheritance graph

Public Member Functions

 FutureBase (const FutureBase &other)=default
 
 FutureBase (FutureBase &&other) noexcept=default
 
FutureBaseoperator= (const FutureBase &other)=default
 
FutureBaseoperator= (FutureBase &&other) noexcept=default
 
const bool IsValid () const
 Returns true, if this Future has an assiciated Promise More...
 
const bool HasValue () const
 Returns true, if a value or an exception has been set More...
 
const bool HasException () const
 Returns true, if an exception has been set More...
 

Protected Member Functions

virtual ImplBase & GetPImpl ()=0
 
virtual const ImplBase & GetPImpl () const =0
 
void CheckForValueAndException () const
 
template<typename ExceptionType >
void SetException (const ExceptionType &e)
 
void Clear (bool isValid)
 

Detailed Description

Base class with common behavior for Future<T> and Future<void>

Member Function Documentation

◆ HasException()

const bool Arp::System::Nm::FutureBase::HasException ( ) const

Returns true, if an exception has been set

◆ HasValue()

const bool Arp::System::Nm::FutureBase::HasValue ( ) const

Returns true, if a value or an exception has been set

◆ IsValid()

const bool Arp::System::Nm::FutureBase::IsValid ( ) const

Returns true, if this Future has an assiciated Promise


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