Mathew Sutcliffe
d6234ee2cd
refs #311 added initializer_list constructors in containers
2014-08-06 17:29:20 +01:00
Mathew Sutcliffe
83b552faf6
refs #290 added CSequence::truncate method
2014-07-13 20:30:24 +01:00
Mathew Sutcliffe
98a6854f8c
refs #290 using a CRange of iterator adaptors to return from the secondary predicate-based methods of the containers without copying elements
2014-07-13 20:30:20 +01:00
Mathew Sutcliffe
101c5a4f98
refs #290 using a CRange of iterator adaptors to return from the primary predicate-based methods of CRangeBase without copying elements
2014-07-13 20:30:20 +01:00
Mathew Sutcliffe
bcac93f593
CSequence: frontOrDefault and backOrDefault taking the default value as an argument
2014-07-13 20:30:16 +01:00
Mathew Sutcliffe
e23e418797
incidental refactoring: simplify some predicates by templating their call operators
2014-07-13 00:45:22 +01:00
Mathew Sutcliffe
482ddf2081
fixes #285 removing fake variadics in predicate-based container methods
2014-07-04 11:41:44 +02:00
Mathew Sutcliffe
b5097a0e63
containers: added opaque pointer access to implementation container, to help with debugging
2014-07-01 01:03:32 +01:00
Mathew Sutcliffe
078ae6c498
refs #260 added frontOrDefault and backOrDefault methods in CSequence
2014-06-05 23:29:10 +01:00
Mathew Sutcliffe
894df23c50
refs #230 methods to combine and bisect containers
2014-05-06 18:13:20 +01:00
Mathew Sutcliffe
e076248cd9
additional support for move semantics in our containers
2014-05-05 01:41:41 +01:00
Klaus Basan
e474671ead
refs #207 , renamed CValueMap to CIndexVariantMap.
...
* The map will be used with CSimulaorInfo to transfer a variable number of setting information about the flight simulator. It is being used, because it is already DBus and tupel compliant. The new name better fits its purpose.
* Add == operator for CIndexVariantMap (ambiguity error with tupels)
2014-04-17 00:10:04 +02:00
Mathew Sutcliffe
f60b58ccd2
using intptr_t as the size_type for containers
...
refs #92 fixes MSVC "possible loss of data" warning when compiling for 64bits
2014-02-17 16:37:02 +00:00
Mathew Sutcliffe
e52a4da826
refs #124 using override keyword in containers' pimpls
2014-02-08 14:20:39 +00:00
Mathew Sutcliffe
c966d487f0
refs #91 Doxygen fixes in containers, predicates, and plugins.
...
Fixed PREDEFINED config in Doxyfile, so Doxygen only sees the variadic predicates.
2014-02-08 14:20:38 +00:00
Mathew Sutcliffe
7c8aa8226d
const corrections
2014-01-28 20:19:06 +00:00
Mathew Sutcliffe
d48d8ed951
refs #106 , moved removeIf from CSequence to CContainerBase and added remove method in CCollection (CSequence already had a remove method)
2014-01-28 18:30:06 +00:00
Mathew Sutcliffe
1e153b45f0
refs #108 , added find methods in CSequence and CCollection;
...
CSequence uses std::find, and CCollection uses the more efficient find method of the implementation type,
which requires that the implementation type be an associative container like QSet or std::set.
Modified CContainerBase::contains to use these new find methods.
2014-01-28 18:25:14 +00:00
Mathew Sutcliffe
d073681630
minor doxygen fixes
2014-01-28 01:50:30 +00:00
Mathew Sutcliffe
88f4a7186f
fixed mistake with forgetting to call erase after std::remove
2014-01-27 00:48:14 +00:00
Mathew Sutcliffe
6f19d0a479
containers: added methods contains(), remove(), replace(), replaceOrAdd(),
...
corresponding to contains(), removeIf(), replaceIf(), and replaceOrAdd(), but overloaded for const T& as well as for predicates.
refs #106
2014-01-25 19:36:42 +00:00
Mathew Sutcliffe
33d555e151
moved removeIf from CContainerBase to CSequence because it can't work with non-sequential containers, fixes #106
2014-01-25 19:36:42 +00:00
Mathew Sutcliffe
3d3a43602f
removed unnecessary \param and \return lines from doxygen comments for container classes, refs #91
2014-01-25 19:36:41 +00:00
Mathew Sutcliffe
405ad7165e
Iterator classes: removed templated ctors and added static methods to replace them,
...
for consistency with the container classes and to avoid any potential infinite recursion with MSVC2010.
See also commit:6a9065b
Also fixed a mistake in CSequence and CCollection, where Pimpl::erase was calling the wrong version of m_impl.erase
reported by Roland.
2014-01-11 16:53:21 +00:00
Mathew Sutcliffe
6a9065b37f
Container classes: removed templated ctors and added static methods to replace them.
...
This resolves an issue with infinite recursion and stack overflows in MSVC2010.
See also http://connect.microsoft.com/VisualStudio/feedback/details/522094/
2014-01-11 01:32:24 +00:00
Mathew Sutcliffe
4f4b77f2b2
CSequence: added sort method, an in-place companion to the sorted method
...
refs #81
2014-01-10 00:20:22 +00:00
Mathew Sutcliffe
08e978c8d6
moved from CContainerBase to CSequence those methods which only support sequential containers
...
refs #81
2014-01-10 00:20:21 +00:00
Mathew Sutcliffe
a57e640398
generic type-erased container types CSequence and CCollection, including predicate-based algorithms
...
refs #81
2014-01-08 00:59:31 +00:00