Documentation ¶
Index ¶
- type Memory
- func (m Memory) CountIf(p func(c *semix.Concept) bool) int
- func (m Memory) CountIfS(p func(c *semix.Concept) bool) int
- func (m Memory) Each(f func(*semix.Concept))
- func (m Memory) EachS(f func(*semix.Concept))
- func (m Memory) Elements() map[string]*semix.Concept
- func (m Memory) ElementsS() map[string]*semix.Concept
- func (m Memory) Len() int
- func (m Memory) N() int
- func (m *Memory) Push(c *semix.Concept)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is simple ringbuffer that enables counting of concepts stored in the memory.
func (Memory) CountIf ¶
CountIf returns the number of concepts for wich the given predicate returns true.
func (Memory) CountIfS ¶
CountIfS returns the number of concepts for wich the given predicate returns true. The predicate is called for each concept and referenced concept.
func (Memory) EachS ¶
EachS calls a callback function for each concept in the memory and for each concept that is referenced from this concept.
Click to show internal directories.
Click to hide internal directories.