Documentation ¶
Index ¶
- type ConcurrentPriorityQueue
- type ConcurrentQueue
- type ConcurrentSet
- func (set *ConcurrentSet[K]) Add(k K)
- func (set *ConcurrentSet[K]) AddAll(ks []K)
- func (set *ConcurrentSet[K]) Contains(k K) bool
- func (set *ConcurrentSet[K]) ContainsAll(ks []K) bool
- func (set *ConcurrentSet[K]) Empty() bool
- func (set *ConcurrentSet[K]) Merge(s Set[K])
- func (set *ConcurrentSet[K]) Remove(k K)
- func (set *ConcurrentSet[K]) ToSlice() []K
- type DirNode
- type DirTree
- type Queue
- type Set
- func (set Set[K]) Add(k K)
- func (set Set[K]) AddAll(ks []K)
- func (set Set[K]) Contains(k K) bool
- func (set Set[K]) ContainsAll(ks []K) bool
- func (set Set[K]) Empty() bool
- func (set Set[K]) Merge(s Set[K])
- func (set Set[K]) Remove(k K)
- func (set Set[K]) String() string
- func (set Set[K]) ToSlice() []K
- type SimpleFile
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentPriorityQueue ¶
type ConcurrentPriorityQueue struct {
// contains filtered or unexported fields
}
func NewConcurrentPriorityQueue ¶
func NewConcurrentPriorityQueue(cmp utils.Comparator) *ConcurrentPriorityQueue
func (*ConcurrentPriorityQueue) Dequeue ¶
func (q *ConcurrentPriorityQueue) Dequeue() any
func (*ConcurrentPriorityQueue) Empty ¶
func (q *ConcurrentPriorityQueue) Empty() bool
func (*ConcurrentPriorityQueue) Enqueue ¶
func (q *ConcurrentPriorityQueue) Enqueue(v any)
func (*ConcurrentPriorityQueue) Peek ¶
func (q *ConcurrentPriorityQueue) Peek() any
type ConcurrentQueue ¶
type ConcurrentQueue struct {
// contains filtered or unexported fields
}
func NewConcurrentQueue ¶
func NewConcurrentQueue() *ConcurrentQueue
func (ConcurrentQueue) Dequeue ¶
func (q ConcurrentQueue) Dequeue() any
func (ConcurrentQueue) Empty ¶
func (q ConcurrentQueue) Empty() bool
func (ConcurrentQueue) Enqueue ¶
func (q ConcurrentQueue) Enqueue(v any)
func (ConcurrentQueue) Peek ¶
func (q ConcurrentQueue) Peek() any
type ConcurrentSet ¶
type ConcurrentSet[K comparable] struct { // contains filtered or unexported fields }
func ConcurrentFromSlice ¶
func ConcurrentFromSlice[K comparable](slc []K) ConcurrentSet[K]
func NewConcurrentSet ¶
func NewConcurrentSet[K comparable]() ConcurrentSet[K]
func (*ConcurrentSet[K]) Add ¶
func (set *ConcurrentSet[K]) Add(k K)
func (*ConcurrentSet[K]) AddAll ¶
func (set *ConcurrentSet[K]) AddAll(ks []K)
func (*ConcurrentSet[K]) Contains ¶
func (set *ConcurrentSet[K]) Contains(k K) bool
func (*ConcurrentSet[K]) ContainsAll ¶
func (set *ConcurrentSet[K]) ContainsAll(ks []K) bool
func (*ConcurrentSet[K]) Empty ¶
func (set *ConcurrentSet[K]) Empty() bool
func (*ConcurrentSet[K]) Merge ¶
func (set *ConcurrentSet[K]) Merge(s Set[K])
func (*ConcurrentSet[K]) Remove ¶
func (set *ConcurrentSet[K]) Remove(k K)
func (*ConcurrentSet[K]) ToSlice ¶
func (set *ConcurrentSet[K]) ToSlice() []K
type DirTree ¶
type DirTree DirNode
func NewDirTree ¶
func NewDirTree() *DirTree
func NewFile ¶
func NewFile(f *SimpleFile) *DirTree
type Set ¶
type Set[K comparable] map[K]struct{}
func FromSlice ¶
func FromSlice[K comparable](slc []K) Set[K]
func NewSet ¶
func NewSet[K comparable]() Set[K]
func (Set[K]) ContainsAll ¶
type SimpleFile ¶
type SimpleFile struct { DirName string FileName string Size uint64 User string Group string Access string ModifyTime string CreateTime string }
func (SimpleFile) IsDir ¶
func (f SimpleFile) IsDir() bool
Click to show internal directories.
Click to hide internal directories.