move to getter setter file

This commit is contained in:
Chris Lu
2021-08-20 18:37:34 -07:00
parent 0c360eb6b2
commit 01661ec6a7
3 changed files with 15 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
package bptree
func (self *BpMap) getRoot() *BpNode {
return self.root
}
func (self *BpMap) setRoot(root *BpNode) {
self.root = root
}
func (self *BpTree) getRoot() *BpNode {
return self.root
}
func (self *BpTree) setRoot(root *BpNode) {
self.root = root
}