stack

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayStack

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

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/27 01:09
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*ArrayStack) Empty

func (m *ArrayStack) Empty() bool

func (*ArrayStack) GetAttribute

func (m *ArrayStack) GetAttribute() *C.Attribute

func (*ArrayStack) Peak

func (m *ArrayStack) Peak() interface{}

func (*ArrayStack) Pop

func (m *ArrayStack) Pop() interface{}

func (*ArrayStack) Push

func (m *ArrayStack) Push(value interface{})

func (*ArrayStack) Resize

func (m *ArrayStack) Resize()

func (*ArrayStack) Size

func (m *ArrayStack) Size() int

type Calculator

type Calculator struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/28 17:13
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*Calculator) Cal

func (m *Calculator) Cal(expr string) float64

func (*Calculator) StructName

func (m *Calculator) StructName() string

type CalculatorWithBracket

type CalculatorWithBracket struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/28 17:13
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*CalculatorWithBracket) Cal

func (m *CalculatorWithBracket) Cal(expr string) float64

func (*CalculatorWithBracket) StructName

func (m *CalculatorWithBracket) StructName() string

type CalculatorWithOutBracket

type CalculatorWithOutBracket struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/28 17:13
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*CalculatorWithOutBracket) Cal

func (*CalculatorWithOutBracket) StructName

func (m *CalculatorWithOutBracket) StructName() string

type LinkedStack

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

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/27 01:09
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*LinkedStack) Empty

func (m *LinkedStack) Empty() bool

func (*LinkedStack) GetAttribute

func (m *LinkedStack) GetAttribute() *C.Attribute

func (*LinkedStack) Peak

func (m *LinkedStack) Peak() int

func (*LinkedStack) Pop

func (m *LinkedStack) Pop() int

func (*LinkedStack) Push

func (m *LinkedStack) Push(value int)

func (*LinkedStack) Resize

func (m *LinkedStack) Resize()

func (*LinkedStack) Size

func (m *LinkedStack) Size() int

type MinStack

type MinStack struct {
	ArrayStack
	// contains filtered or unexported fields
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/28 19:06
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*MinStack) GetAttribute

func (m *MinStack) GetAttribute() *C.Attribute

func (*MinStack) GetMin

func (m *MinStack) GetMin() interface{}

func (*MinStack) Peak

func (m *MinStack) Peak() interface{}

func (*MinStack) Pop

func (m *MinStack) Pop() interface{}

func (*MinStack) Push

func (m *MinStack) Push(value int)

type MinStackOpt

type MinStackOpt struct {
	ArrayStack
	// contains filtered or unexported fields
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/28 19:06
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*MinStackOpt) GetAttribute

func (m *MinStackOpt) GetAttribute() *C.Attribute

func (*MinStackOpt) GetMin

func (m *MinStackOpt) GetMin() interface{}

func (*MinStackOpt) Peak

func (m *MinStackOpt) Peak() interface{}

func (*MinStackOpt) Pop

func (m *MinStackOpt) Pop() interface{}

func (*MinStackOpt) Push

func (m *MinStackOpt) Push(value interface{})

type QueueStack

type QueueStack struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/6/27 01:09
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description *

func (*QueueStack) Empty

func (m *QueueStack) Empty() bool

func (*QueueStack) GetAttribute

func (m *QueueStack) GetAttribute() *C.Attribute

func (*QueueStack) Peak

func (m *QueueStack) Peak() int

func (*QueueStack) Pop

func (m *QueueStack) Pop() int

func (*QueueStack) Push

func (m *QueueStack) Push(value int)

func (*QueueStack) Resize

func (m *QueueStack) Resize()

func (*QueueStack) Size

func (m *QueueStack) Size() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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