objvalmo

package
v0.0.0-...-dde5d79 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

file objvalmo/globals.go it should be generated

Index

Constants

View Source
const (
	TyNilV = iota
	TyIntV
	TyFloatV
	TyStringV
	TyRefobV
	TyColIntV
	TyColStringV
	TyColRefV
	TySetV
	TyTupleV
)
View Source
const (
	SpaTransient = iota
	SpaPredefined
	SpaGlobal
	SpaUser
	Spa_Last
)
View Source
const DefaultGlobalDbname = "monimelt_global"
View Source
const DefaultUserDbname = "monimelt_user"
View Source
const GlobalObjects = true
View Source
const NbPredefs = 2
View Source
const SqliteProgram = "sqlite3"
View Source
const UserObjects = false

Variables

This section is empty.

Functions

func DoTinyDump1

func DoTinyDump1(tempdir string)

func DumpIntoDirectory

func DumpIntoDirectory(dirname string)

func DumpScanGlobalVariables

func DumpScanGlobalVariables(du *DumperMo)

func DumpScanPredefined

func DumpScanPredefined(du *DumperMo)

func EmitJsonValueInBuffer

func EmitJsonValueInBuffer(vem JsonValEmitterMo, buf *bytes.Buffer, v ValueMo)

func EnableSqliteLog

func EnableSqliteLog()

func EncodeJsonValue

func EncodeJsonValue(vem JsonValEmitterMo, enc *json.Encoder, v ValueMo)

func HashObptr

func HashObptr(po *ObjectMo) serialmo.HashMo

func LessColInt

func LessColInt(cil ColIntV, cir ColIntV) bool

func LessColRef

func LessColRef(cil ColRefV, cir ColRefV) bool

func LessColString

func LessColString(cil ColStringV, cir ColStringV) bool

func LessEqualColInt

func LessEqualColInt(cil ColIntV, cir ColIntV) bool

func LessEqualColRef

func LessEqualColRef(cil ColRefV, cir ColRefV) bool

func LessEqualColstr

func LessEqualColstr(cil ColStringV, cir ColStringV) bool

func LessEqualObptr

func LessEqualObptr(pol *ObjectMo, por *ObjectMo) bool

func LessObptr

func LessObptr(pol *ObjectMo, por *ObjectMo) bool

func LoadFromDirectory

func LoadFromDirectory(dirname string)

func NamesGlobalVariables

func NamesGlobalVariables() []string

func RegisterGlobalVariable

func RegisterGlobalVariable(vnam string, advar **ObjectMo)

func RegisterPayload

func RegisterPayload(pname string, ploader PayloadLoaderMo)

func StringHash

func StringHash(s string) serialmo.HashMo

func UnregisterGlobalVariable

func UnregisterGlobalVariable(vnam string)

func ValToJson

func ValToJson(vem JsonValEmitterMo, v ValueMo) interface{}

Types

type ColIntV

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

func MakeColInt

func MakeColInt(colorpob *ObjectMo, num int64) ColIntV

func MakeColRefInt

func MakeColRefInt(coloref RefobV, num int64) ColIntV

func (ColIntV) ColorId

func (ci ColIntV) ColorId() serialmo.IdentMo

func (ColIntV) ColorRef

func (ci ColIntV) ColorRef() *ObjectMo

func (ColIntV) DumpScan

func (ci ColIntV) DumpScan(du *DumperMo)

func (ColIntV) Hash

func (ci ColIntV) Hash() serialmo.HashMo

func (ColIntV) Int

func (ci ColIntV) Int() int

func (ColIntV) Int64

func (ci ColIntV) Int64() int64

func (ColIntV) ToString

func (ci ColIntV) ToString() string

func (ColIntV) TypeV

func (ci ColIntV) TypeV() uint

type ColIntVMo

type ColIntVMo interface {
	ValueMo

	ColorRef() *ObjectMo
	Int() int
	Int64() int64
	ColorId() serialmo.IdentMo
	// contains filtered or unexported methods
}

////////////// colored integer values

type ColRefV

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

func MakeColRef

func MakeColRef(colorpob *ObjectMo, pob *ObjectMo) ColRefV

func MakeColRefRef

func MakeColRefRef(coloref RefobV, oref RefobV) ColRefV

func (ColRefV) ColorId

func (ci ColRefV) ColorId() serialmo.IdentMo

func (ColRefV) ColorRef

func (ci ColRefV) ColorRef() *ObjectMo

func (ColRefV) DumpScan

func (ci ColRefV) DumpScan(du *DumperMo)

func (ColRefV) Hash

func (ci ColRefV) Hash() serialmo.HashMo

func (ColRefV) ObjId

func (ci ColRefV) ObjId() serialmo.IdentMo

func (ColRefV) ObjRef

func (ci ColRefV) ObjRef() *ObjectMo

func (ColRefV) ToString

func (ci ColRefV) ToString() string

func (ColRefV) TypeV

func (ci ColRefV) TypeV() uint

type ColRefVMo

type ColRefVMo interface {
	ValueMo

	ColorRef() *ObjectMo
	ObjRef() *ObjectMo
	ColorId() serialmo.IdentMo
	ObjId() serialmo.IdentMo
	// contains filtered or unexported methods
}

////////////// colored reference values

type ColStringV

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

func MakeColRefStr

func MakeColRefStr(coloref RefobV, str string) ColStringV

func MakeColString

func MakeColString(colorpob *ObjectMo, str string) ColStringV

func (ColStringV) ColorId

func (ci ColStringV) ColorId() serialmo.IdentMo

func (ColStringV) ColorRef

func (ci ColStringV) ColorRef() *ObjectMo

func (ColStringV) DumpScan

func (ci ColStringV) DumpScan(du *DumperMo)

func (ColStringV) Hash

func (ci ColStringV) Hash() serialmo.HashMo

func (ColStringV) ToString

func (ci ColStringV) ToString() string

func (ColStringV) TypeV

func (ci ColStringV) TypeV() uint

type ColStringVMo

type ColStringVMo interface {
	ValueMo

	ColorRef() *ObjectMo
	ColoredString() string
	ColorId() serialmo.IdentMo
	// contains filtered or unexported methods
}

////////////// colored string values

type DumperMo

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

func OpenDumperDirectory

func OpenDumperDirectory(dirpath string) *DumperMo

func (*DumperMo) AddDumpedObject

func (du *DumperMo) AddDumpedObject(pob *ObjectMo)

func (*DumperMo) Close

func (du *DumperMo) Close()

func (*DumperMo) DumpEmit

func (du *DumperMo) DumpEmit()

func (*DumperMo) EmitObjptr

func (du *DumperMo) EmitObjptr(pob *ObjectMo) bool

func (*DumperMo) IsDumpedObject

func (du *DumperMo) IsDumpedObject(pob *ObjectMo) bool

func (*DumperMo) LoopDumpScan

func (du *DumperMo) LoopDumpScan()

func (*DumperMo) StartDumpScan

func (du *DumperMo) StartDumpScan()

type EmitterFunction_t

type EmitterFunction_t func(*ObjectMo) bool

type FloatV

type FloatV float64

func MakeFloatV

func MakeFloatV(f float64) FloatV

func (FloatV) DumpScan

func (fv FloatV) DumpScan(du *DumperMo)

func (FloatV) Float

func (f FloatV) Float() float64

func (FloatV) Hash

func (fv FloatV) Hash() serialmo.HashMo

func (FloatV) MarshalJSON

func (fv FloatV) MarshalJSON() ([]byte, error)

func (FloatV) String

func (fv FloatV) String() string

func (FloatV) TypeV

func (FloatV) TypeV() uint

type FloatVMo

type FloatVMo interface {
	ValueMo

	Float() float64
	// contains filtered or unexported methods
}

////////////// float values

type IntV

type IntV int

func MakeIntV

func MakeIntV(i int) IntV

func (IntV) DumpScan

func (sv IntV) DumpScan(du *DumperMo)

func (IntV) Hash

func (i IntV) Hash() serialmo.HashMo

func (IntV) Int

func (i IntV) Int() int

func (IntV) MarshalJSON

func (iv IntV) MarshalJSON() ([]byte, error)

func (IntV) String

func (iv IntV) String() string

func (IntV) TypeV

func (IntV) TypeV() uint

type IntVMo

type IntVMo interface {
	ValueMo

	Int() int
	// contains filtered or unexported methods
}

////////////// integer values

type JsonSimpleValEmitter

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

func MakeJsonSimpleValEmitter

func MakeJsonSimpleValEmitter(ef EmitterFunction_t) JsonSimpleValEmitter

func (JsonSimpleValEmitter) EmitObjptr

func (jse JsonSimpleValEmitter) EmitObjptr(pob *ObjectMo) bool

type JsonSimpleValParser

type JsonSimpleValParser struct {
}

func TrivialValParser

func TrivialValParser() JsonSimpleValParser

func (JsonSimpleValParser) ParseObjptr

func (JsonSimpleValParser) ParseObjptr(sid string) (*ObjectMo, error)

type JsonValEmitterMo

type JsonValEmitterMo interface {
	EmitObjptr(*ObjectMo) bool
}

type JsonValParserMo

type JsonValParserMo interface {
	ParseObjptr(string) (*ObjectMo, error)
}

type LoaderMo

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

func OpenLoaderFromFiles

func OpenLoaderFromFiles(globalpath string, userpath string) *LoaderMo

func (*LoaderMo) Close

func (ld *LoaderMo) Close()

func (*LoaderMo) Load

func (ld *LoaderMo) Load()

func (*LoaderMo) ParseObjptr

func (l *LoaderMo) ParseObjptr(oidstr string) (*ObjectMo, error)

type ObjectMo

type ObjectMo struct {
	// contains filtered or unexported fields
}
var Glob_the_system *ObjectMo

func FindObjectById

func FindObjectById(id serialmo.IdentMo) *ObjectMo

func FindObjectByTwoNums

func FindObjectByTwoNums(hi uint64, lo uint64) *ObjectMo

func FindOrMakeObjectById

func FindOrMakeObjectById(id serialmo.IdentMo) (*ObjectMo, bool)

func GlobalVariableAddress

func GlobalVariableAddress(vnam string) **ObjectMo

func MakeObjectById

func MakeObjectById(id serialmo.IdentMo) *ObjectMo

func MakeObjectByTwoNums

func MakeObjectByTwoNums(hi uint64, lo uint64) *ObjectMo

func MakePredefinedObj

func MakePredefinedObj(hi uint64, lo uint64) *ObjectMo

func NewObj

func NewObj() *ObjectMo

func Predef_1xKb8cfVIXo_7zufUqzNXfu

func Predef_1xKb8cfVIXo_7zufUqzNXfu() *ObjectMo

func Predef_02hL3RuX4x6_6y6PTK9vZs7

func Predef_02hL3RuX4x6_6y6PTK9vZs7() *ObjectMo

func RefobSliceToObjptrSlice

func RefobSliceToObjptrSlice(rarr []RefobV) []*ObjectMo

func SlicePredefined

func SlicePredefined() []*ObjectMo

func (*ObjectMo) BucketNum

func (pob *ObjectMo) BucketNum() uint

func (*ObjectMo) DumpScanInsideObject

func (pob *ObjectMo) DumpScanInsideObject(du *DumperMo)

func (*ObjectMo) Hash

func (po *ObjectMo) Hash() serialmo.HashMo

func (*ObjectMo) ObId

func (pob *ObjectMo) ObId() serialmo.IdentMo

func (*ObjectMo) SpaceNum

func (pob *ObjectMo) SpaceNum() uint8

func (*ObjectMo) String

func (pob *ObjectMo) String() string

func (*ObjectMo) ToString

func (po *ObjectMo) ToString() string

func (*ObjectMo) UnsyncAddValues

func (pob *ObjectMo) UnsyncAddValues(vals ...ValueMo) *ObjectMo

func (*ObjectMo) UnsyncAppendVal

func (pob *ObjectMo) UnsyncAppendVal(val ValueMo) *ObjectMo

func (*ObjectMo) UnsyncMtime

func (pob *ObjectMo) UnsyncMtime() int64

func (*ObjectMo) UnsyncPayloadClear

func (pob *ObjectMo) UnsyncPayloadClear() *ObjectMo

func (*ObjectMo) UnsyncPutAttr

func (pob *ObjectMo) UnsyncPutAttr(pobat *ObjectMo, val ValueMo) *ObjectMo

func (*ObjectMo) UnsyncPutMtime

func (pob *ObjectMo) UnsyncPutMtime(tim int64)

func (*ObjectMo) UnsyncSetSpaceNum

func (pob *ObjectMo) UnsyncSetSpaceNum(sp uint8) *ObjectMo

func (*ObjectMo) UnsyncSpaceNum

func (pob *ObjectMo) UnsyncSpaceNum() uint8

func (*ObjectMo) UnsyncTouch

func (pob *ObjectMo) UnsyncTouch()

type PayloadLoaderMo

type PayloadLoaderMo func(pkind string, pob *ObjectMo, ld *LoaderMo, jcont interface{}) PayloadMo

func PayloadLoader

func PayloadLoader(pname string) (PayloadLoaderMo, error)

type PayloadMo

type PayloadMo interface {
	DestroyPayl(pob *ObjectMo)
	DumpScanPayl(pob *ObjectMo, du *DumperMo)
	DumpEmitPayl(pob *ObjectMo, du *DumperMo) (string, interface{})
	GetPayl(pob *ObjectMo, attrpob *ObjectMo) ValueMo
	PutPayl(pob *ObjectMo, attrpob *ObjectMo, val ValueMo) error
	DoPayl(pob *ObjectMo, selpob *ObjectMo, args ...ValueMo) error

} // end PayloadMo

type RefobV

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

func MakeRefobV

func MakeRefobV(pob *ObjectMo) RefobV

func NewRefobV

func NewRefobV() RefobV

func (RefobV) DumpScan

func (rob RefobV) DumpScan(du *DumperMo)

func (RefobV) Hash

func (rob RefobV) Hash() serialmo.HashMo

func (RefobV) IdOb

func (rob RefobV) IdOb() serialmo.IdentMo

func (RefobV) Obref

func (rob RefobV) Obref() *ObjectMo

func (RefobV) String

func (rob RefobV) String() string

func (RefobV) TypeV

func (rob RefobV) TypeV() uint

type RefobVMo

type RefobVMo interface {
	ValueMo

	Obref() *ObjectMo
	IdOb() serialmo.IdentMo
	// contains filtered or unexported methods
}

////////////// refob values

type SequenceV

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

func (SequenceV) At

func (sq SequenceV) At(rk int) *ObjectMo

func (SequenceV) DumpScan

func (sq SequenceV) DumpScan(du *DumperMo)

func (SequenceV) Hash

func (sq SequenceV) Hash() serialmo.HashMo

func (SequenceV) Length

func (sq SequenceV) Length() int

func (SequenceV) Nth

func (sq SequenceV) Nth(rk int) *ObjectMo

func (SequenceV) TypeV

func (SequenceV) TypeV() uint

type SequenceVMo

type SequenceVMo interface {
	ValueMo

	At(rk int) *ObjectMo  // may panic
	Nth(rk int) *ObjectMo // or nil
	Length() int
	// contains filtered or unexported methods
}

////////////// sequence values

type SetV

type SetV struct {
	SequenceV
}

func MakeSetRefobSlice

func MakeSetRefobSlice(refobjs []RefobV) SetV

func MakeSetRefobV

func MakeSetRefobV(refobjs ...RefobV) SetV

func MakeSetSliceV

func MakeSetSliceV(objs []*ObjectMo) SetV

func MakeSetV

func MakeSetV(objs ...*ObjectMo) SetV

func SetPredefined

func SetPredefined() SetV

func (SetV) SetContains

func (set SetV) SetContains(pob *ObjectMo) bool

func (SetV) String

func (set SetV) String() string

func (SetV) TypeV

func (SetV) TypeV() uint

type SetVMo

type SetVMo interface {
	SequenceVMo

	SetContains(ob *ObjectMo) bool
	// contains filtered or unexported methods
}

////////////// set

type StringV

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

func MakeStringV

func MakeStringV(s string) StringV

func (StringV) DumpScan

func (sv StringV) DumpScan(du *DumperMo)

func (StringV) Hash

func (sv StringV) Hash() serialmo.HashMo

func (StringV) Length

func (sv StringV) Length() int

func (StringV) String

func (sv StringV) String() string

printable string

func (StringV) ToString

func (sv StringV) ToString() string

func (StringV) TypeV

func (sv StringV) TypeV() uint

type StringVMo

type StringVMo interface {
	ValueMo

	Length() int
	ToString() string
	// contains filtered or unexported methods
}

////////////// string values

type TupleV

type TupleV struct {
	SequenceV
}

func MakeSkippedTupleSliceV

func MakeSkippedTupleSliceV(objs []*ObjectMo) TupleV

func MakeSkippedTupleV

func MakeSkippedTupleV(objs ...*ObjectMo) TupleV

func MakeTupleRefobSlice

func MakeTupleRefobSlice(refobjs []RefobV) TupleV

func MakeTupleRefobV

func MakeTupleRefobV(refobjs ...RefobV) TupleV

func MakeTupleSliceV

func MakeTupleSliceV(objs []*ObjectMo) TupleV

func MakeTupleV

func MakeTupleV(objs ...*ObjectMo) TupleV

func (TupleV) String

func (tu TupleV) String() string

func (TupleV) TypeV

func (TupleV) TypeV() uint

type TupleVMo

type TupleVMo interface {
	SequenceVMo
	// contains filtered or unexported methods
}

////////////// tuple values

type ValueMo

type ValueMo interface {
	TypeV() uint
	Hash() serialmo.HashMo
	DumpScan(*DumperMo)
}

func JasonParseVal

func JasonParseVal(vpm JsonValParserMo, jv interface{}) (ValueMo, error)

Jump to

Keyboard shortcuts

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