basic

package
v0.0.0-...-f53f79a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: MIT, GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComparisonFunc

type ComparisonFunc func(i, j interface{}) int

type GenericSeq

type GenericSeq interface {
	Sortable
	Append(e interface{}) bool
	Set(index int, e interface{}) bool
	Delete(index int) (interface{}, bool)
	ElemValue(index int) interface{}
	ElemType() reflect.Type
	Value() interface{}
}

type KeyGeneratorFunc

type KeyGeneratorFunc func(x interface{}) string

type Sequence

type Sequence struct {
	GenericSeq
	// contains filtered or unexported fields
}

func (*Sequence) Append

func (self *Sequence) Append(e interface{}) bool

func (*Sequence) ElemType

func (self *Sequence) ElemType() reflect.Type

func (*Sequence) Init

func (self *Sequence) Init() (ok bool)

func (*Sequence) Set

func (self *Sequence) Set(index int, e interface{}) bool

func (*Sequence) Sort

func (self *Sequence) Sort()

func (*Sequence) Sorted

func (self *Sequence) Sorted() bool

type SimpleSet

type SimpleSet struct {
	KeyGenerator KeyGeneratorFunc
	Comparator   ComparisonFunc
	// contains filtered or unexported fields
}

func (*SimpleSet) Add

func (self *SimpleSet) Add(element interface{}) bool

func (*SimpleSet) Clear

func (self *SimpleSet) Clear() bool

func (*SimpleSet) Contain

func (self *SimpleSet) Contain(element interface{}) bool

func (*SimpleSet) GetComparator

func (self *SimpleSet) GetComparator() ComparisonFunc

func (*SimpleSet) Iterator

func (self *SimpleSet) Iterator() SimpleSetIterator

func (*SimpleSet) Len

func (self *SimpleSet) Len() int

func (*SimpleSet) Less

func (self *SimpleSet) Less(i, j int) bool

func (*SimpleSet) Remove

func (self *SimpleSet) Remove(element interface{}) bool

func (*SimpleSet) Slice

func (self *SimpleSet) Slice() []interface{}

func (*SimpleSet) Sortable

func (self *SimpleSet) Sortable() bool

func (*SimpleSet) String

func (self *SimpleSet) String() string

func (*SimpleSet) Swap

func (self *SimpleSet) Swap(i, j int)

type SimpleSetIterator

type SimpleSetIterator func() (interface{}, bool)

type Sortable

type Sortable interface {
	sort.Interface
	Sort()
}

type StringSeq

type StringSeq struct {
	// contains filtered or unexported fields
}

func (*StringSeq) Append

func (self *StringSeq) Append(e interface{}) bool

func (*StringSeq) Delete

func (self *StringSeq) Delete(index int) (interface{}, bool)

func (*StringSeq) ElemType

func (self *StringSeq) ElemType() reflect.Type

func (StringSeq) ElemValue

func (self StringSeq) ElemValue(index int) interface{}

func (*StringSeq) Len

func (self *StringSeq) Len() int

func (*StringSeq) Less

func (self *StringSeq) Less(i, j int) bool

func (*StringSeq) Set

func (self *StringSeq) Set(index int, e interface{}) bool

func (*StringSeq) Sort

func (self *StringSeq) Sort()

func (*StringSeq) Swap

func (self *StringSeq) Swap(i, j int)

func (StringSeq) Value

func (self StringSeq) Value() interface{}

Directories

Path Synopsis
cgo
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL