-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynchronisation.h
36 lines (30 loc) · 987 Bytes
/
synchronisation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
@author: Sir0ga90
@version: 0.1
@date: 04.10.2016
*/
//=============================================
/*
- This header contain functions for synchronisation
2 main containers;
- synchronisation -> containers have same elements
(for map element, in this case is key of it element)
*/
//=============================================
#pragma once
//=============================================
#include "ñontainer.h"
//=============================================
using namespace std;
//=============================================
void sync(MMap& _map, MVec& _vec);
void syncMapVec(MMap& _mMap, MVec& _mVec);
void filterMap(MMap& _map, MVec& _vec);
inline bool checkEmptyMap(MMap& _map);
void filterVec(MMap& _map, MVec& _vec);
void compareMapToVec(mMIter& _mIt,
MMap& _map,
MVec& _vec);
void compareVecToMap(mVIter& _vIt,
MVec& _vec,
MMap& _map);