Documentation
¶
Index ¶
- Constants
- func GetPool() interfaces.Pool[Path, *Path]
- type Path
- func (p *Path) Add(es ...*Tag)
- func (a *Path) AddPath(b *Path)
- func (p *Path) Cap() int
- func (a *Path) Clone() *Path
- func (a *Path) CloneAndAddPath(c *Path) *Path
- func (a *Path) Compare(b *Path) int
- func (a *Path) Copy() (b *Path)
- func (a *Path) Equals(b *Path) bool
- func (a *Path) First() *Tag
- func (a *Path) IsEmpty() bool
- func (a *Path) Last() *Tag
- func (p *Path) Len() int
- func (p *Path) Less(i, j int) bool
- func (p *Path) ReadFrom(r io.Reader) (n int64, err error)
- func (p *Path) String() string
- func (p *Path) Swap(i, j int)
- func (p *Path) WriteTo(w io.Writer) (n int64, err error)
- type PathWithType
- type PathsWithTypes
- func (s *PathsWithTypes) AddNonEmptyPath(p *PathWithType)
- func (s *PathsWithTypes) AddPath(p *PathWithType) (idx int, alreadyExists bool)
- func (s PathsWithTypes) ContainsPath(p *PathWithType) (int, bool)
- func (s PathsWithTypes) Len() int
- func (s PathsWithTypes) Less(i, j int) bool
- func (a *PathsWithTypes) Reset()
- func (s PathsWithTypes) Swap(i, j int)
- type SlicePaths
- func (s *SlicePaths) AddNonEmptyPath(p *Path)
- func (s *SlicePaths) AddPath(p *Path) (idx int, alreadyExists bool)
- func (s SlicePaths) ContainsPath(p *Path) (int, bool)
- func (s SlicePaths) Len() int
- func (s SlicePaths) Less(i, j int) bool
- func (a *SlicePaths) Reset()
- func (s SlicePaths) Swap(i, j int)
- type StringBackward
- type StringForward
- type Tag
- type TagWithParentsAndTypes
- type Tags
- func (es *Tags) AddPath(p *PathWithType) (err error)
- func (es *Tags) AddPathWithType(pwt *PathWithType) (err error)
- func (es *Tags) AddSelf(e *Tag) (err error)
- func (a *Tags) AddSuperFrom(b *Tags, prefix *Tag) (err error)
- func (es *Tags) AddTag(e *Tag) (err error)
- func (es *Tags) AddTagOld(e ids.Tag) (err error)
- func (a *Tags) Reset()
- func (a *Tags) ResetWith(b *Tags)
- func (s *Tags) Set(v string) (err error)
- func (a *Tags) String() string
- type TagsWithParentsAndTypes
- func (s *TagsWithParentsAndTypes) Add(e1 *Tag, p *PathWithType) (err error)
- func (s TagsWithParentsAndTypes) ContainsObjectIdTag(k *ids.ObjectId) (int, bool)
- func (s TagsWithParentsAndTypes) ContainsObjectIdTagExact(k *ids.ObjectId) (int, bool)
- func (s TagsWithParentsAndTypes) ContainsString(value string) (int, bool)
- func (s TagsWithParentsAndTypes) ContainsTag(e *Tag) (int, bool)
- func (s TagsWithParentsAndTypes) GetMatching(e *Tag) (matching []TagWithParentsAndTypes)
- func (s TagsWithParentsAndTypes) Len() int
- func (s *TagsWithParentsAndTypes) Remove(e1 *Tag) (err error)
- func (s *TagsWithParentsAndTypes) Reset()
- func (s TagsWithParentsAndTypes) StringCommaSeparatedExplicit() string
- type Type
Constants ¶
View Source
const ( TypeDirect = Type(iota) TypeSuper TypeIndirect TypeSelf TypeUnknown )
describe these
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PathWithType ¶
func MakePathWithType ¶
func MakePathWithType(els ...*Tag) *PathWithType
func (*PathWithType) Clone ¶
func (a *PathWithType) Clone() (b *PathWithType)
func (*PathWithType) String ¶
func (p *PathWithType) String() string
type PathsWithTypes ¶
type PathsWithTypes []*PathWithType
func (*PathsWithTypes) AddNonEmptyPath ¶
func (s *PathsWithTypes) AddNonEmptyPath(p *PathWithType)
func (*PathsWithTypes) AddPath ¶
func (s *PathsWithTypes) AddPath(p *PathWithType) (idx int, alreadyExists bool)
func (PathsWithTypes) ContainsPath ¶
func (s PathsWithTypes) ContainsPath(p *PathWithType) (int, bool)
func (PathsWithTypes) Len ¶
func (s PathsWithTypes) Len() int
func (PathsWithTypes) Less ¶
func (s PathsWithTypes) Less(i, j int) bool
func (*PathsWithTypes) Reset ¶
func (a *PathsWithTypes) Reset()
func (PathsWithTypes) Swap ¶
func (s PathsWithTypes) Swap(i, j int)
type SlicePaths ¶
type SlicePaths []*Path
func (*SlicePaths) AddNonEmptyPath ¶
func (s *SlicePaths) AddNonEmptyPath(p *Path)
func (SlicePaths) ContainsPath ¶
func (s SlicePaths) ContainsPath(p *Path) (int, bool)
func (SlicePaths) Len ¶
func (s SlicePaths) Len() int
func (SlicePaths) Less ¶
func (s SlicePaths) Less(i, j int) bool
func (*SlicePaths) Reset ¶
func (a *SlicePaths) Reset()
func (SlicePaths) Swap ¶
func (s SlicePaths) Swap(i, j int)
type StringBackward ¶
type StringBackward Path
func (*StringBackward) String ¶
func (p *StringBackward) String() string
type StringForward ¶
type StringForward Path
func (*StringForward) String ¶
func (p *StringForward) String() string
type TagWithParentsAndTypes ¶
type TagWithParentsAndTypes struct {
*Tag
Parents PathsWithTypes
}
func (TagWithParentsAndTypes) String ¶
func (ewp TagWithParentsAndTypes) String() string
type Tags ¶
type Tags struct {
Paths PathsWithTypes // TODO implement
All TagsWithParentsAndTypes
}
func (*Tags) AddPath ¶
func (es *Tags) AddPath(p *PathWithType) (err error)
func (*Tags) AddPathWithType ¶
func (es *Tags) AddPathWithType(pwt *PathWithType) (err error)
type TagsWithParentsAndTypes ¶
type TagsWithParentsAndTypes []TagWithParentsAndTypes
func (*TagsWithParentsAndTypes) Add ¶
func (s *TagsWithParentsAndTypes) Add( e1 *Tag, p *PathWithType, ) (err error)
TODO return success
func (TagsWithParentsAndTypes) ContainsObjectIdTag ¶
func (s TagsWithParentsAndTypes) ContainsObjectIdTag( k *ids.ObjectId, ) (int, bool)
func (TagsWithParentsAndTypes) ContainsObjectIdTagExact ¶
func (s TagsWithParentsAndTypes) ContainsObjectIdTagExact( k *ids.ObjectId, ) (int, bool)
func (TagsWithParentsAndTypes) ContainsString ¶
func (s TagsWithParentsAndTypes) ContainsString( value string, ) (int, bool)
func (TagsWithParentsAndTypes) ContainsTag ¶
func (s TagsWithParentsAndTypes) ContainsTag(e *Tag) (int, bool)
func (TagsWithParentsAndTypes) GetMatching ¶
func (s TagsWithParentsAndTypes) GetMatching( e *Tag, ) (matching []TagWithParentsAndTypes)
func (TagsWithParentsAndTypes) Len ¶
func (s TagsWithParentsAndTypes) Len() int
func (*TagsWithParentsAndTypes) Remove ¶
func (s *TagsWithParentsAndTypes) Remove(e1 *Tag) (err error)
TODO return success
func (*TagsWithParentsAndTypes) Reset ¶
func (s *TagsWithParentsAndTypes) Reset()
func (TagsWithParentsAndTypes) StringCommaSeparatedExplicit ¶
func (s TagsWithParentsAndTypes) StringCommaSeparatedExplicit() string
type Type ¶
type Type byte
func (Type) IsDirectOrSelf ¶
TODO determine if this should include type self
Click to show internal directories.
Click to hide internal directories.