xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Events::MainThreadFunctor< T > Struct Template Reference

A functor for a function that needs to be called in the main thread. More...

#include <types.h>

Public Member Functions

 MainThreadFunctor (const boost::function< T()> &f)
 
void operator() () const
 
getReturnValue () const
 
const Common::ExceptiongetError () const
 

Private Attributes

boost::function< T()> func
 
boost::shared_ptr< T > retVal
 
boost::shared_ptr< Common::Exceptionerror
 

Detailed Description

template<typename T>
struct Events::MainThreadFunctor< T >

A functor for a function that needs to be called in the main thread.

Definition at line 298 of file types.h.

Constructor & Destructor Documentation

◆ MainThreadFunctor()

template<typename T>
Events::MainThreadFunctor< T >::MainThreadFunctor ( const boost::function< T()> &  f)
inline

Definition at line 305 of file types.h.

Member Function Documentation

◆ getError()

template<typename T>
const Common::Exception& Events::MainThreadFunctor< T >::getError ( ) const
inline

Definition at line 319 of file types.h.

References Events::MainThreadFunctor< T >::error.

Referenced by Events::RequestManager::callInMainThread().

Here is the caller graph for this function:

◆ getReturnValue()

template<typename T>
T Events::MainThreadFunctor< T >::getReturnValue ( ) const
inline

Definition at line 318 of file types.h.

References Events::MainThreadFunctor< T >::retVal.

Referenced by Events::RequestManager::callInMainThread().

Here is the caller graph for this function:

◆ operator()()

template<typename T>
void Events::MainThreadFunctor< T >::operator() ( ) const
inline

Member Data Documentation

◆ error

template<typename T>
boost::shared_ptr<Common::Exception> Events::MainThreadFunctor< T >::error
private

◆ func

template<typename T>
boost::function<T ()> Events::MainThreadFunctor< T >::func
private

◆ retVal

template<typename T>
boost::shared_ptr<T> Events::MainThreadFunctor< T >::retVal
private

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