PLCnext API Documentation 25.0.2.69
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
 
bool IsValid () const
 Returns true, if this Future has an assiciated Promise
 
bool HasValue () const
 Returns true, if a value or an exception has been set
 
bool HasException () const
 Returns true, if an exception has been set
 

Protected Member Functions

virtual ImplBase & GetPImpl ()=0
 
virtual const ImplBase & GetPImpl () const =0
 
void CheckForValueAndException () const
 
void SetException (std::exception_ptr e)
 
void Clear (bool isValid)
 

Detailed Description

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


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