yasmine
constraint.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef CONSTRAINT_DFC0FBD5_ACF7_4863_BB5F_129E8620FAB3
13 #define CONSTRAINT_DFC0FBD5_ACF7_4863_BB5F_129E8620FAB3
14 
15 
16 #include "essentials/non_copyable.hpp"
17 
18 #include "constraint_fwd.hpp"
19 
20 
21 namespace sxy
22 {
23 
24 
25 class event;
26 
27 
29 {
30 public:
32  {
33  // Nothing to do...
34  }
35 
36 
37  virtual ~constraint() SX_NOEXCEPT
38  {
39  // Nothing to do...
40  }
41 
42 
43  SX_NO_COPY(constraint)
44  virtual bool operator()( const event& _event, event_collector& _event_collector ) const = 0;
45 };
46 
47 
48 }
49 
50 
51 #endif
Definition: event_collector.hpp:25
Interface of an event. An event has an ID, a name and a priority (for processing by the async state m...
Definition: event.hpp:28
constraint()
Definition: constraint.hpp:31
Definition: adapter_cpp11.hpp:21
Definition: constraint.hpp:28
virtual ~constraint() SX_NOEXCEPT
Definition: constraint.hpp:37
virtual bool operator()(const event &_event, event_collector &_event_collector) const =0