~chasedouglas/grail/tap-accept-v2

« back to all changes in this revision

Viewing changes to src/v3/forward.h

  • Committer: Daniel d'Andrada
  • Date: 2012-03-14 19:15:09 UTC
  • mfrom: (196.1.3 lp949916_v3)
  • Revision ID: daniel.dandrada@canonical.com-20120314191509-tcaxcjy9nxshghm5
Merge "Atomic rules: Don't send slices from premature gestures."

+ refactoring of v3/Recognizer
+ regression test

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <memory>
26
26
#include <set>
 
27
#include <sstream>
27
28
 
28
29
#include <utouch/frame.h>
29
30
 
48
49
class UGSubscription;
49
50
typedef std::shared_ptr<UGSubscription> SharedUGSubscription;
50
51
 
51
 
typedef std::set<UFTouchId> TouchSet;
 
52
class TouchSet : public std::set<UFTouchId> {
 
53
 
 
54
public:
 
55
  std::string ToString() const {
 
56
    std::ostringstream stream;
 
57
    auto it = begin();
 
58
    if (it != end())
 
59
      stream << *it++;
 
60
    while (it != end())
 
61
      stream << ", " << *it++;
 
62
    return stream.str();
 
63
  }
 
64
};
52
65
 
53
66
} // namespace grail
54
67
} // namespace utouch