You.i Engine
YiSignalBaseConnection.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_SIGNAL_BASE_CONNECTION_H_
3 #define _YI_SIGNAL_BASE_CONNECTION_H_
4 
5 #ifndef _YI_SIGNAL_H_
6 # error "Do not include YiSignalBaseConnection.h directly. Include YiSignal.h instead."
7 #endif
8 
17 template<typename... T>
19 
25 template<typename... SignalTypes>
27 {
28 public:
32  virtual void Emit(const SignalTypes &... args) = 0;
33 
34 protected:
35  inline CYISignalBaseConnection(CYISignalHandler *pSignalHandler, CYIThreadHandle threadAffinity, EYIConnectionType connectionType, CYISignalConnectionID connectionID)
36  : CYISignalAbstractConnection(pSignalHandler, threadAffinity, connectionType, connectionID)
37  {
38  }
39 };
40 
45 #endif /* _YI_SIGNAL_BASE_CONNECTION_H_ */
virtual void Emit(const SignalTypes &... args)=0
CYISignalBaseConnection(CYISignalHandler *pSignalHandler, CYIThreadHandle threadAffinity, EYIConnectionType connectionType, CYISignalConnectionID connectionID)
Definition: YiSignalBaseConnection.h:35
EYIConnectionType
Definition: YiSignalAbstractConnection.h:19
An object used to identify a specific CYISignal connection.
Definition: YiSignalConnectionID.h:19
The templated abstract class for signal connections.
Definition: YiSignalBaseConnection.h:26
The base abstract class for signal connections.
Definition: YiSignalAbstractConnection.h:57
A templated struct used to pass multiple parameter packs to a templated class specialization or to a ...
Definition: YiSignalBaseConnection.h:18
Definition: YiSignalHandler.h:175
Definition: YiThreadHandle.h:45