Apache Mesos
Classes | Namespaces | Macros | Functions
dispatch.hpp File Reference
#include <functional>
#include <memory>
#include <string>
#include <process/process.hpp>
#include <stout/lambda.hpp>
#include <stout/preprocessor.hpp>
#include <stout/result_of.hpp>

Go to the source code of this file.

Classes

struct  process::internal::Dispatch< R >
 
struct  process::internal::Dispatch< void >
 
struct  process::internal::Dispatch< Future< R > >
 
struct  process::internal::Dispatch< R >
 

Namespaces

 process
 
 process::internal
 

Macros

#define FORWARD(Z, N, DATA)   std::forward<A ## N>(a ## N)
 
#define MOVE(Z, N, DATA)   std::move(a ## N)
 
#define DECL(Z, N, DATA)   typename std::decay<A ## N>::type&& a ## N
 
#define TEMPLATE(Z, N, DATA)
 
#define TEMPLATE(Z, N, DATA)
 
#define TEMPLATE(Z, N, DATA)
 

Functions

void process::internal::dispatch (const UPID &pid, std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)>> f, const Option< const std::type_info * > &functionType=None())
 
template<typename T >
void process::dispatch (const PID< T > &pid, void(T::*method)())
 
template<typename T >
void process::dispatch (const Process< T > &process, void(T::*method)())
 
template<typename T >
void process::dispatch (const Process< T > *process, void(T::*method)())
 
 process::REPEAT_FROM_TO (1, 13, TEMPLATE, _) class AsyncExecutorProcess
 
T Future< R > process::dispatch (const PID< T > &pid, Future< R >(T::*method)())
 
template<typename R , typename T >
Future< R > process::dispatch (const Process< T > &process, Future< R >(T::*method)())
 
template<typename R , typename T >
Future< R > process::dispatch (const Process< T > *process, Future< R >(T::*method)())
 
T Future< R > process::dispatch (const PID< T > &pid, R(T::*method)())
 
template<typename R , typename T >
Future< R > process::dispatch (const Process< T > &process, R(T::*method)())
 
template<typename R , typename T >
Future< R > process::dispatch (const Process< T > *process, R(T::*method)())
 

Macro Definition Documentation

#define DECL (   Z,
  N,
  DATA 
)    typename std::decay<A ## N>::type&& a ## N
#define FORWARD (   Z,
  N,
  DATA 
)    std::forward<A ## N>(a ## N)
#define MOVE (   Z,
  N,
  DATA 
)    std::move(a ## N)
#define TEMPLATE (   Z,
  N,
  DATA 
)
#define TEMPLATE (   Z,
  N,
  DATA 
)
#define TEMPLATE (   Z,
  N,
  DATA 
)