github.com/tobgu/qframe@v0.4.0/internal/icolumn/filters_gen.go (about)

     1  package icolumn
     2  
     3  import (
     4  	"github.com/tobgu/qframe/internal/index"
     5  )
     6  
     7  // Code generated from template/... DO NOT EDIT
     8  
     9  func lt(index index.Int, column []int, comp int, 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 lte(index index.Int, column []int, comp int, 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 gt(index index.Int, column []int, comp int, bIndex index.Bool) {
    26  	for i, x := range bIndex {
    27  		if !x {
    28  			bIndex[i] = column[index[i]] > comp
    29  		}
    30  	}
    31  }
    32  
    33  func gte(index index.Int, column []int, comp int, bIndex index.Bool) {
    34  	for i, x := range bIndex {
    35  		if !x {
    36  			bIndex[i] = column[index[i]] >= comp
    37  		}
    38  	}
    39  }
    40  
    41  func eq(index index.Int, column []int, comp int, bIndex index.Bool) {
    42  	for i, x := range bIndex {
    43  		if !x {
    44  			bIndex[i] = column[index[i]] == comp
    45  		}
    46  	}
    47  }
    48  
    49  func neq(index index.Int, column []int, comp int, bIndex index.Bool) {
    50  	for i, x := range bIndex {
    51  		if !x {
    52  			bIndex[i] = column[index[i]] != comp
    53  		}
    54  	}
    55  }
    56  
    57  func lt2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
    58  	for i, x := range bIndex {
    59  		if !x {
    60  			pos := index[i]
    61  			bIndex[i] = column[pos] < compCol[pos]
    62  		}
    63  	}
    64  }
    65  
    66  func lte2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
    67  	for i, x := range bIndex {
    68  		if !x {
    69  			pos := index[i]
    70  			bIndex[i] = column[pos] <= compCol[pos]
    71  		}
    72  	}
    73  }
    74  
    75  func gt2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
    76  	for i, x := range bIndex {
    77  		if !x {
    78  			pos := index[i]
    79  			bIndex[i] = column[pos] > compCol[pos]
    80  		}
    81  	}
    82  }
    83  
    84  func gte2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
    85  	for i, x := range bIndex {
    86  		if !x {
    87  			pos := index[i]
    88  			bIndex[i] = column[pos] >= compCol[pos]
    89  		}
    90  	}
    91  }
    92  
    93  func eq2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
    94  	for i, x := range bIndex {
    95  		if !x {
    96  			pos := index[i]
    97  			bIndex[i] = column[pos] == compCol[pos]
    98  		}
    99  	}
   100  }
   101  
   102  func neq2(index index.Int, column []int, compCol []int, bIndex index.Bool) {
   103  	for i, x := range bIndex {
   104  		if !x {
   105  			pos := index[i]
   106  			bIndex[i] = column[pos] != compCol[pos]
   107  		}
   108  	}
   109  }