O
- object typeprotected static class HashMapHierarchy.Rec<O> extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
HashMapHierarchy.Rec.ItrChildren
Child iterator.
|
(package private) class |
HashMapHierarchy.Rec.ItrChildrenReverse
Child iterator.
|
(package private) class |
HashMapHierarchy.Rec.ItrParents
Parent iterator.
|
(package private) class |
HashMapHierarchy.Rec.ItrParentsReverse
Parent iterator.
|
Modifier and Type | Field and Description |
---|---|
(package private) Object[] |
children
Children.
|
private static Object[] |
EMPTY
Empty list.
|
(package private) int |
numc
Number of parents, number of children.
|
(package private) int |
nump
Number of parents, number of children.
|
(package private) Object[] |
parents
Parents.
|
Modifier | Constructor and Description |
---|---|
protected |
Rec() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
addChild(O child)
Add a child.
|
(package private) boolean |
addParent(O parent)
Add a parent.
|
Hierarchy.Iter<O> |
iterChildren()
Iterate over parents.
|
Hierarchy.Iter<O> |
iterChildrenReverse()
Iterate over parents.
|
Hierarchy.Iter<O> |
iterParents()
Iterate over parents.
|
Hierarchy.Iter<O> |
iterParentsReverse()
Iterate over parents.
|
(package private) boolean |
removeChild(O child)
Remove a child.
|
(package private) boolean |
removeParent(O parent)
Remove a parent.
|
int nump
int numc
Object[] parents
Object[] children
private static final Object[] EMPTY
boolean addParent(O parent)
parent
- Parent to add.true
when changedboolean addChild(O child)
child
- Child to addtrue
when changedboolean removeParent(O parent)
parent
- Parent to remove.true
when changedboolean removeChild(O child)
child
- Child to remove.true
when changedpublic Hierarchy.Iter<O> iterParents()
public Hierarchy.Iter<O> iterParentsReverse()
public Hierarchy.Iter<O> iterChildren()
public Hierarchy.Iter<O> iterChildrenReverse()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.