row_iterator

package
v0.0.0-...-00ef510 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	Model             *pgm.PageModel
	ModelRow          row.Row
	ReverseCounter    size.Height
	ParagraphIndex    index.Index
	ParagraphRowIndex index.Index
}

Mock contains mock data of initialize mocked iterator object

type RowIterator

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

RowIterator contains some temp page for iterating by model rows

func MakeRowIterator

func MakeRowIterator(model *pgm.PageModel) RowIterator

MakeRowIterator constructs a RowIterator object in a stack

func MockRowIterator

func MockRowIterator(m Mock) RowIterator

MockRowIterator constructs Mocked RowIterator

func (*RowIterator) End

func (ri *RowIterator) End() bool

End returns if iterating is ended

func (*RowIterator) Next

func (ri *RowIterator) Next()

Next goes to next model dynamic_row

func (*RowIterator) RowModel

func (ri *RowIterator) RowModel() row.Row

RowModel returns a current value of model dynamic_row

Jump to

Keyboard shortcuts

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