YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::Thread Class Reference

#include <Thread.hpp>

Collaboration diagram for yap::Thread:

List of all members.

Public Types

typedef std::function< void(void)> WorkerType

Public Member Functions

 Thread (WorkerType worker)
template<typename FunctionType , typename ArgsType >
 Thread (FunctionType function, ArgsType args)
void Launch ()
void Stop ()
void Wait ()

Static Public Member Functions

static void Sleep (const Time &delay)

Private Member Functions

 DISALLOW_COPY (Thread)

Private Attributes

sf::Thread thread_

Detailed Description

Definition at line 19 of file Thread.hpp.


Member Typedef Documentation

typedef std::function<void (void)> yap::Thread::WorkerType

Definition at line 25 of file Thread.hpp.


Constructor & Destructor Documentation

yap::Thread::Thread ( WorkerType  worker)
explicit

Definition at line 5 of file Thread.cpp.

template<typename FunctionType , typename ArgsType >
yap::Thread::Thread ( FunctionType  function,
ArgsType  args 
)
inline

Definition at line 7 of file Thread.hxx.


Member Function Documentation

yap::Thread::DISALLOW_COPY ( Thread  )
private
void yap::Thread::Launch ( )

Definition at line 10 of file Thread.cpp.

Here is the caller graph for this function:

void yap::Thread::Sleep ( const Time delay)
static

Definition at line 25 of file Thread.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Thread::Stop ( )

Definition at line 15 of file Thread.cpp.

void yap::Thread::Wait ( )

Definition at line 20 of file Thread.cpp.


Member Data Documentation

sf::Thread yap::Thread::thread_
private

Definition at line 41 of file Thread.hpp.


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