refs #325, refs #330 fixed apply method to return list of changed properties

* changed CValueObject apply
* created CIndexPropertyList
* renamed CIndexVariantMap to CPropertyIndexVariantMap
This commit is contained in:
Klaus Basan
2014-10-02 15:57:33 +02:00
parent 88951318de
commit 4b50134d2a
26 changed files with 276 additions and 132 deletions

View File

@@ -12,7 +12,7 @@
#ifndef BLACKMISC_RANGE_H
#define BLACKMISC_RANGE_H
#include "indexvariantmap.h"
#include "propertyindexvariantmap.h"
#include "iterator.h"
#include "predicates.h"
#include <QtGlobal>
@@ -73,7 +73,7 @@ namespace BlackMisc
/*!
* \brief Return a copy containing only those elements matching a given value map.
*/
inline auto findBy(CIndexVariantMap valueMap) const
inline auto findBy(CPropertyIndexVariantMap valueMap) const
-> CRange<Iterators::ConditionalIterator<CIt, decltype(BlackMisc::Predicates::Equals(std::move(valueMap)))>>;
/*!
@@ -268,7 +268,7 @@ namespace BlackMisc
}
template <class Derived, class CIt>
auto CRangeBase<Derived, CIt>::findBy(CIndexVariantMap valueMap) const
auto CRangeBase<Derived, CIt>::findBy(CPropertyIndexVariantMap valueMap) const
-> CRange<Iterators::ConditionalIterator<CIt, decltype(BlackMisc::Predicates::Equals(std::move(valueMap)))>>
{
return findBy(BlackMisc::Predicates::Equals(std::move(valueMap)));