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)
This commit is contained in:
Klaus Basan
2014-04-14 11:15:14 +02:00
parent 2b07012e4f
commit e474671ead
17 changed files with 121 additions and 152 deletions

View File

@@ -11,7 +11,7 @@
#define BLACKMISC_CONTAINERBASE_H
#include "valueobject.h"
#include "valuemap.h"
#include "indexvariantmap.h"
#include "predicates.h"
#include "json.h"
#include <algorithm>
@@ -93,7 +93,7 @@ namespace BlackMisc
/*!
* \brief Return a copy containing only those elements matching a given value map.
*/
C<T> findBy(const CValueMap &valueMap) const
C<T> findBy(const CIndexVariantMap &valueMap) const
{
return findBy([ & ](const T & value) { return value == valueMap; });
}