Definition at line 8 of file coroutine_example.cpp.
int MyClass::CountTo |
( |
int |
n | ) |
|
|
inline |
Definition at line 11 of file coroutine_example.cpp.
References cofunc, and i.
Referenced by Run().
13 printf(
"%s: Coroutine says hi. I will count from 1 to %d and yield each value.\n",
17 for(
int i = 1;
i <= n;
i++ )
19 printf(
"%s: Yielding %d\n", __FUNCTION__,
i );
int MyClass::MyMethod |
( |
const string & |
arg | ) |
|
|
inline |
Definition at line 9 of file delegate_example.cpp.
Referenced by main().
11 printf(
"MyClass(this = %p)::MyMethod() called with string '%s', length %d\n",
this,
12 arg.c_str(), arg.length() );
Definition at line 24 of file coroutine_example.cpp.
References COROUTINE< ReturnType, ArgType >::Call(), cofunc, CountTo(), COROUTINE< ReturnType, ArgType >::Resume(), COROUTINE< ReturnType, ArgType >::ReturnValue(), and COROUTINE< ReturnType, ArgType >::Running().
Referenced by main().
27 printf(
"%s: Calling coroutine that will count from 1 to 5.\n", __FUNCTION__ );
36 printf(
"%s: Done!\n", __FUNCTION__ );
bool Call(ArgType aArg)
Function Call()
const ReturnType & ReturnValue() const
Function ReturnValue()
bool Resume()
Function Resume()
COROUTINE< int, int > MyCoroutine
bool Running() const
Function Running()
The documentation for this class was generated from the following files: