sigx++  2.0.1
signal_f_base.h
Go to the documentation of this file.
1 #ifndef _SIGX_SIGNAL_F_BASE_HPP_
2 #define _SIGX_SIGNAL_F_BASE_HPP_
3 
4 /*
5  * Copyright 2006 Klaus Triendl
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the Free
19  * Software Foundation, 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21 */
22 
23 #include <tr1/memory> // std::tr1::shared_ptr
24 #include <sigxconfig.h>
25 #include <sigx/fwddecl.h>
26 #include <sigx/nonassignable.h>
30 
31 
32 namespace sigx
33 {
34 
44 {
45 protected:
46  signal_f_base(const shared_dispatchable& _A_disp, signal_source_ptr _A_psigsource);
47  // implicit dtor is fine; non-virtual by design
48 
49 
50 protected:
54  std::tr1::shared_ptr<signal_source_base> m_sigsource;
55 };
56 
57 
58 } // namespace sigx
59 
60 
61 #endif // end file guard
std::tr1::shared_ptr< signal_source_base > m_sigsource
Shared signal source.
Definition: signal_f_base.h:54
Private operator new and delete ensure derived classes cannot be created with new on the heap...
Definition: nonheapallocatable.h:35
Private address operator (operator &) ensures that the address of derived objects can't be taken...
Definition: nonpointeraliasing.h:34
shared_dispatchable m_disp
Definition: signal_f_base.h:51
Represents a source for any type of signal.
Definition: signal_source_base.h:38
Base class for signal functors, see signal_f.
Definition: signal_f_base.h:43
thread safe dispatcher reference that can be passed around.
Definition: shared_dispatchable.h:50
Private assignment operator (operator =) ensures that derived classes can't be copied by assignment...
Definition: nonassignable.h:34