示例#1
0
文件: imp.go 项目: CaptainSoOmA/Uni
func New() *Imp {
	//
	x := new(Imp)
	d := day.New()
	x.file = pseq.New(d)
	x.dayset = set.New(d)
	return x
}
示例#2
0
文件: imp.go 项目: CaptainSoOmA/Uni
func New(o Object, f ObjectFunc) *Imp {
	//
	x := new(Imp)
	x.object = o.Clone() // TODO type information behind o lost, e.g. Editor
	x.file = pseq.New(x.object)
	x.f, x.index = f, index.New(f(o))
	x.tree = set.New(x.index)
	x.posPool = qu.New(uint(0))
	return x
}