libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
actor.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2012 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 #ifndef _QI_ACTOR_HPP_
8 #define _QI_ACTOR_HPP_
9 
10 #include <qi/strand.hpp>
11 #include <boost/scoped_ptr.hpp>
12 #include <boost/function.hpp>
13 
14 namespace qi
15 {
16 
27 {
28 public:
30  : _strand()
31  {}
32  Actor(const Actor&)
33  {}
35  : _strand(ec)
36  {}
37 
38  qi::Strand* strand() const
39  {
40  return &_strand;
41  }
42 
43 private:
44  mutable qi::Strand _strand;
45 };
46 
47 }
48 
49 #endif // _QI_ACTOR_HPP_
#define QI_API
Definition: api.hpp:34
qi::Strand * strand() const
Definition: actor.hpp:38
Actor()
Definition: actor.hpp:29
Actor(const Actor &)
Definition: actor.hpp:32
Actor(qi::ExecutionContext &ec)
Definition: actor.hpp:34