test_callback_queue.cpp File Reference

#include <gtest/gtest.h>
#include <ros/callback_queue.h>
#include <ros/console.h>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
Include dependency graph for test_callback_queue.cpp:

Go to the source code of this file.

Classes

class  CountingCallback
class  RecursiveCallback
class  SelfRemovingCallback

Typedefs

typedef boost::shared_ptr
< CountingCallback
CountingCallbackPtr
typedef boost::shared_ptr
< RecursiveCallback
RecursiveCallbackPtr
typedef boost::shared_ptr
< SelfRemovingCallback
SelfRemovingCallbackPtr

Functions

void callAvailableThread (CallbackQueue *queue, bool &done)
void callOneThread (CallbackQueue *queue, bool &done)
int main (int argc, char **argv)
size_t runThreadedTest (const CountingCallbackPtr &cb, const boost::function< void(CallbackQueue *, bool &)> &threadFunc)
 TEST (CallbackQueue, threadedCallOne)
 TEST (CallbackQueue, threadedCallAvailable)
 TEST (CallbackQueue, recursive4)
 TEST (CallbackQueue, recursive3)
 TEST (CallbackQueue, recursive2)
 TEST (CallbackQueue, recursive1)
 TEST (CallbackQueue, removeSelf)
 TEST (CallbackQueue, remove)
 TEST (CallbackQueue, multipleCallbacksCallOne)
 TEST (CallbackQueue, multipleCallbacksCallAvailable)
 TEST (CallbackQueue, singleCallback)

Typedef Documentation

typedef boost::shared_ptr<CountingCallback> CountingCallbackPtr

Definition at line 65 of file test_callback_queue.cpp.

typedef boost::shared_ptr<RecursiveCallback> RecursiveCallbackPtr

Definition at line 203 of file test_callback_queue.cpp.

typedef boost::shared_ptr<SelfRemovingCallback> SelfRemovingCallbackPtr

Definition at line 155 of file test_callback_queue.cpp.


Function Documentation

void callAvailableThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 253 of file test_callback_queue.cpp.

void callOneThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 299 of file test_callback_queue.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 315 of file test_callback_queue.cpp.

size_t runThreadedTest ( const CountingCallbackPtr cb,
const boost::function< void(CallbackQueue *, bool &)> &  threadFunc 
)

Definition at line 261 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallOne   
)

Definition at line 307 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallAvailable   
)

Definition at line 291 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive4   
)

Definition at line 241 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive3   
)

Definition at line 229 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive2   
)

Definition at line 217 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive1   
)

Definition at line 205 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
removeSelf   
)

Definition at line 157 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
remove   
)

Definition at line 118 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallOne   
)

Definition at line 102 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallAvailable   
)

Definition at line 88 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
singleCallback   
)

Definition at line 67 of file test_callback_queue.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


roscpp
Author(s): Morgan Quigley mquigley@cs.stanford.edu, Josh Faust jfaust@willowgarage.com, Brian Gerkey gerkey@willowgarage.com
autogenerated on Fri Jan 11 10:08:29 2013