func ToSetting(id SettingID) (*Setting, bool) { result, ok := IDer.UnpackPickler(intern.ID(id), &Setting{}) if !ok { return nil, false } return result.(*Setting), true }
func ToActionC(id ActionCID) (ActionC, bool) { result, ok := IDer.UnpackPickler(intern.ID(id), ActionC{}) if !ok { return ActionC{}, false } return result.(ActionC), true }
func ToT(id TID) (T, bool) { unpacked, ok := IDer.UnpackPickler(intern.ID(id), &CompoundT{}) if !ok { return nil, false } return unpacked.(T), ok }
func ToTemplate(id TemplateID) (*Template, bool) { unpacked, ok := IDer.UnpackPickler(intern.ID(id), &Template{}) if !ok { return nil, false } return unpacked.(*Template), ok }
func (s *Setting) Append(line SettingLine, slotss ...int) *Setting { var slots int if len(slotss) == 0 { slots = line.Slots() } else { slots = slotss[0] } return &Setting{ Previous: s, Last: line, Slots: slots, Size: s.Size + 1, ID: SettingID(IDer.AppendToPacked( intern.ID(s.ID), line.LineID(), ).(intern.ID)), } }
func (t TemplateID) LineID() intern.ID { return intern.ID(t) }
func (a ActionCID) LineID() intern.ID { return intern.ID(a) }
func ToC(id CID) (C, bool) { unpacked, ok := IDer.UnpackPickler(intern.ID(id), &CompoundC{}) return unpacked.(C), ok }