summaryrefslogtreecommitdiff
path: root/glib/glibmm/vectorutils.h
Commit message (Collapse)AuthorAgeFilesLines
* glib/glibmm/*.h: Mark classes and methods with GLIBMM_APIChun-wei Fan2020-03-051-1/+2
| | | | | This prepares the code to use __declspec(dllexport) to export all symbols, so that we can eventually bid farewell to gendf.exe
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-3/+1
| | | | Bug 786824
* C++11: .h/.cc files: Replace typedefs with using.Murray Cumming2016-03-311-48/+48
|
* Run clang-format on glib .h files.Murray Cumming2016-02-261-196/+215
|
* Glib: More nullptr instead of 0.Murray Cumming2015-11-201-6/+6
|
* Make destructors explicitly noexcept.Murray Cumming2015-08-311-6/+6
| | | | | Destructors are already noexcept, but this makes that even clearer. This might be foolish.
* Documentation: Fix many warnings from Doxygen.Kjell Ahlstedt2013-01-271-1/+1
| | | | | | | | | | | | | | | * gio/src/gio_docs_override.xml: * glib/src/glib_docs_override.xml: Move "Since: n.m" from the <return> to the <description> entries. gmmproc adds a period at the end of the @return Doxygen command, and Doxygen warns for "@newin{n,m}.". * glib/glibmm/interface.h: * glib/glibmm/stringutils.h: * glib/glibmm/vectorutils.h: * gio/src/*.hg: * glib/src/*.hg: (Here "*" means "many", not "all") Examples of changes: Add missing @param. Change names of parameters, to make them equal in function declaration and @param command. Change "@name" to "@a name". Change "<ulink url=" to "<a href=".
* Use std::size_t and std::ptrdiff_t.Kjell Ahlstedt2012-09-121-12/+13
| | | | | | | | | | | | | | | | | | * glib/glibmm/arrayhandle.h: * glib/glibmm/containers.h: * glib/glibmm/listhandle.h: * glib/glibmm/slisthandle.h: * glib/glibmm/vectorutils.h: Use std::size_t and std::ptrdiff_t instead of ::size_t and ::ptrdiff_t. Only the std versions are required to be declared in <cstddef>. * examples/network/resolver.cc: * glib/glibmm/containerhandle_shared.h: * glib/glibmm/helperlist.h: * glib/glibmm/main.h: * glib/glibmm/vectorutils.cc: Use std::size_t instead of ::size_t. * glib/src/convert.hg: Use std::size_t instead of ::size_t in a comment. * glib/glibmm/property.cc: * glib/glibmm/ustring.h: Use std::ptrdiff_t instead of ::ptrdiff_t.
* Vectorutils, ArrayHandle: Check for NULL pointers.Krzesimir Nowak2011-03-211-12/+20
| | | | | | | | | | | | | | | * glib/glibmm/vectorutils.[h|cc]: Don't crash in compute_array_size2, when NULL is passed - in that case just return 0. Also, array_to_vector method return empty vector in such case. * glib/glibmm/arrayhandle.[h|cc]: Set array_size to zero if passed array is NULL. * tests/glibmm_null_vectorutils/main.cc: New test for NULL arrays and lists for vectorutils. * tests/glibmm_null_containerhandle/main.cc: New test for NULL arrays and lists for containerhandles. * tests/Makefile.am: Added new tests to build. Spotted by Kalev Lember. Bug #645245.
* Vector utils: Corrected documentation and extended it bit.Krzesimir Nowak2011-02-011-6/+167
| | | | | | * glib/glibmm/vectorutils.h: Documented important parts of *Keeper classes and corrected examples in *Handler classes. The documentation mostly tries to explain memory management.
* Vector utils: Added simple documentation.Murray Cumming2011-01-301-15/+41
| | | | | | * glib/glibmm/vectorutils.h: Some simple documentation about the *Handler utility classes, though I need to correct the example code and explain the memory mangement when that is clear to me.
* Fixed code style.Murray Cumming2011-01-271-188/+188
|
* Added vectorutils.h.Krzesimir Nowak2011-01-271-0/+796
* glib/glibmm/vectorutils.[h|cc]: New files implementing an array, list, slist <-> std::vector convertions. It implements also a specialization for bool types. * glib/glibmm.h: Include vectorutils.h. * glib/glibmm/filelist.am: Added vectorutils to build. * tests/glibmm_vector/main.cc: New test for general vectorutils check. * tests/glibmm_bool_vector/main.cc: New test checking bool specializations. * tests/Makefile.am: Added above tests to build system.