change private to protected
parent
0142cc3d3f
commit
f7b36d151c
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
@ -22,7 +23,7 @@ namespace gtsam {
|
||||||
class Symbol;
|
class Symbol;
|
||||||
|
|
||||||
template <class Key>
|
template <class Key>
|
||||||
class DSF : BTree<Key, Key> {
|
class DSF : protected BTree<Key, Key> {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef Key Label; // label can be different from key, but for now they are same
|
typedef Key Label; // label can be different from key, but for now they are same
|
||||||
|
|
@ -126,7 +127,7 @@ namespace gtsam {
|
||||||
std::cout << (std::string)pair.first << " " << (std::string)pair.second << std::endl;
|
std::cout << (std::string)pair.first << " " << (std::string)pair.second << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* same as findSet except with path compression: After we have traversed the path to
|
* same as findSet except with path compression: After we have traversed the path to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue