Template Struct activity¶
Defined in File activities.h
Inheritance Relationships¶
Base Types¶
public std::enable_shared_from_this< DerivedT >public udho::activities::result< SuccessDataT, FailureDataT >(Template Struct result)
Struct Documentation¶
-
template<typename
DerivedT, typenameSuccessDataT= void, typenameFailureDataT= void>
structudho::activities::activity: public std::enable_shared_from_this<DerivedT>, public udho::activities::result<SuccessDataT, FailureDataT>¶ An activity
Amust subclass fromactivity<A, SuccessA, FailureA>assumingSuccessAandFailureAare the types that contains the relevant information regarding its success or failure. The activityAmust overload a no argumentoperator()()which initiates the activity. After the activity is initiated eithersuccess()orfailure()methods must be called in order to signal its completion. The activityAmust take the collector as the first argument to its constructor, which is passed to the base classactivity<A, SuccessA, FailureA>. Hence its prefered to take the first parameter to the constructor as template parameter.- Template Parameters
DerivedT: Activity ClassSuccessDataT: data associated to the activity if the activity succeedsFailureDataT: data associated to the activity if the activity fails
Public Functions
-
derived_ptr_type
self()¶ shared_ptr to this