summaryrefslogtreecommitdiff
path: root/sigc++/connection.cc
Commit message (Collapse)AuthorAgeFilesLines
* Reformat code with make formatMurray Cumming2019-10-281-15/+4
|
* connection: Use weak_raw_ptr for slot_base.Murray Cumming2016-05-021-20/+1
| | | | | Instead of connection deriving from notifiable and setting/unsetting its own notification callbacks. This simplifies the code.
* copy operations: Name all parameters src.Murray Cumming2016-04-271-2/+2
| | | | To make it more obvious that these are copy operations.
* Connection: Constructor: Take slot_base as reference.Murray Cumming2016-04-221-2/+2
| | | | This constructor existed before, so this avoids an API break.
* connection: Rename notify() for clarity.Murray Cumming2016-04-211-4/+4
|
* connection: Take the slot_base directly, without the intermediate slot_iterator.Murray Cumming2016-04-211-4/+6
|
* Update copyright years.Murray Cumming2016-04-201-1/+1
|
* Replace some reinterpret_cast<>s with static_casts<>.Murray Cumming2016-04-161-1/+1
| | | | | This is particularly unnecessary now that we have the notifiable base class.
* Reformat .cc files with clang-format.Murray Cumming2016-03-301-21/+29
|
* Connection::operator bool(): Make this const.Murray Cumming2016-03-071-1/+1
|
* Add and use notifiable base class instead of void*.Murray Cumming2016-03-071-2/+1
| | | | | | | | | Use notifiable as the base class for trackable, connection, signal_impl, self_and_iter and destroy_notify_struct. Use this notifiable* instead of void* for the destroy/notify callback data. This is a little more type-safe and self-documenting. Bug #302152
* Don't use SIGC_USING_STD()Kjell Ahlstedt2015-12-171-1/+0
| | | | | | The SIGC_USING_STD() macro is defined as an empty string, if some standard C++ symbols are defined in namespace std. They always are. Since many years, SIGC_USING_STD() is an unnecessary macro.
* trackable, slot_base, signal_base, connection: Add some noexcept specsKjell Ahlstedt2015-11-101-7/+7
|
* More use of nullptr instead of 0Kjell Ahlstedt2015-10-131-2/+1
|
* C++11: Use auto.Murray Cumming2015-07-181-1/+1
| | | | | Trying to avoid using auto where its a specific type that we are trying to test for.
* C++11: Use of nullptr instead of 0.Murray Cumming2015-07-181-2/+2
|
* Bug #159597 - patch from e97_far at e.kth.se to replace C-style casts withMurray Cumming2005-01-181-1/+1
| | | | | | | 2005-01-18 Murray Cumming <murrayc@murrayc.com> * Bug #159597 - patch from e97_far at e.kth.se to replace C-style casts with reinterpret_cast<> and static_cast<> to avoid warnings.
* Added some comments. operator=(): Check for self-asignment, though I doMurray Cumming2004-07-111-0/+2
| | | | | | | | | 2004-07-11 Murray Cumming <murrayc@murrayc.com> * sigc++/connection.cc: Added some comments. * sigc++/trackable.cc: operator=(): Check for self-asignment, though I do not know of any actual bug that this fixes. Added some comments. * sigc++/trackable.h Added some doxygen documentation.
* Implement blocked() to avoid undefined symbol linker error.Murray Cumming2004-04-101-0/+5
| | | | | | | 2004-04-10 Murray Cumming <murrayc@murrayc.com> * sigc++/connection.[h|cc]: Implement blocked() to avoid undefined symbol linker error.
* Make block() and unblock() always return a value, to fix compilerMurray Cumming2004-04-021-4/+2
| | | | | | | | | | | | | | 2004-04-02 Murray Cumming <murrayc@murrayc.com> * sigc++/connection.cc: Make block() and unblock() always return a value, to fix compiler warnings. Patch from bug #138620 by Alexander Nedotsukov. 2004-04-02 Murray Cumming <murrayc@murrayc.com> * Fix the compile of examples/member_method.cc. Bug #131701 from Kirill Smelkov. I also made the examples build as part of the regular build.
* Create and use a typedef for the destroy_notify callback functions, toMurray Cumming2004-02-131-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-13 Murray Cumming <murrayc@usa.net> * sigc++/functors/slot_base.[h|cc], sigc++/trackable.[h|cc]: Create and use a typedef for the destroy_notify callback functions, to avoid confusion function pointer declaration syntax in the API. 2004-02-13 Murray Cumming <murrayc@murrayc.com> * Moved implementation to .cc files: * sigc++/functors/: Added slot_base.[h|cc] which contains non-template code that was previsouly in the generated functors/slot.h and non-generated slot.cc files. All non-inline implementation is now in the .cc file. * sigc++/functors/macros/slot.m4: Removed the code that has been moved to slot_base.[h|cc]. * sigc++/: Added signal_base.[h|cc] which contains non-template code that was previously in the generated signal.h and non-generated signal.cc file. All non-inline implementation is now in the .cc file. * sigc++/macros/signal.m4: Removed the code that ahs been moved to signal.cc * sigc++/connector.[h|cc]: method implementation moved to the .cc file.
* Add announces of versions 1.9.6 and 1.9.7. New file. Defines namespaceMartin Schulze2003-10-191-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-19 Martin Schulze <teebaum@cvs.gnome.org> * NEWS: Add announces of versions 1.9.6 and 1.9.7. * sigc++/compatibility.h.m4: New file. Defines namespace SigC. namespace SigC should be API compatible to libsigc++-1.2. * sigc++/Makefile.am: Build compatibility.h. * tests/test_compatibility.cc, tests/Makefile.am: Add test case for compatibility module. * docs/index.html: Change group names. * sigc++/sigc++.h: Include connection.h. * sigc++/connection.{cc,h}: - Rename dependency to destroy_notify_callback. - Change parameter name in set_slot() from d to data. - Fix operator=(): Add "return *this;" - Get rid of namespace functor. - Corrections in documentation. * sigc++/signal.{cc,h.m4}: - Add reference counter to signal_impl. Replaces "bool destroy_". - Move signal_base, slot_iterator[_buf], slot_list out of namespace internal. They are part of the public API. - Add convenience function signal#::make_slot(). - Get rid of namespace functor. - Corrections in documentation. * sigc++/trackable.{cc,h}: - Rename dependency to destroy_notify_callback. - Rename trackable::clear() to trackable::notify_callbacks(). - Corrections in documentation. * sigc++/type_traits.h: Add documentation. * sigc++/visit_each.h: - Get rid of namespace functor. - Add documentation. * sigc++/adaptors[/lambda]/*: Get rid of namespace functor. * sigc++/functors/{functor_trait.h,ptr_fun.h.m4,mem_fun.h.m4}: - Get rid of namespace functor. - Corrections in documentation / add documentation. * sigc++/functors/slot.{cc,h.m4}: - Move slot_base out of namespace internal. It's public API. - Get rid of one-letter-parameter-names. - Get rid of namespace functor. - Corrections in documentation. * tests/*.cc: Get rid of "using namespace ...".
* Change "closure" to "slot" throughout sigc++2 (file names, class names,Martin Schulze2003-03-261-7/+7
| | | | | | | 2003-03-26 Martin Schulze <MHL.Schulze@t-online.de> * Change "closure" to "slot" throughout sigc++2 (file names, class names, member variables, documentation, etc.).
* - New files that add a connection class. Objects of this class areMartin Schulze2003-03-091-0/+44
2003-03-09 Martin Schulze <MHL.Schulze@t-online.de> * sigc++/connection.{cc,h}, sigc++/Makefile.am: - New files that add a connection class. Objects of this class are constructed from closure list iterators and can be used to disconnect the refered closure. As opposed to iterators they stay valid beyond the lifetime of the closure.