gonum: gonum.org/v1/gonum/graph/internal/uid Index | Files

package uid

import "gonum.org/v1/gonum/graph/internal/uid"

Package uid implements unique ID provision for graphs.

Index

Package Files

uid.go

Constants

const Max = int64(^uint64(0) >> 1)

Max is the maximum value of int64.

type Set Uses

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

Set implements available ID storage.

func NewSet Uses

func NewSet() Set

NewSet returns a new Set. The returned value should not be passed except by pointer.

func (*Set) NewID Uses

func (s *Set) NewID() int64

NewID returns a new unique ID. The ID returned is not considered used until passed in a call to use.

func (*Set) Release Uses

func (s *Set) Release(id int64)

Release frees the id for reuse.

func (*Set) Use Uses

func (s *Set) Use(id int64)

Use adds the id to the used IDs in the Set.

Package uid imports 1 packages (graph) and is imported by 2 packages. Updated 2019-01-30. Refresh now. Tools for package owners.