github.com/tobgu/qframe@v0.4.0/internal/bcolumn/filters_gen.go (about) 1 package bcolumn 2 3 import ( 4 "github.com/tobgu/qframe/internal/index" 5 ) 6 7 // Code generated from template/... DO NOT EDIT 8 9 func eq(index index.Int, column []bool, comp bool, bIndex index.Bool) { 10 for i, x := range bIndex { 11 if !x { 12 bIndex[i] = column[index[i]] == comp 13 } 14 } 15 } 16 17 func neq(index index.Int, column []bool, comp bool, bIndex index.Bool) { 18 for i, x := range bIndex { 19 if !x { 20 bIndex[i] = column[index[i]] != comp 21 } 22 } 23 } 24 25 func eq2(index index.Int, column []bool, compCol []bool, bIndex index.Bool) { 26 for i, x := range bIndex { 27 if !x { 28 pos := index[i] 29 bIndex[i] = column[pos] == compCol[pos] 30 } 31 } 32 } 33 34 func neq2(index index.Int, column []bool, compCol []bool, bIndex index.Bool) { 35 for i, x := range bIndex { 36 if !x { 37 pos := index[i] 38 bIndex[i] = column[pos] != compCol[pos] 39 } 40 } 41 }