Commit c78dc0d3 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 62e5fb77
...@@ -26,7 +26,7 @@ import ( ...@@ -26,7 +26,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
const debugPPSet = false const tracePPSet = false
// PPTreeSubSet represents PP-connected subset of tree node objects. // PPTreeSubSet represents PP-connected subset of tree node objects.
// //
...@@ -146,7 +146,7 @@ func (A PPTreeSubSet) Union(B PPTreeSubSet) PPTreeSubSet { ...@@ -146,7 +146,7 @@ func (A PPTreeSubSet) Union(B PPTreeSubSet) PPTreeSubSet {
// //
// In other words it adds B nodes to A. // In other words it adds B nodes to A.
func (A PPTreeSubSet) UnionInplace(B PPTreeSubSet) { func (A PPTreeSubSet) UnionInplace(B PPTreeSubSet) {
if debugPPSet { if tracePPSet {
fmt.Printf("\n\nUnion:\n") fmt.Printf("\n\nUnion:\n")
fmt.Printf(" A: %s\n", A) fmt.Printf(" A: %s\n", A)
fmt.Printf(" B: %s\n", B) fmt.Printf(" B: %s\n", B)
...@@ -174,7 +174,7 @@ func (A PPTreeSubSet) Difference(B PPTreeSubSet) PPTreeSubSet { ...@@ -174,7 +174,7 @@ func (A PPTreeSubSet) Difference(B PPTreeSubSet) PPTreeSubSet {
// //
// In other words it removes B nodes from A while still maintaining A as PP-connected. // In other words it removes B nodes from A while still maintaining A as PP-connected.
func (A PPTreeSubSet) DifferenceInplace(B PPTreeSubSet) { func (A PPTreeSubSet) DifferenceInplace(B PPTreeSubSet) {
if debugPPSet { if tracePPSet {
fmt.Printf("\n\nDifference:\n") fmt.Printf("\n\nDifference:\n")
fmt.Printf(" A: %s\n", A) fmt.Printf(" A: %s\n", A)
fmt.Printf(" B: %s\n", B) fmt.Printf(" B: %s\n", B)
...@@ -191,7 +191,7 @@ func (A PPTreeSubSet) DifferenceInplace(B PPTreeSubSet) { ...@@ -191,7 +191,7 @@ func (A PPTreeSubSet) DifferenceInplace(B PPTreeSubSet) {
// XXX Intersection // XXX Intersection
func (A PPTreeSubSet) xUnionInplace(B PPTreeSubSet) { func (A PPTreeSubSet) xUnionInplace(B PPTreeSubSet) {
if debugPPSet { if tracePPSet {
fmt.Printf("\n\n xUnion:\n") fmt.Printf("\n\n xUnion:\n")
fmt.Printf(" a: %s\n", A) fmt.Printf(" a: %s\n", A)
fmt.Printf(" b: %s\n", B) fmt.Printf(" b: %s\n", B)
...@@ -225,7 +225,7 @@ func (A PPTreeSubSet) xUnionInplace(B PPTreeSubSet) { ...@@ -225,7 +225,7 @@ func (A PPTreeSubSet) xUnionInplace(B PPTreeSubSet) {
} }
func (A PPTreeSubSet) xDifferenceInplace(B PPTreeSubSet) { func (A PPTreeSubSet) xDifferenceInplace(B PPTreeSubSet) {
if debugPPSet { if tracePPSet {
fmt.Printf("\n\n xDifference:\n") fmt.Printf("\n\n xDifference:\n")
fmt.Printf(" a: %s\n", A) fmt.Printf(" a: %s\n", A)
fmt.Printf(" b: %s\n", B) fmt.Printf(" b: %s\n", B)
...@@ -466,7 +466,7 @@ func (δ *ΔPPTreeSubSet) Reverse() { ...@@ -466,7 +466,7 @@ func (δ *ΔPPTreeSubSet) Reverse() {
// //
// See ΔPPTreeSubSet documentation for details. // See ΔPPTreeSubSet documentation for details.
func (S PPTreeSubSet) ApplyΔ(δ *ΔPPTreeSubSet) { func (S PPTreeSubSet) ApplyΔ(δ *ΔPPTreeSubSet) {
if debugPPSet { if tracePPSet {
fmt.Printf("\n\nApplyΔ\n") fmt.Printf("\n\nApplyΔ\n")
fmt.Printf(" A: %s\n", S) fmt.Printf(" A: %s\n", S)
fmt.Printf(" -: %s\n", δ.Del) fmt.Printf(" -: %s\n", δ.Del)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment