Intermediate step in removal of Base
We are marking types that will be Nexters and ResultNexters (I want a better name for this one).
This commit is contained in:
parent
375d953d93
commit
b498a06a7b
13 changed files with 42 additions and 56 deletions
|
|
@ -40,24 +40,20 @@ type Or struct {
|
|||
}
|
||||
|
||||
func NewOr() *Or {
|
||||
or := Or{
|
||||
return &Or{
|
||||
uid: NextUID(),
|
||||
internalIterators: make([]graph.Iterator, 0, 20),
|
||||
currentIterator: -1,
|
||||
}
|
||||
BaseInit(&or.Base)
|
||||
return &or
|
||||
}
|
||||
|
||||
func NewShortCircuitOr() *Or {
|
||||
or := Or{
|
||||
return &Or{
|
||||
uid: NextUID(),
|
||||
internalIterators: make([]graph.Iterator, 0, 20),
|
||||
isShortCircuiting: true,
|
||||
currentIterator: -1,
|
||||
}
|
||||
BaseInit(&or.Base)
|
||||
return &or
|
||||
}
|
||||
|
||||
func (it *Or) UID() uint64 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue