Documentation
¶
Index ¶
- func ATextsEqual(atext1 AText, atext2 AText) bool
- func CmpAttribute(a, b Attribute) int
- func CopyAText(atext1 AText, atext2 *AText)
- type APool
- func (a *APool) Check() error
- func (a *APool) EachAttrib(f EachAttribFunc)
- func (a *APool) FromDB(obj db.PadPool) *APool
- func (a *APool) FromJsonable(obj APool) *APool
- func (a *APool) GetAttrib(num int) (*Attribute, error)
- func (a *APool) PutAttrib(attrib Attribute, dontAddIfAbsent *bool) int
- func (a *APool) ToJsonable() APool
- func (a *APool) ToPadDB() db.PadPool
- func (a *APool) ToRevDB() db.RevPool
- type AText
- type Attribute
- type AttributeIterator
- type EachAttribFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ATextsEqual ¶ added in v0.0.2
func CmpAttribute ¶
Types ¶
type APool ¶
type APool struct {
NumToAttrib map[int]Attribute `json:"-"`
NumToAttribRaw map[int][]string `json:"numToAttrib"`
AttribToNum map[Attribute]int `json:"-"`
NextNum int `json:"nextNum"`
}
func (*APool) EachAttrib ¶
func (a *APool) EachAttrib(f EachAttribFunc)
func (*APool) ToJsonable ¶
*
- @returns {Jsonable} An object that can be passed to `fromJsonable` to reconstruct this
- attribute pool. The returned object can be converted to JSON. WARNING: The returned object
- has references to internal state (it is not a deep copy). Use the `clone()` method to copy
- a pool -- do NOT do `new AttributePool().fromJsonable(pool.toJsonable())` to copy because
- the resulting shared state will lead to pool corruption.
type AText ¶
func FromDBAText ¶ added in v0.0.2
type Attribute ¶
func FromJsonAble ¶
func (*Attribute) ToJsonAble ¶
func (*Attribute) ToStringSlice ¶ added in v0.0.2
type AttributeIterator ¶
type EachAttribFunc ¶
type EachAttribFunc func(attrib Attribute)
Click to show internal directories.
Click to hide internal directories.