summaryrefslogtreecommitdiff
path: root/tests/test_size.cc
Commit message (Collapse)AuthorAgeFilesLines
* Reformat code with make formatMurray Cumming2019-10-281-19/+18
|
* tests: Implement a function.Murray Cumming2017-04-181-1/+1
| | | | | We don't actually call the function, but it avoids an inspection warning from Jetbrains CLion, and doesn't seem unreasonable.
* tests: Remove unnecessary includes.Murray Cumming2017-04-181-1/+0
| | | | Found by Jetbrains CLion.
* Remove trailing whitespace.Murray Cumming2016-05-161-1/+1
|
* test_size: Add comments with the results, so we can notice changes.Murray Cumming2016-04-211-0/+26
|
* signal::connect(): Return a sigc::connection.Murray Cumming2016-04-211-2/+0
| | | | Instead of an iterator aliases to a signal<>::connection.
* signal: Rename iterator to connection.Murray Cumming2016-04-211-1/+1
| | | | It is still actually an iterator, but we can change that later.
* Remove unnecessary -*- c++ - *-* comments.Murray Cumming2016-04-201-1/+0
|
* Update copyright years.Murray Cumming2016-04-201-1/+1
|
* Add .clang-format file and reformat tests and examples.Murray Cumming2016-03-301-5/+10
|
* tests: Use the sigc::slot<R(Args...)> syntax only.Murray Cumming2016-03-161-1/+1
|
* tests: Use sigc::signal<R(Args...)> syntax only.Murray Cumming2016-03-161-3/+3
|
* Rename mem_functor_base to mem_functor.Murray Cumming2016-03-071-1/+1
| | | | And rename bound_mem_functor_base to bound_mem_functor.
* mem_fun.h.m4: Remove mem_functor and const_mem_functor.Murray Cumming2016-03-071-2/+2
| | | | They were only used in one place, internally, and did not add much clarity.
* *mem_functor(): Remove the numbered versions, leaving just variadic ones.Murray Cumming2016-03-071-2/+2
| | | | | | | Do not generate *mem_functor0 through *mem_functor7. Instead just generate variadic *mem_functor<>. We do still generate mem_functor, const_mem_functor and const_volatile_mem_functor, which seems messy.
* 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.
* Test cases: Report pass/fail with exit status.Kjell Ahlstedt2012-10-181-21/+37
| | | | | | | | * tests/testutilities.[h|cc]: New files. Code common to all test cases. * tests/*.cc: Use class TestUtilities. Don't print anything if the test passes. Return EXIT_FAILURE if the test fails. * tests/Makefile.am: Add testutilities.[h|cc] to all test cases. Bug #684956.
* Added cxx_std.m4, with a test copied from glibmm/scripts/cxx_std.m4 toMurray Cumming2005-01-191-0/+2
| | | | | | | | | | | | | | | 2005-01-19 Murray Cumming <murrayc@murrayc.com> * scripts/: Added cxx_std.m4, with a test copied from glibmm/scripts/cxx_std.m4 to check if the compiler has the std:: namespace. * sigcconfig.h: #undef the new #define and add SIGC_USING_STD(), like GLIBMM_USING_STD, to put stuff in the std:: namespace when it is not there already, * configure.in: Used the new test. * tests/*: Uses SIG_USING_STD() for every std:: thing that we use. This is needed by the Tru64 and HP-UX compilers when using their defaults.
* Add announces of versions 1.9.6 and 1.9.7. New file. Defines namespaceMartin Schulze2003-10-191-25/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+4
| | | | | | | 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.).
* - signal_emit#<>: New templates replacing signal#<>::caller. The purposeMartin Schulze2003-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-07 Martin Schulze <MHL.Schulze@t-online.de> * sigc++/signal.{cc,h.m4}: - signal_emit#<>: New templates replacing signal#<>::caller. The purpose of these templates is implementing the emit function and optimizing signal emission for the case that no accumulator is used via template specializations. - default_accumulator<>: Removed. The default for T_accumulator in signal#<> now is nil. An example how to use accumulators is available in tests/test_accumulator.cc. - signal_{base,impl}: Move the implementation of signal_base's interface to signal_impl. An object of this class is dynamically allocated when first connecting a closure to the signal. This drastically reduces the size of empty signals and allows for future addition of a reference counter to make it safe to delete a signal during emission. - Directly work on closure_rep during signal emission. This seems to be quicker than using the closure templates. - Document the classes. Restructure the header file a bit. * sigc++/functors/closure.h.m4: Make closure_base::rep_ data member public, so that signal emission can directly work on it. * tests/test_size.cc: Add an entry for signal_impl.
* Add two test cases. test_size is showing the size of public and internalMartin Schulze2003-03-051-0/+39
2003-03-05 Martin Schulze <MHL.Schulze@t-online.de> * tests/Makefile.am, tests/test_size.cc, tests/test_accumulated.cc: Add two test cases. test_size is showing the size of public and internal structures. (Which apart from empty signals are smaller than the sizes of the equivalent libsigc++-1.2 structures.) test_accumulated is a test for the template signal<>::accumulated<> at the same time showing the use of accumulators in libsigc++2.