Documentation
¶
Index ¶
- Constants
- func BasmGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
- func CnotGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
- func GetPassMnemonic() map[uint64]string
- func HadamardGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
- func IsOptionalPass() map[uint64]bool
- func MaxPoolGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
- func ZeroGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
- type BMBuilder
- func (bi *BMBuilder) ActivePass(active uint64) bool
- func (bi *BMBuilder) Alert(logline ...interface{})
- func (bld *BMBuilder) BMBuilderInit()
- func (bld *BMBuilder) BMMerge(bm1 *bondmachine.Bondmachine, bm2 *bondmachine.Bondmachine, l *BMConnections) (*bondmachine.Bondmachine, error)
- func (bi *BMBuilder) BuildBondMachine() error
- func (bi *BMBuilder) BuildSequentialBlock(block *BMBuilderBlock) error
- func (bi *BMBuilder) Debug(logline ...interface{})
- func (bi *BMBuilder) ExportBasmBody() (*bmline.BasmBody, error)
- func (bi *BMBuilder) GetBondMachine() *bondmachine.Bondmachine
- func (bi *BMBuilder) Info(logline ...interface{})
- func (bld *BMBuilder) ParseBuilderDefault(filePath string) error
- func (bld *BMBuilder) ParseBuilderFile(filePath string, parseFunction func(*BMBuilder, string, uint32) error) error
- func (bld *BMBuilder) ParseBuilderString(text string, parseFunction func(*BMBuilder, string, uint32) error) error
- func (bi *BMBuilder) RunBuilder() error
- func (bi *BMBuilder) SetActive(pass string) error
- func (bld *BMBuilder) SetDebug()
- func (bld *BMBuilder) SetVerbose()
- func (bi *BMBuilder) String() string
- func (bi *BMBuilder) UnsetActive(pass string) error
- func (bi *BMBuilder) Warning(logline ...interface{})
- type BMBuilderBlock
- type BMConnections
- type BMEndPoint
- type BMLink
- type Connector
- type Generator
Constants ¶
View Source
const ( FinalBMInput = uint8(1) + iota FinalBMOutput FirstBMInput FirstBMOutput SecondBMInput SecondBMOutput )
View Source
const (
LAST_PASS = passGeneratorsExec
)
Variables ¶
This section is empty.
Functions ¶
func BasmGenerator ¶
func BasmGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
func CnotGenerator ¶
func CnotGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
func GetPassMnemonic ¶
func HadamardGenerator ¶
func HadamardGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
func IsOptionalPass ¶
func MaxPoolGenerator ¶
func MaxPoolGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
func ZeroGenerator ¶
func ZeroGenerator(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*bondmachine.Bondmachine, error)
Types ¶
type BMBuilder ¶
type BMBuilder struct {
// contains filtered or unexported fields
}
The instance
func (*BMBuilder) ActivePass ¶
func (*BMBuilder) BMBuilderInit ¶
func (bld *BMBuilder) BMBuilderInit()
func (*BMBuilder) BMMerge ¶
func (bld *BMBuilder) BMMerge(bm1 *bondmachine.Bondmachine, bm2 *bondmachine.Bondmachine, l *BMConnections) (*bondmachine.Bondmachine, error)
func (*BMBuilder) BuildBondMachine ¶
func (*BMBuilder) BuildSequentialBlock ¶
func (bi *BMBuilder) BuildSequentialBlock(block *BMBuilderBlock) error
func (*BMBuilder) GetBondMachine ¶
func (bi *BMBuilder) GetBondMachine() *bondmachine.Bondmachine
func (*BMBuilder) ParseBuilderDefault ¶
func (*BMBuilder) ParseBuilderFile ¶
func (bld *BMBuilder) ParseBuilderFile(filePath string, parseFunction func(*BMBuilder, string, uint32) error) error
ParseBuilderFile opens the actual assembly file and call a parse function on every line with the underline BMBuilder loaded
func (*BMBuilder) ParseBuilderString ¶
func (bld *BMBuilder) ParseBuilderString(text string, parseFunction func(*BMBuilder, string, uint32) error) error
ParseBuilderString opens the actual assembly file and call a parse function on every line with the underline BMBuilder loaded
func (*BMBuilder) RunBuilder ¶
func (*BMBuilder) SetDebug ¶
func (bld *BMBuilder) SetDebug()
SetDebug sets the debug flag on a BMBuilder
func (*BMBuilder) SetVerbose ¶
func (bld *BMBuilder) SetVerbose()
SetVerbose sets the verbose flag on a BMBuilder
func (*BMBuilder) UnsetActive ¶
type BMBuilderBlock ¶
type BMBuilderBlock struct {
// contains filtered or unexported fields
}
func (*BMBuilderBlock) String ¶
func (m *BMBuilderBlock) String() string
type BMConnections ¶
type BMConnections struct {
Links []BMLink
}
func ConnectorDefault ¶
func ConnectorDefault(b *BMBuilder, e *bmline.BasmElement, l *bmline.BasmLine) (*BMConnections, error)
func (*BMConnections) String ¶
func (c *BMConnections) String() string
type BMEndPoint ¶
func (BMEndPoint) String ¶
func (e BMEndPoint) String() string
type BMLink ¶
type BMLink struct { E1 BMEndPoint E2 BMEndPoint }
type Connector ¶
type Connector func(*BMBuilder, *bmline.BasmElement, *bmline.BasmLine) (*BMConnections, error)
type Generator ¶
type Generator func(*BMBuilder, *bmline.BasmElement, *bmline.BasmLine) (*bondmachine.Bondmachine, error)
Click to show internal directories.
Click to hide internal directories.