26 using namespace gtsam;
87 list<int>
keys{5, 6, 7};
108 map<int, set<int> > sets = dsf.
sets();
123 map<int, set<int> > sets = dsf.
sets();
137 map<int, set<int> > sets = dsf.
sets();
183 list<int>
keys{5, 7};
198 set<int>
set = dsf.
set(5);
213 set<int>
set = dsf.
set(5);
221 int func(
const int&
a) {
return a + 10; }
259 static string x1(
"x1"),
x2(
"x2"),
x3(
"x3"),
x4(
"x4");
284 list<Measurement>
measurements{m11, m12, m14, m22, m23, m25, m26};
287 typedef pair<Measurement,Measurement> Match;
288 list<Match>
matches{Match(m11, m22), Match(m12, m23), Match(m14, m25),
308 set<Measurement> expected1{m11,m22};
309 set<Measurement> actual1 = dsf.
set(m11);
310 EXPECT(expected1 == actual1);
312 set<Measurement> expected2{m12,m23};
313 set<Measurement> actual2 = dsf.
set(m12);
314 EXPECT(expected2 == actual2);
316 set<Measurement> expected3{m14,m25,m26};
317 set<Measurement> actual3 = dsf.
set(m14);
318 EXPECT(expected3 == actual3);