Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularDependencyError ¶
func (CircularDependencyError) Error ¶
func (e CircularDependencyError) Error() string
type MapNodeSet ¶
type MapNodeSet map[*Node]struct{}
MapNodeSet is a Node set backed by a Go map (unordered). NOTE: DO *NOT* USE this for on-chain operations, but OrderedNodeSet
func (MapNodeSet) Add ¶
func (m MapNodeSet) Add(node *Node)
func (MapNodeSet) Contains ¶
func (m MapNodeSet) Contains(node *Node) bool
func (MapNodeSet) Remove ¶
func (m MapNodeSet) Remove(node *Node)
type Node ¶
type Node struct { Value interface{} // contains filtered or unexported fields }
func (*Node) AllDependents ¶
func (*Node) SetDependencies ¶
type NodeSet ¶
type NodeSet interface { Add(*Node) Remove(*Node) Contains(*Node) bool ForEach(func(*Node) error) error }
NodeSet is a set of Node
func NewMapNodeSet ¶
func NewMapNodeSet() NodeSet
type OrderedNodeSet ¶
type OrderedNodeSet orderedmap.OrderedMap[*Node, struct{}]
OrderedNodeSet is a Node set backed by an ordered map
func (*OrderedNodeSet) Add ¶
func (os *OrderedNodeSet) Add(node *Node)
func (*OrderedNodeSet) Contains ¶
func (os *OrderedNodeSet) Contains(node *Node) bool
func (*OrderedNodeSet) Remove ¶
func (os *OrderedNodeSet) Remove(node *Node)
Click to show internal directories.
Click to hide internal directories.