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
|
|
@ -41,14 +41,12 @@ type Int64 struct {
|
|||
|
||||
// Creates a new Int64 with the given range.
|
||||
func NewInt64(min, max int64) *Int64 {
|
||||
all := Int64{
|
||||
return &Int64{
|
||||
uid: NextUID(),
|
||||
min: min,
|
||||
max: max,
|
||||
at: min,
|
||||
}
|
||||
BaseInit(&all.Base)
|
||||
return &all
|
||||
}
|
||||
|
||||
func (it *Int64) UID() uint64 {
|
||||
|
|
@ -113,6 +111,10 @@ func (it *Int64) Result() graph.Value {
|
|||
return it.result
|
||||
}
|
||||
|
||||
func (it *Int64) NextResult() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// No sub-iterators.
|
||||
func (it *Int64) SubIterators() []graph.Iterator {
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue