A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::SafeResult< P > Class Template Referenceabstract

#include <SafeResult.h>

+ Inheritance diagram for pdb::SafeResult< P >:
+ Collaboration diagram for pdb::SafeResult< P >:

Public Member Functions

virtual void apply (function< void(P)> forSuccessCase, function< void(string errorMsg)> forErrorCase)=0
 
getResultOrExit (int exitCode)
 

Detailed Description

template<typename P>
class pdb::SafeResult< P >

Definition at line 33 of file SafeResult.h.

Member Function Documentation

template<typename P >
virtual void pdb::SafeResult< P >::apply ( function< void(P)>  forSuccessCase,
function< void(string errorMsg)>  forErrorCase 
)
pure virtual

+ Here is the caller graph for this function:

template<typename P >
P pdb::SafeResult< P >::getResultOrExit ( int  exitCode)
inline

If this safe result is in the success case, returns the result item. Otherwise calls exit(exitCode) and terminates the process.

Definition at line 44 of file SafeResult.h.

+ Here is the call graph for this function:


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