Documentation ¶
Index ¶
- type ConcurrentVector
- func (v *ConcurrentVector) Append(value interface{})
- func (v *ConcurrentVector) Get(idx int) interface{}
- func (v *ConcurrentVector) Len() int
- func (v *ConcurrentVector) Pop() (data interface{}, ok bool)
- func (v *ConcurrentVector) Resize(size int)
- func (v *ConcurrentVector) Set(idx int, data interface{})
- type LockVector
- func (v *LockVector) Append(value interface{})
- func (v *LockVector) Cap() int
- func (v *LockVector) Get(idx int) (value interface{}, ok bool)
- func (v *LockVector) Len() int
- func (v *LockVector) Pop() (value interface{}, ok bool)
- func (v *LockVector) Resize(newLength int)
- func (v *LockVector) Set(idx int, element interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentVector ¶
type ConcurrentVector struct {
// contains filtered or unexported fields
}
func NewConcurrentVector ¶
func NewConcurrentVector(cap int) ConcurrentVector
func (*ConcurrentVector) Append ¶
func (v *ConcurrentVector) Append(value interface{})
func (*ConcurrentVector) Get ¶
func (v *ConcurrentVector) Get(idx int) interface{}
func (*ConcurrentVector) Len ¶
func (v *ConcurrentVector) Len() int
func (*ConcurrentVector) Pop ¶
func (v *ConcurrentVector) Pop() (data interface{}, ok bool)
func (*ConcurrentVector) Resize ¶
func (v *ConcurrentVector) Resize(size int)
func (*ConcurrentVector) Set ¶
func (v *ConcurrentVector) Set(idx int, data interface{})
type LockVector ¶
type LockVector struct {
// contains filtered or unexported fields
}
func (*LockVector) Append ¶
func (v *LockVector) Append(value interface{})
func (*LockVector) Cap ¶
func (v *LockVector) Cap() int
func (*LockVector) Get ¶
func (v *LockVector) Get(idx int) (value interface{}, ok bool)
func (*LockVector) Len ¶
func (v *LockVector) Len() int
func (*LockVector) Pop ¶
func (v *LockVector) Pop() (value interface{}, ok bool)
func (*LockVector) Resize ¶
func (v *LockVector) Resize(newLength int)
func (*LockVector) Set ¶
func (v *LockVector) Set(idx int, element interface{})
Click to show internal directories.
Click to hide internal directories.