yasmine
constraint_impl.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_IMPL_A7A39030_C6D6_49D6_A051_B151370B7147
13 #define CONSTRAINT_IMPL_A7A39030_C6D6_49D6_A051_B151370B7147
14 
15 
16 #include "constraint.hpp"
17 
18 
19 namespace sxy
20 {
21 
22 
23 class constraint_impl SX_FINAL:
24  public virtual constraint
25 {
26 public:
27  explicit constraint_impl( const constraint_function& _function );
28  virtual ~constraint_impl() SX_NOEXCEPT SX_OVERRIDE;
29  SX_NO_COPY(constraint_impl)
30  virtual bool operator()( const event& _event, event_collector& _event_collector ) const SX_OVERRIDE;
31 
35  static constraint_uptr create( const constraint_function& _function );
36 
37 
38 private:
39  constraint_function function_;
40 };
41 
42 
43 }
44 
45 
46 #endif
Definition: adapter_cpp11.hpp:21
sxe::SX_UNIQUE_PTR< constraint > constraint_uptr
Definition: constraint_fwd.hpp:25
sxe::function< bool(const event &, event_collector &) > constraint_function
Definition: constraint_fwd.hpp:28