set

package
v0.0.0-...-5b1d4a5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSet

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

GSet provides implementation of the G-Set

func NewGSet

func NewGSet() *GSet

func (*GSet) Add

func (g *GSet) Add(value interface{})

func (*GSet) Data

func (g *GSet) Data() setObject

func (*GSet) Len

func (g *GSet) Len() int

func (*GSet) Lookup

func (g *GSet) Lookup(value interface{}) bool

func (*GSet) Merge

func (g *GSet) Merge(gs *GSet)

type ORSet

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

func NewORSet

func NewORSet() *ORSet

NewORSet provides creating of the OrSet

func (*ORSet) Add

func (o *ORSet) Add(value interface{})

Add provides adding element to the set

func (*ORSet) Contains

func (o *ORSet) Contains(value interface{}) bool

func (*ORSet) Remove

func (o *ORSet) Remove(value interface{})

type Set

type Set interface {
	Add(value interface{})
	Contains(value interface{}) bool
	Remove(value interface{})
}

type TwoPSet

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

func NewTwoPSet

func NewTwoPSet() *TwoPSet

func (*TwoPSet) Add

func (g *TwoPSet) Add(value interface{})

func (*TwoPSet) Lookup

func (g *TwoPSet) Lookup(value interface{}) bool

func (*TwoPSet) Remove

func (g *TwoPSet) Remove(value interface{})

type USet

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

func (*USet) Add

func (u *USet) Add(value interface{})

Jump to

Keyboard shortcuts

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