change private to protected

release/4.3a0
Kai Ni 2010-04-21 03:47:20 +00:00
parent 0142cc3d3f
commit f7b36d151c
1 changed files with 3 additions and 2 deletions

View File

@ -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